MacBook and USB3

Having issues with the site, hardware, source code, or any other issues?
Post Reply
Antti
Posts: 8
Joined: Fri Mar 01, 2013 4:16 am

MacBook and USB3

Post by Antti »

I am a Mac user (OSX 10.8.4 + MacBook Air 5.2).

I have problems with usb3 port. Bladerf-cli works with usb2 cable without any problems. But the usb3 cable comes out the following error.

>bladeRF-cli -p
Backend: libusb
Serial: 3d9eaxxxx
USB Bus: 20
USB Address: 20
>

>bladeRF-cli -i
[INFO] Found a bladeRF
[INFO] Claimed all inferfaces successfully
[ERROR] Got unsupported or unknown device speed: 0
Failed to open device (NULL): Invalid operation or parameter
Could not open device
bladeRF>

bladeRF> version
Segmentation fault: 11
>

Parallels VM with Ubuntu usb3 works just fine.
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: MacBook and USB3

Post by bpadalino »

What version of libusb are you using? The unsupported speed thing sounds like it might have issues with superspeed and might be a real old version?

I don't have a Mac with USB3, so anyone else who does I would greatly appreciate anyone chiming in on what does or doesn't work.

As for the segfault, we will definitely look into it.
Antti
Posts: 8
Joined: Fri Mar 01, 2013 4:16 am

Re: MacBook and USB3

Post by Antti »

I have a version of 1.0.9 installed via MacPorts.

libusb @1.0.9_0 (active)
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: MacBook and USB3

Post by bpadalino »

It looks like superspeed detection for OSX was added in 1.0.15 according to the changelog.

Is there any way to try that version or later out and see if it alleviates your problem?
Antti
Posts: 8
Joined: Fri Mar 01, 2013 4:16 am

Re: MacBook and USB3

Post by Antti »

Now I have the latest version (v1.0.17).

Libraries can be found:
/usr/include/libusb-1.0/libusb.h
and
/usr/lib/libusb-1.0.0.dylib
/usr/lib/libusb-1.0.a
/usr/lib/libusb-1.0.dylib
/usr/lib/libusb-1.0.la

But I get an error:
cmake ../
-- The C compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Build type not specified: defaulting to a release build.
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28")
-- checking for module 'libusb-1.0'
-- package 'libusb-1.0' not found
CMake Error at cmake/modules/FindLibUSB.cmake:120 (message):
libusb-1.0 not found - is it installed? If you're using a binary
distribution, try setting -DLIBUSB_PATH=<path_to_libusb_files>.
Call Stack (most recent call first):
libraries/libbladeRF/CMakeLists.txt:103 (find_package)

-- Configuring incomplete, errors occurred!
>

CMakeCache.txt:
//Path to a library.
usb_LIBRARY:FILEPATH=usb_LIBRARY-NOTFOUND

Any ideas?
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: MacBook and USB3

Post by bpadalino »

If you run pkg-config --list-all | grep libusb, what shows up?

Have you tried setting -DLIBUSB_PATH=/usr in your CMake instruction?
Antti
Posts: 8
Joined: Fri Mar 01, 2013 4:16 am

Re: MacBook and USB3

Post by Antti »

Now works. I added libusb-1.0.pc file to "/opt/local/lib/pkgconfig" folder.

bladeRF-cli -i
[INFO] Using libusb version 1.0.17.10830
[INFO] Found a bladeRF
[INFO] Claimed all inferfaces successfully
[INFO] Change to alternate interface 1
[INFO] Changed into RF link mode: LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED
[WARNING] Could not extract serial number
[WARNING] Could not extract VCTCXO trim value
[WARNING] Could not extract FPGA size
[DEBUG:] bladerf_open: fw=v1.2 serial=3d9eaxxxx trim=0x99cb fpga_size=115

bladeRF> version
[WARNING] FPGA currently does not have a version number.
Serial #: 3d9eaxxxx
VCTCXO DAC calibration: 0x99cb
FPGA size: 115 KLE
Firmware version: 1.2
FPGA version: 0.0
bladeRF>
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: MacBook and USB3

Post by bpadalino »

Excellent! I'll make a note in the known issues on the wiki.

Thanks for testing!
Post Reply