unable to initialize libusb : -99

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unable to initialize libusb : -99

2,251 Views
0609ccj
Contributor I

I based on imx-yocto-L4.14.78_1.0.0_ga  download the following content,the kernel version is linux4.9.67

$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m
imx-4.14.78-1.0.0_ga.xml
$ repo sync

i add package usbutils. it's print error the following content when runing lsusb.

unable to initialize libusb : -99

my machine is imx6qdlsabresd, but I use linux4.1.44 is right. I use the same rootfs.

I don't know what fix this bug, who can help me.

thanks

Labels (1)
0 Kudos
Reply
1 Reply

1,761 Views
terry_lv
NXP Employee
NXP Employee

Hi,

  I havn't tried libusb on linux 4.14.78 before.

  But in my experence, there're two points to fix this issue:

  1. Enable debug log in libusb and rebuild libusb. Check what is the problem inside libusb.

  2. libusb requires netlink socket to communicate with kernel. So define CONFIG_NETLINK_DIAG=y in defconfig and rebuild kernel may help.

  Thanks!

Regards

Terry

0 Kudos
Reply