小弟最近在做Linux下的USB Gadget驱动,一直有个问题解决不了。向各位大侠求救!!
[root@(none) usr]# insmod s3c2410_udc.ko
Using s3c2410_udc.ko
0.00 USB: s3c2410_udc: version 14 Mar 2005
0.01 USB: s3c2410_udc_probe
0.02 USB: udc_disable called
[root@(none) usr]# insmod g_file_storage.ko file=/dev/mtdblock/3 removable=1
Using g_file_storage.ko
0.03 USB: usb_gadget_register_driver() 'g_file_storage'
0.04 USB: binding gadget driver 'g_file_storage'
0.05 USB: s3c2410_alloc_request(ep=bf0088e0,flags=208)
0.06 USB: s3c2410_alloc_buffer()
0.07 USB: s3c2410_alloc_buffer()
0.08 USB: s3c2410_alloc_buffer()
0.09 USB: s3c2410_set_selfpowered()
g_file_storage gadget: File-backed Storage Gadget, version: 20 October 2004
g_file_storage gadget: Number of LUNs=1
插入USB数据线到主机后:
0.15 USB: usbs=04, usbds=00, pwr=08 ep0csr=00
0.16 USB: USB reset csr: 0 pwr: 8
0.17 USB: usbs=00, usbds=00, pwr=08 ep0csr=00
0.18 USB: irq: 41 done.
0.19 USB: usbs=04, usbds=00, pwr=08 ep0csr=00
0.20 USB: USB reset csr: 0 pwr: 8
0.21 USB: usbs=00, usbds=00, pwr=08 ep0csr=00
0.22 USB: irq: 41 done.
0.23 USB: usbs=04, usbds=00, pwr=08 ep0csr=00
0.24 USB: USB reset csr: 0 pwr: 8
0.25 USB: usbs=00, usbds=00, pwr=08 ep0csr=00
0.26 USB: irq: 41 done.
0.27 USB: usbs=04, usbds=00, pwr=08 ep0csr=00
0.28 USB: USB reset csr: 0 pwr: 8
...
pwr=08 表示主机一直在reset开发板,主机没有识别出设备,做过或知道的大侠是怎么做得,能指点一下小弟吗?
--------------------next---------------------
阅读(215) | 评论(0) | 转发(0) |