Running in a VMWare VM on a Mac

Having issues with the site, hardware, source code, or any other issues?

Moderator: robert.ghilduta

Post Reply
richardb
Posts: 6
Joined: Wed Aug 07, 2013 7:27 am

Running in a VMWare VM on a Mac

Post by richardb » Wed Aug 07, 2013 7:37 am

Hey all, I am trying to get this new-fangled BladeRF thing running. I use a Mac (2012 MAcbook pro retina) most of the time, so until the Mac drivers are ready, I am using a VM running Ubuntu 13.4 under VMware Fusion. I've run through the installation procedure described elsewhere, and that seemed to work okay. However, I think that the USB transition that VMware Fusion does is messing this up. When I plug the BladeRF in and switch it to the VM, I get this in the dmesg log:

Code: Select all

[  500.475644] usbcore: registered new interface driver nuand_bladerf
[ 9688.618661] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 9688.850324] usb 1-1: device descriptor read/64, error 18
[ 9689.185659] usb 1-1: device descriptor read/64, error 18
[ 9689.528544] usb 1-1: new high-speed USB device number 3 using ehci-pci
[ 9689.760780] usb 1-1: device descriptor read/64, error 18
[ 9690.095632] usb 1-1: device descriptor read/64, error 18
[ 9690.443673] usb 1-1: new high-speed USB device number 4 using ehci-pci
[ 9690.463031] usb 1-1: Invalid ep0 maxpacket: 9
[ 9690.706115] usb 1-1: new high-speed USB device number 5 using ehci-pci
[ 9690.726391] usb 1-1: Invalid ep0 maxpacket: 9
[ 9690.738550] hub 1-0:1.0: unable to enumerate USB device on port 1
I assume that this means that the device is not doing the USB handshake correctly, probably due to the fact that it is a USB 3 device in a USB 3 port, but VMware translates that down to USB 2.0. Is there any way I can get this working? I could set up another dedicated machine running Unbuntu, but I am loath to do so (already too many damn boxes on my desk). Any thoughts?

richardb
Posts: 6
Joined: Wed Aug 07, 2013 7:27 am

Re: Running in a VMWare VM on a Mac

Post by richardb » Wed Aug 07, 2013 8:02 am

Aha! I suspect that replying to my own message with the solution is not a good sign for my sanity, but for anyone else struggling with this: the answer is to look in the advanced settings for USB/Bluetooth on VMWare Fusion, and set it to USB 3 compatibility. By default, it is set to USB 2.0 only, I suspect for compatibility reasons with older versions of Linux. I shut down the VM, changed it to USB 3.0 and got this much healthier-looking response:

Code: Select all

[  280.038175] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[  280.054977] usb 4-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[  280.056665] usb 4-1: New USB device found, idVendor=1d50, idProduct=6066
[  280.056668] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  280.056670] usb 4-1: Product: bladeRF
[  280.056672] usb 4-1: Manufacturer: Nuand
[  280.058236] xhci_hcd 0000:03:00.0: xHCI xhci_add_endpoint called with enabled ep ffff88000b47c1c0
[  280.058239] xhci_hcd 0000:03:00.0: xHCI xhci_add_endpoint called with enabled ep ffff8800244ec640
[  280.168324] nuand_bladerf 4-1:1.0: Nuand bladeRF device is now attached
[  280.281277] usb 4-2: new SuperSpeed USB device number 3 using xhci_hcd
[  280.296892] usb 4-2: Parent hub missing LPM exit latency info.  Power management will be impacted.
[  280.297209] usb 4-2: New USB device found, idVendor=0e0f, idProduct=0002
[  280.297211] usb 4-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  280.297213] usb 4-2: Product: VMware Virtual USB Hub
[  280.298926] hub 4-2:1.0: USB hub found
[  280.299020] hub 4-2:1.0: 7 ports detected
So, looks like that is fixed. Thanks for the help, me! :D

yvesined
Posts: 5
Joined: Tue Mar 25, 2014 6:51 am
Location: Germany
Contact:

Re: Running in a VMWare VM on a Mac

Post by yvesined » Thu Jun 05, 2014 2:39 am

I've got the same problem but the solution was much simpler than one could think. I use Ubuntu 13.10 in a Virtual Box. I wanted to connect my bladeRF Board via USB 3.0. The bladerf-cli said No device attached and the dmesg said unable to enumerate USB device on port 1. So I double checked the Settings of my VM, and I figured out, Virtual Box does not support USB 3.0. So I plugged the baldeRF Board to a USB 2.0 slot and it worked fine. :lol: :lol: :lol:

djrevmoon
Posts: 30
Joined: Fri Mar 01, 2013 4:37 am

Re: Running in a VMWare VM on a Mac

Post by djrevmoon » Thu Jun 05, 2014 3:04 am

Or just use Parallels VM (which has goo USB3 support on Mac OSX)

Post Reply