Re: usb mass media storage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dale Maggee
Date: Thursday, September 4, 2008 - 7:41 pm

Petr Vanek wrote:
very cool, but before I test it out (potentially breaking my usb 
networking in the process), I have a couple of questions:

1. will this persist over a reboot, or will it revert back to being an 
ethernet gadget when I reboot?

2. is the following sufficient to switch it back?

#!/bin/sh
rmmod g_file_storage
modprobe g_ether
ifup usb0

(assuming I replaced '/etc/init.d/networking stop' with 'ifdown usb0' as 
recommended by Daniel)

3. can somebody point me to a resource for the g_file_storage module 
where I can learn more about it? I did a couple of quick googles but 
didn't see anything promising. specifically I'd like to know more about 
the file parameter - I assume that in this scenario our "usb stick" is 
using partition/device information from /dev/mmcblk0p1, and will be 
partitioned in the same way as the SD card? what If I wanted to have my 
home directory accessible in "usb stick" mode?

Thanks,
-Dale

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
usb mass media storage, Petr Vanek, (Tue Sep 2, 12:47 pm)
Re: usb mass media storage, Daniel Benoy, (Tue Sep 2, 1:20 pm)
Re: usb mass media storage, Al Johnson, (Tue Sep 2, 3:04 pm)
Re: usb mass media storage, Adrien de Sentenac, (Tue Sep 2, 3:22 pm)
Re: usb mass media storage, "Marco Trevisan (Tre ..., (Tue Sep 2, 7:42 pm)
Re: usb mass media storage, Dale Maggee, (Thu Sep 4, 7:41 pm)
Re: usb mass media storage, pHilipp Zabel, (Fri Sep 5, 4:04 am)
Re: usb mass media storage, Christian Adams, (Fri Sep 5, 5:51 am)
Re: usb mass media storage, Dale Maggee, (Fri Sep 5, 6:21 am)
Re: usb mass media storage, arne anka, (Fri Sep 5, 6:32 am)
Re: usb mass media storage, shawnzier, (Fri Sep 5, 7:02 am)
Re: usb mass media storage, Dale Maggee, (Fri Sep 5, 8:42 am)
Re: usb mass media storage, "Marco Trevisan (Tre ..., (Sun Sep 7, 8:43 pm)