USB Host mass storage device possible?

726 views
Skip to first unread message

pat...@joytech.com.au

unread,
Jan 6, 2014, 2:23:11 AM1/6/14
to beagl...@googlegroups.com
Hi,

Would appreciate some insights into whether or not this would be possible with the current beaglebone black hardware.

Could I have a BBB running ubuntu that at the same time can be plugged into a pc and act as a USB mass storage device?

So for example just say I have a computer running windows xp with no admin rights to install drivers, could I plug a BBB into this computer, have the BBB show up as a mass storage device, copy files to a location on the BBB (possibly a virtual filesystem or separate SD card partition), BBB performs some form of processing on the files etc...

Hope this makes sense.

Thanks,
Patrick

Robert Nelson

unread,
Jan 6, 2014, 8:53:14 AM1/6/14
to Beagle Board
That's easy, we've been doing that by default since the bbb came out
with the images hosted here:

http://elinux.org/BeagleBoardUbuntu

you can see how we do it by looking at our init script..

https://github.com/RobertCNelson/omap-image-builder/blob/master/scripts_device/am335x_evm.sh#L29

adapt it to your image as needed..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Philip Polstra

unread,
Jan 6, 2014, 9:47:23 AM1/6/14
to beagl...@googlegroups.com

What kind of processing do you want to do?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

pat...@joytech.com.au

unread,
Jan 6, 2014, 6:07:16 PM1/6/14
to beagl...@googlegroups.com

Thanks that's good news, I don't have a BBB yet as nobody seems to have any stock but hopefully can get one next month.

So by default the OS will run from the NAND and the sdcard will appear as a mass storage device on the pc?

I tried to do something similar on a Marsboard and I had to use g_file_storage and g_mass_storage kernel modules from gadgetfs. Does the BBB use gadgetfs or something different to achieve the mass storage functionailty?

Patrick

pat...@joytech.com.au

unread,
Jan 6, 2014, 7:05:39 PM1/6/14
to beagl...@googlegroups.com
Nothing too fancy, I was thinking of having a 3g modem attached to the BBB that would upload/download files to a remote server which could then be accessed via mass transfer protocol from a pc.

Robert Nelson

unread,
Jan 6, 2014, 7:53:13 PM1/6/14
to Beagle Board
> Thanks that's good news, I don't have a BBB yet as nobody seems to have any stock but hopefully can get one next month.
>
> So by default the OS will run from the NAND and the sdcard will appear as a mass storage device on the pc?

"nand" -> eMMC ..

the first partition does by default..

>
> I tried to do something similar on a Marsboard and I had to use g_file_storage and g_mass_storage kernel modules from gadgetfs. Does the BBB use gadgetfs or something different to achieve the mass storage functionailty?

same subsystem..

Robert Nelson

unread,
Jan 6, 2014, 7:54:45 PM1/6/14
to Beagle Board
On Mon, Jan 6, 2014 at 6:05 PM, <pat...@joytech.com.au> wrote:
> Nothing too fancy, I was thinking of having a 3g modem attached to the BBB that would upload/download files to a remote server which could then be accessed via mass transfer protocol from a pc.

The only thing you can do is plug it in and find out.. some are
supported some are not..

andrey.i...@gmail.com

unread,
Aug 9, 2014, 7:25:39 PM8/9/14
to beagl...@googlegroups.com
Hi Robert,

Is this (USB mass storage only) still possible with the new (Debian) BBB? Unfortunately the github link appears to be broken now. Is the init script that does this somewhere accessible still?


Thanks!
Andrey

Robert Nelson

unread,
Aug 11, 2014, 5:10:16 PM8/11/14
to Beagle Board
On Sat, Aug 9, 2014 at 6:25 PM, <andrey.i...@gmail.com> wrote:
> Hi Robert,
>
> Is this (USB mass storage only) still possible with the new (Debian) BBB?
> Unfortunately the github link appears to be broken now. Is the init script
> that does this somewhere accessible still?

I moved it out into a simpler shared repo:

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L76

you'll find this cloned to: /opt/scripts/boot/am335x_evm.sh

andrey.i...@gmail.com

unread,
Aug 11, 2014, 5:59:07 PM8/11/14
to beagl...@googlegroups.com
Thank you! That's it. Turns out I was also trying to load the g_mass_storage module with incorrect parameters.


Thanks again.

kerrp...@gmail.com

unread,
Oct 8, 2014, 11:10:05 PM10/8/14
to beagl...@googlegroups.com
Once mass storage device is created can you continue to send files to the pc from BBB even usb is has already been plugged in?

surj....@gmail.com

unread,
Jan 24, 2015, 11:02:29 PM1/24/15
to beagl...@googlegroups.com
Hi Robert,

I can't get  that URL to resolve - can you post the updated link please? Thanks.

Surj.

Robert Nelson

unread,
Jan 26, 2015, 3:00:36 PM1/26/15
to Beagle Board
On Sat, Jan 24, 2015 at 10:02 PM, <surj....@gmail.com> wrote:
> Hi Robert,
>
> I can't get that URL to resolve - can you post the updated link please?
> Thanks.

I'm sorry, but your subject/question doesn't seem to resolve, can you
please post your actual question.

Surj Patel

unread,
Jan 26, 2015, 3:58:18 PM1/26/15
to beagl...@googlegroups.com
Robert,

I am so sorry, the link to the Github repo was not resolving, but as I
read later on in the post you moved it and posted the actual link. So,
my fault and I should have read the entire thread first!

All the best,

Surj.
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/g6j-8FsOFb4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
surj patel

Satya

unread,
Jan 27, 2015, 9:58:10 PM1/27/15
to beagl...@googlegroups.com
I had configured RNDIS & CDC gadget within the kernel,every thing seems good,able to access like network adapter,but suddenly both seems stop working,even the CDC comm interface.

Can we be able to use both interfaces at a time with full speed??
Reply all
Reply to author
Forward
0 new messages