BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-20-2007, 04:14 AM   #1
sgala
New Member
 
Join Date: Jun 2007
Model: 8900
PIN: N/A
Carrier: TIM
Posts: 4
Default QEMU and blackberry

Please Login to Remove!

Hi! I was trying to use Blackberry Desktop under Windows XP under a QEMU virtual machine under Linux.

My problem is that the device is recognized as device id 0fca:0006 and after some seconds it switch to 0fca:0004 . So when I make a "usb_add host:0fca:0006" QEMU lose my request and if I try to make a "usb_add host:0fca:004" the system forever wait something with the CPU at 100%.

Someone have successful experience?

I'll try with a USB bluetooth dongle to bypass the USB interface... i hope that this will help...
Offline  
Old 06-20-2007, 01:47 PM   #2
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

Quote:
Originally Posted by sgala View Post
My problem is that the device is recognized as device id 0fca:0006 and after some seconds it switch to 0fca:0004 . So when I make a "usb_add host:0fca:0006" QEMU lose my request and if I try to make a "usb_add host:0fca:004" the system forever wait something with the CPU at 100%.
Wow, what a cool idea. I've not done it, but I can help with details I've learned from barry/bcharge that seem to be affecting you and maybe will help.

The change from 0006 -> 0004 is how the device works by design, it's the Desktop software sending a special USB message to the device to switch modes. 0006 is USB Mass Storage only - the default it will stay at with no Desktop software (well, really the USB drivers portion of it) or under regular Linux or Mac. The 0004 interface is a special dual mode; it has 4 'endpoints', supporting *both* Mass Storage and the control channel at the same time. (mode 0001 is control channel only).

It makes sense why 0006 is failing -- as soon as you plug in the device the USB drivers tell it to switch to 0004 mode; the only way you can stop this is to uninstall the BB Desktop/drivers software. :-/

It *sounds* like when you try and add the usb_host to 0004 it's trying to bind to the wrong endpoints - I'm not sure which ones it's after, but I'm guessing you want to bind the control channels, not the usb mass storage channels. Is there any way you can debug the usb_add command (strace, etc.) to see why it's pegging the CPU @ 100%?

ps: after plugging in the device, did you run "rmmod usb_storage" in linux before trying to use usb_add commands for QEMU?
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline  
Old 06-21-2007, 03:55 AM   #3
sgala
New Member
 
Join Date: Jun 2007
Model: 8900
PIN: N/A
Carrier: TIM
Posts: 4
Default

I probably found where is the mistake. I use qemu 0.9.0 of debian unstable.
With the tree version: if I try to add the BB 004 or another USB bluetooth dongle the cli say:
"Could not add UBS device 'host....'
and in the logs
"usb_host: only one interface supported"
This happen because qemu does not support usb multiple interface... (this is what i understood) so I patched with [Qemu-devel] USB Multiple interface devices .
With this patch i have the result reported in my opening thread and i have the SAME effect with the usb bluetooth dongle (after 10 hours of driver recognition no ending...)

So I think that is not a BB throuble but a USB - QEMU problem.
Offline  
Old 09-15-2007, 04:25 PM   #4
blakeatl
BlackBerry Extraordinaire
 
blakeatl's Avatar
 
Join Date: Oct 2006
Location: Atlanta area
Model: 8100
OS: 4.5.0.102
Carrier: T-mobile
Posts: 1,686
Default

Ever tried innotek virtualbox? I can plug my blackberry in and it's recognized as so. Just can't get the desktop manager to see it as of yet though. I'm using version 1.5
__________________
Build Your Business Even If You Are On A Budget.
Magnetic Sponsoring
Offline  
Old 04-29-2008, 02:56 PM   #5
devzero
New Member
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Vodafonde DE
Posts: 1
Default

Hey,

funny to see that some other had the same problem as I am before ;)

Did someone found a solution for it? I'm using KVM with a patched QEMU (kvm-67 from 28th april this year) but on usb_add commando my guest (32 bit Vista Business on a 64 multilib Linux with 2.6.25 vanilla Kernel) is hanging until I remove the device with usb_del.

