unable to initialize libusb : -99

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

unable to initialize libusb : -99

1,920件の閲覧回数
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

ラベル(1)
0 件の賞賛
1 返信

1,430件の閲覧回数
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 件の賞賛