On Fri, 23 Dec 2005, jpu wrote:

> 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 

> 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.

_That's_ what's wrong.  If you're going to use g_file_storage with 
dummy_hcd, you should configure the kernel to use dummy_hcd and not 
net2280.  The kernel's build system is set up to expect only one gadget 
device controller module.  When you compiled dummy_hcd by hand it probably 
was not built correctly.  For instance, did set set CONFIG_USB_DUMMY_HCD?

You're better off using the kernel build system as it was meant to be 
used.  Configure everything for dummy_hcd instead of net2280.

Alan Stern



-------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to