I need a solution to sync my BB with my Windows After solving this problem I can delete my native Windows installation and put the space to my penguin :P


Regards
Offline  
Old 06-02-2008, 07:43 PM   #6
sternebrau
New Member
 
Join Date: Dec 2007
Model: 8310
PIN: N/A
Carrier: AT&T
Posts: 13
Default

Quote:
Originally Posted by sgala View Post

Someone have successful experience?

I'll try with a USB bluetooth dongle to bypass the USB interface... i hope that this will help...
Bingo! The bluetooth USB dongle worked like a charm! I'm using XP SP2 installed on VirtualBox on Ubuntu Hardy Heron.
Offline  
Old 08-30-2008, 11:26 AM   #7
djreedps
New Member
 
Join Date: Aug 2008
Model: 8130
PIN: N/A
Carrier: Verizon
Posts: 2
Angry Why does BlackBerry have so many USB "issues"?

This is my opinion, so it probably doesn't apply to most people.

I hate my BlackBerry.

I use Linux. BlackBerry doesn't even try to support Linux. Neither do Palm or Apple. I had a Palm Treo before I got my BlackBerry. At least the Palm was open enough that Linux application developers wrote tools that worked very nicely with the Palm.

I want to update my BlackBerry's firmware because I have issues with memory leaks where my http connections fail after a certain amount of usage. I also have issues with dropped phone calls. But since I run Linux, I am out of luck. There are some tools like barry under Linux to sync the BlackBerry, but they don't allow me to update its firmware. I need to use a tool called bcharge just to connect my BlackBerry to Linux because the BlackBerry does some strange stuff with USB. I tried to run a Windows XP client under VirtualBox, but although Windows could see the BlackBerry, the BlackBerry software on Windows won't see my device. I then thought I could buy a micro sd card and back up my data to the card, reset the BlackBerry to factory defaults, and take it into Verizon so they can update the firmware, but now I find that there is no way of backing up my BlackBerry to an sd card.

With my Palm Treo, I could easily sync it under Linux without any USB problems or flakiness. I think I may have even been able to update its firmware under Linux, but I don't recall that for certain. I could back up my data to a memory card. I could update my Palm's firmware from a Windows client running in VMWare or Virtualbox. I think I may have been able to even update my Palm's firmware from the sd card itself.

Granted that Palm has been around a little bit longer than RIM, but RIM has been around for several years too. But RIM doesn't seem to do basic things well. I also find the BlackBerry GUI to be less sharp than the Palm's. The BB GUI reminds me of an Atari ST or Amiga computer from the late 80's. The options menu is just a long list of text words. Not very exciting. Not at all like a 21st century design. The trackball on my BB gets dirty. I miss my Palm's touchscreen.

I regret that I ever bought my BlackBerry. I wish I had an iPhone, but I would at least have the same problems of no native support for Linux. I almost long to have my aging Palm Treo back again. There has to be something better than all of this. Android?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Johnson Controls Metasys MS-NAE5510-0 BAS Network Controller picture

Johnson Controls Metasys MS-NAE5510-0 BAS Network Controller

$224.99



Johnson Controls Metasys MS-NAE3510-2 Network Controller picture

Johnson Controls Metasys MS-NAE3510-2 Network Controller

$999.88



METASYS AP-VMA1420-0 MODULAR CONTROLLER picture

METASYS AP-VMA1420-0 MODULAR CONTROLLER

$99.00



Johnson Controls Metasys MS-NAE5510-1 Controller NAE 5510 Version 5.0 picture

Johnson Controls Metasys MS-NAE5510-1 Controller NAE 5510 Version 5.0

$190.00



Johnson Controls MS-IOM3710-0UG Metasys picture

Johnson Controls MS-IOM3710-0UG Metasys

$44.99



Johnson Controls Metasys IOM2711 Expansion Module picture

Johnson Controls Metasys IOM2711 Expansion Module

$80.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.