Hi:

I'm currently planning to run dummy_hcd with usb_storage and g_file_storage in 
my
linux whose kernel version is 2.6.13.4.The present situation is dummy_hcd
and usb_storage can be loaded successfully,but g_fie_storage failed.when i use 
the
following module load command:
          #insmod g_file_storage.ko file=/my_file 
I got this messge: 
          insmod: error inserting 'g_file_storage.ko': -1 No such device 

Here is the dump from lsmod:

Module                  Size  Used by
usb_storage            98576  0 
dummy_hcd              19076  0 
autofs                 13184  0 
vmhgfs                 40172  4 
pcnet32                26756  0 
mii                     4576  1 pcnet32
ohci1394               32556  0 
ieee1394               91476  1 ohci1394
parport_pc             25348  0 
parport                33344  1 parport_pc
usbcore               128300  3 usb_storage,dummy_hcd
BusLogic               78100  3 
sd_mod                 15392  4 
scsi_mod              129736  3 usb_storage,BusLogic,sd_mod


And the following is the dump from dmesg:

dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May 2005
dummy_hcd dummy_hcd: Dummy host controller
dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 1
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Dummy host controller
usb usb1: Manufacturer: Linux 2.6.13.4 dummy_hcd
usb usb1: SerialNumber: dummy_hcd
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: hotplug
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: individual port power switching
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: Single TT
hub 1-0:1.0: TT requires at most 8 FS bit times
hub 1-0:1.0: power on to power good time: 0ms
hub 1-0:1.0: 8mA bus power budget for children
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
hub 1-0:1.0: enabling power on all ports
hub 1-0:1.0: state 5 ports 1 chg 0000 evt 0000
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.



Finally,there is the configuration info about USB gadget in .config file:
#
# USB Gadget Support
#
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DEBUG_FILES=y
CONFIG_USB_GADGET_SELECTED=y
CONFIG_USB_GADGET_NET2280=y
CONFIG_USB_NET2280=y
# CONFIG_USB_GADGET_PXA2XX is not set
# CONFIG_USB_GADGET_GOKU is not set
# CONFIG_USB_GADGET_LH7A40X is not set
# CONFIG_USB_GADGET_OMAP is not set
# CONFIG_USB_GADGET_DUMMY_HCD is not set
CONFIG_USB_GADGET_DUALSPEED=y
# CONFIG_USB_ZERO is not set
# CONFIG_USB_ETH is not set
CONFIG_USB_GADGETFS=m
CONFIG_USB_FILE_STORAGE=m
CONFIG_USB_FILE_STORAGE_TEST=y
# CONFIG_USB_G_SERIAL is not set


When configing the kernel,I do not set the CONFIG_USB_GADGET_DUMMY_HCD, but
compile the dummy_hcd module individually by myself.I have no idea that what's
wrong with it.Anyone could provide any clue about this will be appreciated very
much.  

Best regadrs!
Jim 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to