Is it possible to use beagleBoard as a mass storage device?

Hi, All,

Is it possible to use beagleBoard as a mass storage device (MSD)?

What I want is: when the beagleBoard's OTG USB port with connected
with Windows PC, beagleBoard should be emumeratd by PC and a file (I
don't care the size, it could be small, like 2M) can be transferred to
BeagleBoard as MSD.

Can anyone enlighten me how to do this?

Thank you very much

Hi, All,

Is it possible to use beagleBoard as a mass storage device (MSD)?

Sure , you need to use the standard linux file storage gadget
http://www.linux-usb.org/gadget/file_storage.html

and export a non used (fat) file system

hope this helps.

Thank you for the info.

I tried to follow the instructions in "http://www.linux-usb.org/gadget/
file_storage.html" and failed, I have to ask some dummy questions.

What I did:

[root@beagleboard /]# cd /root
[root@beagleboard /root]# mkdir data
[root@beagleboard /root]# dd bs=1M count=2 if=/dev/zero of=/root/data/
backing_file
dd: writing '/root/data/backing_file': No space left on device
1+0 records in
0+0 records out

Obviously I did not succeed in creating a 2M size file as /root/data/
backing_file.

Can you take a look why? BTW, after kenel boots on BeagleBoard, the
file system is in ram or flash or MMC card?

Thanks

Indeed , perhaps you can use the sd card for that (just give the file
storage driver
the mmc parition as backing file. something like file=/dev/mmcblk0p1

greetings

Kees,

I reduced the file size further and did get the command "dd ..."
working:

dd bs=1K count=64 if=/dev/zero of=/root/data/backing_file
64+0 records in
64+0 records out

now when I do the next command as in "http://www.linux-usb.org/gadget/
file_storage.html":

modprobe g_file_storage file=/root/data/backing_file
modprobe: cannot parse modules.dep

I have no clue of this, can you provide any suggestions?

Thanks

chuqdd

Do you need to run depmod first?

Kind regards,

Remco Poelstra