救命,USB Gadget驱动一直reset!
时间:2008-08-28
来源:互联网
小弟最近在做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开发板,主机没有识别出设备,做过或知道的大侠是怎么做得,能指点一下小弟吗?
[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开发板,主机没有识别出设备,做过或知道的大侠是怎么做得,能指点一下小弟吗?
作者: sqlwth 发布时间: 2008-08-28
QQ:24741049, 一起讨论!
作者: czliuzhuo 发布时间: 2008-09-01
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28