LINUX内核版本2.6.21,使用我的两块板子(cpu均为s3c2416),一块作为USB HOST,一块作为USB DEVICE。现在情况是将DEVICE设备连到HOST上出错,错误消息如下:
[[email protected] /]# usb 1-1.1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1.1: device descriptor read/64, error -62
usb 1-1.1: device descriptor read/64, error -62
usb 1-1.1: new full speed USB device using s3c2410-ohci and address 4
usb 1-1.1: device descriptor read/64, error -62
usb 1-1.1: device descriptor read/64, error -62
usb 1-1.1: new full speed USB device using s3c2410-ohci and address 5
usb 1-1.1: device not accepting address 5, error -62
usb 1-1.1: new full speed USB device using s3c2410-ohci and address 6
usb 1-1.1: device not accepting address 6, error -62
可确定HOST侧是好的(因为我连上U盘可正常识别),看来问题应该在DEVICE这边。
HOST和DEVICE侧的驱动都是移植的友坚开发板自带的驱动。
由上述消息大概问题出在哪,我现在都没有方向了。请指教。
------解决方案--------------------
You miss the most important parameters: file=xxxx
For example:
dd if=/dev/zero of=test.img bs=1M count=10
mkfs.vfat test.img
insmod g_file_storage.ko file=test.img stall=0 removable=1