General NAS-Central Forums

Welcome to the NAS community
It is currently Tue Dec 12, 2017 6:45 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Oct 20, 2008 8:00 pm 
Offline

Joined: Tue Sep 23, 2008 7:52 pm
Posts: 11
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.

Top
 Profile  
 
PostPosted: Tue Oct 21, 2008 2:48 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
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 :(


Top
 Profile  
 
PostPosted: Tue Oct 21, 2008 5:53 pm 
Offline

Joined: Tue Sep 23, 2008 7:52 pm
Posts: 11
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...


Top
 Profile  
 
PostPosted: Thu Oct 23, 2008 9:09 pm 
Offline

Joined: Tue Sep 23, 2008 7:52 pm
Posts: 11
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... :(


Top
 Profile  
 
PostPosted: Sat Oct 25, 2008 6:24 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group