Re: Making flash appear as USB device

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, 19 Oct 2007, Midhun A wrote:

> Hi All,
> 
>    I have i.MX21 based kit and it has a USB device port. I want the
> kit's flash to be seen as a USB storage device when I connect it to my
> PC though the USB device port. As the kit has a NOR flash only, I
> plugged in a flash drive into the kit (sda1) - hoping to access it
> though the device port from my PC.
> 
>   So I compiled the 2.6.22 kernel with USB_GADGET and
> USB_FILE_STORAGE. The config file is as follows:
> 
> #
> # USB Gadget Support
> #
> CONFIG_USB_GADGET=m
> # CONFIG_USB_GADGET_DEBUG_FILES is not set
> CONFIG_USB_GADGET_SELECTED=y
> # CONFIG_USB_GADGET_FSL_USB2 is not set
> # CONFIG_USB_GADGET_NET2280 is not set
> # 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_AT91 is not set
> CONFIG_USB_GADGET_DUMMY_HCD=y
> CONFIG_USB_DUMMY_HCD=m

>  Now when I plug in the kit to my PC, my PC does not detect it. What
> is it that is going  wrong or am I missing something?

Your problem is that you are using dummy-hcd.  That's not a real device 
controller; it is only an emulator.  You need to use a device 
controller appropriate for the i.MX21.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.