EDmini act as USB mass storage device ? (solved?!)

Ethernet disk mini v2
Post Reply
gaze
Posts: 11
Joined: Tue Sep 23, 2008 7:52 pm

EDmini act as USB mass storage device ? (solved?!)

Post by gaze » Mon Oct 20, 2008 8:00 pm

As topic says, what kind of modifications are needed to make the EDmini appear as a USB mass storage device (e.g. to a Windows host computer) ?

I've read up a bit on aaribaud's site, http://tweaky.aribaud.net, hoping to get a solution but I simply don't understand what needs to be done just based on the information there.

Any tips are appreciated...
Last edited by gaze on Thu Oct 23, 2008 9:11 pm, edited 1 time in total.

rosbif
Posts: 112
Joined: Thu May 08, 2008 11:23 am
Location: near Toulouse, France

Re: Make the EDmini appear as USB mass storage device ?

Post by rosbif » Tue Oct 21, 2008 2:48 am

The first tip is: do not update your kernel to one of mine :( ...
... or to any kernel based on recent mainline code.

I know that Albert (aaribaud) is also very interested in USB mass storage device support; it was his main reason for buying an EDmini v2 ;-)
A prerequisite for this is obviously support for the USB device (slave) port.

Unfortunately Marvell have not introduced USB device support into the mainline kernel so it is only currently supported on the stock LaCie kernels.

Albert or I intend to ask Marvell to add this support, which was present in the Marvell development kit LaCie used for their stock kernel.
We looked at forward porting this code to mainline ourselves but it seems far from trivial and there is the possibility of the result being NACKed by Marvell :(

gaze
Posts: 11
Joined: Tue Sep 23, 2008 7:52 pm

Re: Make the EDmini appear as USB mass storage device ?

Post by gaze » Tue Oct 21, 2008 5:53 pm

I see.. I'm actually still on the original 2.6.12 kernel.

I've only performed, let's call them, "newbie level" modifications such as 'add ssh server' and 'chroot into debian'.

Provided I'm still running original kernel, what would the necessary steps be to go USB mass storage on the EDmini ?

Also time to read up on some USB specs meanwhile I guess...

gaze
Posts: 11
Joined: Tue Sep 23, 2008 7:52 pm

Re: Make the EDmini appear as USB mass storage device ?

Post by gaze » Thu Oct 23, 2008 9:09 pm

Found some interesting stuff at: http://www.linux-usb.org/gadget/file_storage.html

Just be sure to unload g_ether first (rmmod or modprobe -r) to prevent the EDmini
from loading 'Ethernet over USB' when you plug in the USB cable to your host.

I was actually able to get some decent speeds using g_file_storage, about 15 MByte/s read and 10 MByte/s write.
(IIRC g_ether gives about 8 MByte/s read and 5 Mbytes/s write.)

Though my main idea was to have a common storage area accessible from both host and the EDmini, but that doesn't seem to be possible... :(

rosbif
Posts: 112
Joined: Thu May 08, 2008 11:23 am
Location: near Toulouse, France

Re: EDmini act as USB mass storage device ? (solved?!)

Post by rosbif » Sat Oct 25, 2008 6:24 am

Thank you, gaze, for this useful information.

This is fine for pure USB storage applications.

Is also seems possible to use it as a common storage area for read-only sharing between the EDmini and the USB host.
However it seems clear that nobody should write to the area while it is shared.
Nevertheless this could fit some use-cases where the shared area is an archive which is rarely updated.

Post Reply