lsusb

最後更新: 2016-05-20

 

介紹

 

 


Install

 

yum install usbutils

 


Tree view

 

lsusb -t

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M

 * "Dev 1" 是 hub 來

 

lsusb -v | grep -i bcdusb            # more detail

  bcdUSB               2.00
  bcdUSB               2.00
  bcdUSB               2.00
  bcdUSB               3.00
  bcdUSB               2.00
  bcdUSB               2.00
  bcdUSB               2.00
  bcdUSB               2.00
  bcdUSB               1.10
  bcdUSB               1.10
  bcdUSB               2.10

 

lsusb -v -s[[bus]:][devnum]                # Show  only  devices  in specified bus and/or devnum.

 


USB Speed

 

  • USB 1.10     12Mb/s
  • USB 2.00     480Mb/s
  • USB 3.00     5Gb/s

 


Check USB Version

 

新版 lsusb

lsusb -t

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M

5000M => USB3

480M => USB2

舊版 lsusb - 某條 Bus 的 speed

lsusb -v -s 4:1 | grep bcdUSB

  bcdUSB               2.00

 


找不到 USB Disk

 

# dmsg

usb 4-3: new high speed USB device using ehci_hcd and address 4
ub(4.4): GetMaxLUN returned 0, using 1 LUNs
 uba: uba1 uba2
usbcore: registered new driver ub
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

# check partition

cat /proc/partitions

 

# 建立 uba0 及 uba1 uba2 ...

_DEV="uba"

mknod /dev/$_DEV b 180 0

for i in 1 2 3 4 5; do
        mknod /dev/$_DEV${i} b 180 ${i}
done

Remark

Character devices: 180 usb

Block devices: 8 sd

 


 

 

Creative Commons license icon Creative Commons license icon