Linux kernel中USB枚举失败总结

来源:互联网 发布:淘宝儿童服装店哪个好 编辑:程序博客网 时间:2024/05/29 18:21

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 dwc2usb 2-1.3: New USB device found, idVendor=8644, idProduct=800busb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3usb 2-1.3: Product: USB Flash Disk                usb 2-1.3: Manufacturer: General                       usb 2-1.3: SerialNumber: 000000000000BC30usb 2-1.3: rejected 1 configuration due to insufficient available bus powerusb 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 400mAalue usb-storage 2-1.3:1.0: USB Mass Storage device detectedscsi host0: usb-storage 2-1.3:1.0miniroot# scsi 0:0:0:0: Direct-Access     General  USB Flash Disk   1.00 PQ: 0 ANSI: 2sd 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 offsd 0:0:0:0: [sda] No Caching mode page foundsd 0:0:0:0: [sda] Assuming drive cache: write through sda: sda1sd 0:0:0:0: [sda] Attached SCSI removable disk
0 0