[PATCH] [RFC] [WIP] commands: add tree view capable lsusb

Holger Schurig holgerschurig at gmail.com
Wed May 21 06:20:21 PDT 2014


Nice, I would just remove the extra empty lines. Linux' "lsusb -t" for
example produces this:

holger at desktop:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
        |__ Port 1: Dev 27, If 0, Class=HID, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=HID, Driver=usbhid, 1.5M
        |__ Port 6: Dev 126, If 0, Class=hub, Driver=hub/2p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M

Also please add an entry into commands/Kconfig: And put it into the
info group, lsusb just shows something, it doesn't manipulate any
hardware.



More information about the barebox mailing list