USB peripheral as Mass Storage Device

I remember from my iPaq days there was a patch for the SA-1100 for
configuring the USB peripheral as a Mass Storage Device using any block
device on the iPaq (specified as module parameter). You can see the
module here: http://ahmedahamid.tripod.com/usbmass/usb_mass.c (at least
I think its still there, my stupid work proxy blocks that address).

Looking at the code it looks like it would be quite straight forward to
port to other devices, but then I have no idea about USB peripherals or
USB OTG in Linux. Does anyone know if it's been ported to other
processors or if it works on OMAP?

Ed

Control Systems Engineer
Remote Handling Group, Joint European Torus
Direct Line: 01235 464498
Office J7/3B

Take a look at the gadget drivers in kernel/drivers/usb/gadget . I
believe that g_file_storage is what you are looking for