Re: usb mass media storage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dale Maggee
Date: Friday, September 5, 2008 - 12:56 am

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:
Re: usb mass media storage, Dale Maggee, (Fri Sep 5, 12:56 am)
Re: usb mass media storage, Fox Mulder, (Fri Sep 5, 2:00 am)