Configuring USB File Storage Gadget

How does one configure the USB File Storage Gadget?

I'm using Beagleboard Rev C with Linux version 2.6.28-rc9-omap1.

When running a version of the kernel with the Gadget built as a module and running

insmod g_file_storage.ko file=/dev/mmcblk0p1 stall=0 removable=1

at boot time, I get an error message "insmod: cannot insert 'g_file_storage.ko': Cannot allocate memory"

When running a version of the kernel with the Gadget built-in, I get the following error message on startup:

g_file_storage gadget: no file given for LUN0

Obviously it's not configured, but so far all info on how to configure have led to dead ends.

-Stevo

Hi Stevo,

If this was resolved, could you please explain what you did?
It’s already 5 years and no surprise if you forgot the details but appreciate if you can remember some fragments.

Thanks,
SR.

Hi SR,