【openwrt 】openwrt 执行命令lsusb出错 -ash: lsusb: not found解决
本帖最后由 sunsili 于 2023-7-25 08:39 编辑【openwrt 】openwrt 执行命令lsusb出错 -ash: lsusb: not found解决
lsusb是开发usb设备的调试工具
【现象】
查看当前接入的usb设备执行命令:
lsusb
-ash: lsusb: not found
运行出错
【原因】
lsusb末安装
【解决方法】
方法一:
手动安装usbublits,
安装usbutils包,OPKG会自动给你选择所依赖的其他包关系:
opkg update
opkg install usbutils
Installing usbutils (013-2) to root...
Downloading https://downloads.openwrt.org/re ... 3-2_mipsel_24kc.ipk
Installing librt (1.1.24-3) to root...
Downloading https://downloads.openwrt.org/re ... 4-3_mipsel_24kc.ipk
Installing libusb-1.0-0 (1.0.24-4) to root...
Downloading https://downloads.openwrt.org/re ... 4-4_mipsel_24kc.ipk
Installing libevdev (1.13.0-1) to root...
Downloading https://downloads.openwrt.org/re ... 0-1_mipsel_24kc.ipk
Installing libudev-zero (1.0.1-1) to root...
Downloading https://downloads.openwrt.org/re ... 1-1_mipsel_24kc.ipk
Installing usbids (0.359-1) to root...
Downloading https://downloads.openwrt.org/re ... 9-1_mipsel_24kc.ipk
Configuring libevdev.
Configuring librt.
Configuring libusb-1.0-0.
Configuring libudev-zero.
Configuring usbids.
Configuring usbutils.
安装成功。(只要联网都安装成功,并能关联安装相关依赖)
方法二:
编译openwrt内核时,勾选usbutils包,编译成ipk包与上面安装 一样的效果, 编译成内核组件, 刷写固件,就有的。
查看当前接入的usb设备
lsusb
Bus 001 Device 002: ID 1782:4e00 UNISOC UNISOC-8910
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.143 ehci_hcd EHCI Host Controller
可以看列出相关usb设备
页:
[1]