On Tue, Jul 18, 2006 at 07:35:25PM +0530, Ajay Jain wrote:
> > > I have a usb hardware on my ARM based board. I want to develop a usb
> > > function driver so that I can view the file-system on the host side. I
> > > guess such kind of functionality is exposed in the mass-storage class.
> >
> > No.
> >
> > > Can somebody guide me as to how to proceed? Are there any sample
> > > drivers available? I am using linux-2.6.14. Just to cross-check, once
> > > I develop this driver, I will be able to view the file-system on any
> > > host, be it windows or be it linux.
> >
> > You're never going to be able to view the filesystem on a host if the host
> > doesn't want to let you see it.
> >
> > The simplest approach is to use a USB-Ethernet converter and network the
> > two devices.  Or to make things even simpler, just wire an Ethernet cable
> > between the two machines and forget about USB.  Then you can set up
> > regular file sharing (Samba, NFS, or any other flavor you like) and browse
> > remotely to your heart's content.
> 
> Apologies, I could not make my point clear. We have a usb-function
> capability on our arm based board. We want to expose our device as a
> mass storage device. We understand that we will have to write a usb
> function driver for the same. The usb function can expose itself like
> a serial class, mass-storage class, audio class etc. We want to
> demonstrate usb as a mass storage device. So how do we proceed on
> this?

Use the drivers/usb/gadget/file_storage.c driver on your system, and it
will show up as what you want.

good luck,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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