自己做的板子,USB口插上鼠标可以使用,但是插上优盘就不能工作。
linux内核配置肯定是没问题的,我的配置按照这个文档检查过,该选的都选上了:http://processors.wiki.ti.com/index.php/UsbConfigHostMSC
另外也用SDK里最原始未改过的.config试过,结果也一样。也可以排除优盘的问题,试过好几个优盘了。
插上优盘,串口就会出现如下打印:
[ 596.043385] usb 1-1: new high-speed USB device number 17 using musb-hdrc
[ 596.103419] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 596.383361] usb 1-1: new high-speed USB device number 18 using musb-hdrc
[ 596.443384] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 596.723357] usb 1-1: new high-speed USB device number 19 using musb-hdrc
[ 596.783376] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 597.063357] usb 1-1: new high-speed USB device number 20 using musb-hdrc
[ 597.123373] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 597.403356] usb 1-1: new high-speed USB device number 21 using musb-hdrc
[ 597.463374] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 597.743357] usb 1-1: new high-speed USB device number 22 using musb-hdrc
[ 597.803374] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 598.083379] usb 1-1: new high-speed USB device number 23 using musb-hdrc
[ 598.143411] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 598.423360] usb 1-1: new high-speed USB device number 24 using musb-hdrc
[ 598.483388] hub 1-0:1.0: unable to enumerate USB device on port 1
我手头上有一块StarterKit,同一个优盘插在StarterKit上就能用,StarterKit串口打印如下:
[ 454.136413] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[ 454.276611] usb 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 256
[ 454.286041] usb 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 256
[ 454.295867] usb 1-1: New USB device found, idVendor=071b, idProduct=3203
[ 454.302856] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 454.310333] usb 1-1: Product: ROCK MP3
[ 454.314208] usb 1-1: Manufacturer: RockChip
[ 454.318603] usb 1-1: SerialNumber: USBV1.00
[ 454.332702] usb-storage 1-1:1.0: Quirks match for vid 071b pid 3203: 400
[ 454.339904] scsi1 : usb-storage 1-1:1.0
[ 455.357299] scsi 1:0:0:0: Direct-Access RockChip USB MP3 1.00 PQ: 0 ANSI: 0
[ 455.372863] sd 1:0:0:0: [sda] 7929856 512-byte logical blocks: (4.06 GB/3.78 GiB)
[ 455.392944] sd 1:0:0:0: [sda] Write Protect is off
[ 455.407775] sd 1:0:0:0: [sda] No Caching mode page present
[ 455.413513] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 455.424133] sd 1:0:0:0: [sda] No Caching mode page present
[ 455.429901] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 455.438049] sda:
[ 455.443847] sd 1:0:0:0: [sda] No Caching mode page present
[ 455.449645] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 455.455993] sd 1:0:0:0: [sda] Attached SCSI removable disk