libusb error (invalid it is an issue with airspy linux kernel driver) #27
Comments
|
PS: just to add that it works fine with the windows VM I have on the same machine. So its definitely not a hardware issue. Have also updated the firmware to rc6 but no improvement (if anything its worse as airspy_info fails directly with the libusb error without printing any info first) |
|
Your kernel version is greater than 3.17 have you blacklisted the Linux kernel Airspy driver ? You will not be able to update the firmware correctly either unless it is blacklisted. |
|
Blacklisting has seemed to solve it. Doh! Thanks. |
|
Sorry I did not realised that the "libusb_detach_kernel_driver for Linux Kernel" was added to the master branch. |
|
I have updated libairspy version to 1.0.7 in order to be sure we use the feature "libusb_detach_kernel_driver for Linux Kernel" and also other feature introduced after 1.0.6 |
|
Unfortunately it does not seem fixed (enabling the blacklist fixes things again) dgorissen@minion:~/host.orig/build$ airspy_info Found AirSpy board 1 |
|
Could you apply this patch
|
|
Running as root makes no difference. Applied patch, log below. dgorissen@minion:~/host.orig/build$ airspy_info [timestamp] [threadID] facility level [function call][ 0.000680] [00005696] libusb: debug [libusb_kernel_driver_active] interface 0 Found AirSpy board 1 |
|
Thanks for the feedback so the problem is confirmed |
|
Thanks to Antti for his quick fix see |
Driver requested device firmware version string during probe using only 24 byte long buffer. That buffer is too small for newer firmware versions, which causes device firmware hang - device stops responding to any commands after that. Increase buffer size to 128 which should be enough for any current and future version strings. Link: airspy/airspyone_host#27 Cc: <stable@vger.kernel.org> # 3.17+ Reported-by: Benjamin Vernoux <bvernoux@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
So this problem shall be fixed with linux kernel v4.4-rc6 |
Driver requested device firmware version string during probe using only 24 byte long buffer. That buffer is too small for newer firmware versions, which causes device firmware hang - device stops responding to any commands after that. Increase buffer size to 128 which should be enough for any current and future version strings. Link: airspy/airspyone_host#27 Cc: <stable@vger.kernel.org> # 3.17+ Reported-by: Benjamin Vernoux <bvernoux@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
commit aa0850e upstream. Driver requested device firmware version string during probe using only 24 byte long buffer. That buffer is too small for newer firmware versions, which causes device firmware hang - device stops responding to any commands after that. Increase buffer size to 128 which should be enough for any current and future version strings. Link: airspy/airspyone_host#27 Reported-by: Benjamin Vernoux <bvernoux@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit aa0850e upstream. Driver requested device firmware version string during probe using only 24 byte long buffer. That buffer is too small for newer firmware versions, which causes device firmware hang - device stops responding to any commands after that. Increase buffer size to 128 which should be enough for any current and future version strings. Link: airspy/airspyone_host#27 Reported-by: Benjamin Vernoux <bvernoux@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
BugLink: http://bugs.launchpad.net/bugs/1536370 commit aa0850e upstream. Driver requested device firmware version string during probe using only 24 byte long buffer. That buffer is too small for newer firmware versions, which causes device firmware hang - device stops responding to any commands after that. Increase buffer size to 128 which should be enough for any current and future version strings. Link: airspy/airspyone_host#27 Reported-by: Benjamin Vernoux <bvernoux@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Kamal Mostafa <kamal@canonical.com>
commit aa0850e upstream. Driver requested device firmware version string during probe using only 24 byte long buffer. That buffer is too small for newer firmware versions, which causes device firmware hang - device stops responding to any commands after that. Increase buffer size to 128 which should be enough for any current and future version strings. Link: airspy/airspyone_host#27 Reported-by: Benjamin Vernoux <bvernoux@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Im running on ubuntu vivid with a fresh clone & install of the airspy repo (including PR #19 which I understand should make things work out of the box with newer kernels).
However I am unable to connect and unsure how to debug further. See output below.
dgorissen@minion:~$ uname -a
Linux minion 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
dmesg output:
[ 2000.375749] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[ 2000.610160] usb 1-2: New USB device found, idVendor=1d50, idProduct=60a1
[ 2000.610164] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2000.610165] usb 1-2: Product: AIRSPY
[ 2000.610167] usb 1-2: Manufacturer: www.airspy.com
[ 2000.610168] usb 1-2: SerialNumber: AIRSPY SN:466C64C82C1073C7
[ 2000.641372] airspy 1-2:1.0: usb_control_msg() failed -32 request 0a
[ 2000.641375] airspy 1-2:1.0: Could not detect board
[ 2000.641380] airspy: probe of 1-2:1.0 failed with error -32
dgorissen@minion:~$ airspy_info
airspy_lib_version: 1.0.6
Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy NOS v1.0.0-rc5-0-g648c14f 2015-05-20
Part ID Number: 0x6906002B 0x00000030
Serial Number: 0x466C64C82C1073C7
Supported sample rates:
10.000000 MSPS
2.500000 MSPS
Close board 1
airspy_close() board 1 failed: AIRSPY_ERROR_LIBUSB (-1000)
The text was updated successfully, but these errors were encountered: