红联Linux门户
Linux帮助

Linux kernel中USB枚举失败总结

发布时间:2015-10-08 15:15:15来源:linux网站作者:kangear

1.unable to enumerate USB device on port 1
出现这个问题,电压不够或者USB走线有干扰。


2.new config #1 exceeds power limit by 60mA

shell@android:/ # [  202.946798] usb 2-1.2: USB disconnect, device number 5
[  205.229143] usb 2-1.3: new full speed USB device number 6 using usb20_host
[  205.332891] usb 2-1.3: New USB device found, idVendor=0b57, idProduct=8021
[  205.332976] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  205.333031] usb 2-1.3: Product: Tablet
[  205.333059] usb 2-1.3: Manufacturer: HanWang
[  205.333452] usb 2-1.3: new config #1 exceeds power limit by 60mA
[  205.335828] usb 2-1.3: 160mA is over 100mA budget for port 3!
shell@android:/ #

快速的解决方法:中间连接一个USB HUB。


3. no configuration chosen from 1 choice

usb 2-1.3: new high-speed USB device number 13 using dwc2
usb 2-1.3: New USB device found, idVendor=8644, idProduct=800b
usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.3: Product: USB Flash Disk               
usb 2-1.3: Manufacturer: General                      
usb 2-1.3: SerialNumber: 000000000000BC30
usb 2-1.3: rejected 1 configuration due to insufficient available bus power
usb 2-1.3: no configuration chosen from 1 choice


Fix:临时解决方案 echo -n 1 > /sys/bus/usb/devices/2-1.3/bConfigurationVusb如下:

2-1.3: new config #1 exceeds power limit by 400mA
alue
usb-storage 2-1.3:1.0: USB Mass Storage device detected
scsi host0: usb-storage 2-1.3:1.0
miniroot# scsi 0:0:0:0: Direct-Access     General  USB Flash Disk   1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 31299584 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk


i2c--2.6.34文档:如何枚举产生i2c_client:http://www.linuxdiyf.com/linux/5310.html

Linux下Gtkmm枚举目录中所有文件(包含子目录):http://www.linuxdiyf.com/linux/6820.html

Backtrack5安装配置和功能枚举:http://www.linuxdiyf.com/linux/2890.html