如何列出 yocto 上连接的所有 USB 设备(打印机)?

How to list all the USB devices (printers) connected on yocto?

我正在尝试让 USB 打印机与使用 yocto 的嵌入式系统一起工作。我将 cups 包添加到 yocto 图像中。 lpstat 命令 returns 没有可用的默认目标。我试图查看我的打印机是否通过 lsusb 列出,但 lsusb 似乎不是可识别的命令。 busybox lsusb 不起作用。

Busybox 不提供 lsusb 但 usbutils 提供。 如您所见 here:

Contains the lsusb utility for inspecting the devices connected to the USB bus.

此外,我邀请您使用 dmesg 了解设备发生的情况。