Page 1 of 1

[Solved] Ubuntu drivers error: LIBUSB_ERROR_INVALID_PARAM

Posted: Thu May 15, 2014 8:49 am
by djrevmoon
Hi,

just installed bladeRF-cli on stock Ubuntu 14.04 LTS as per the instruction in the wiki, and get this:

$ bladeRF-cli -p
[ERROR] Could not open bladeRF device: LIBUSB_ERROR_INVALID_PARAM
probe: Failed to probe for devices: Provided parameter was out of the allowable range

So I ran it in vebose:

[VERBOSE] Found bladeRF (based upon VID/PID)
[DEBUG] Failed to retrieve serial number
[ERROR] Could not open bladeRF device: LIBUSB_ERROR_INVALID_PARAM
[DEBUG] Probe failed on backend 0: Provided parameter was out of the allowable range
probe: Failed to probe for devices: Provided parameter was out of the allowable range

Googling for this error doesnt really get me any further.... Libusb 1.0.0 is installed.

Any pointers? Or should I just compile from source?

thanks!

Re: Ubuntu drivers error: LIBUSB_ERROR_INVALID_PARAM

Posted: Thu May 15, 2014 12:07 pm
by djrevmoon
Yeah that sounds very likely, i bought it a while ago but didnt really get the usb3 support working on ubuntu in parallels. Also I wanted to try openbts and stuff but that did not work back then. I've dusted it off and decided to give it another twirl, but indeed did not update firmware. So I'll be doing that now, thanks for the tip!

Re: Ubuntu drivers error: LIBUSB_ERROR_INVALID_PARAM

Posted: Thu May 15, 2014 12:54 pm
by djrevmoon
Ok I'm running:

ralph@destroyer2:~$ bladeRF-cli --version
0.10.7-git-358160d-ppatrusty
ralph@destroyer2:~$ bladeRF-cli --lib-version
0.14.0-git-358160d-ppatrusty
ralph@destroyer2:~$

lsusb gives:
Bus 001 Device 009: ID 1d50:6066 OpenMoko, Inc.

If I set the jumper I get:
Bus 001 Device 010: ID 04b4:00f3 Cypress Semiconductor Corp.

Then, I tried to flash:

ralph@destroyer2:~$ bladeRF-cli -v verbose
[VERBOSE] Using libusb version: 1.0.17.10830
[INFO] Found FX3 bootloader device on bus=1 addr=10. This may be a bladeRF.
[INFO] Use bladeRF-cli command "recover 1 10 <FX3 firmware>" to boot the bladeRF firmware.
[DEBUG] No devices available on the libusb backend.
No device(s) attached.
ralph@destroyer2:~$ bladeRF-cli recover 1 10 Downloads/bladeRF_fw_v1.6.1.img
ralph@destroyer2:~$

I then repositioned the jumper and powercycled the device and ran:

ralph@destroyer2:~$ bladeRF-cli -p
[ERROR] Could not open bladeRF device: LIBUSB_ERROR_INVALID_PARAM
probe: Failed to probe for devices: Provided parameter was out of the allowable range

So, no luck....
Any more pointers?

Re: Ubuntu drivers error: LIBUSB_ERROR_INVALID_PARAM

Posted: Fri May 16, 2014 7:23 am
by djrevmoon
Woop! That worked! thank you very much!

It now detects:

$ bladeRF-cli -p

Backend: libusb
Serial: 0bb3137c20ae145a367357ddd61cb4ae
USB Bus: 1
USB Address: 6