Using the Neo as an USB Mass storage device

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(added 'revert to networking')
Line 7: Line 7:
 
  rmmod g_ether
 
  rmmod g_ether
 
  modprobe g_file_storage file=/dev/mmcblk0p1
 
  modprobe g_file_storage file=/dev/mmcblk0p1
 +
Reference: [http://lists.openmoko.org/pipermail/community/2008-September/029261.html Petr Vanek's "usb mass media storage" message on the community mailing list]
  
 
Q: How to make the Neo FreeRunner revert to USB networking?
 
Q: How to make the Neo FreeRunner revert to USB networking?
Line 16: Line 17:
 
  modprobe g_ether
 
  modprobe g_ether
 
  ifup usb0
 
  ifup usb0
 
Reference: [http://lists.openmoko.org/pipermail/community/2008-September/029261.html Petr Vanek's "usb mass media storage" message on the community mailing list]
 
  
 
Q: Is it possible to pretend to be a USB hub, providing both g_ether and g_file_storage ?
 
Q: Is it possible to pretend to be a USB hub, providing both g_ether and g_file_storage ?

Revision as of 07:12, 26 September 2008

Q: How to make the Neo FreeRunner act as a mass storage device (memory stick, USB key, portable drive...)

A: The following script can be used

#!/bin/sh
ifdown usb0
rmmod g_ether
modprobe g_file_storage file=/dev/mmcblk0p1

Reference: Petr Vanek's "usb mass media storage" message on the community mailing list

Q: How to make the Neo FreeRunner revert to USB networking?

A: The following script can be used (Keep in mind that you need to properly unmount on the host computer FIRST or risk corruption)

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

Q: Is it possible to pretend to be a USB hub, providing both g_ether and g_file_storage ?

A: Not yet. At the moment it's one gadget driver at a time, but there is a project under way to allow use of multiple gadget drivers together. See this blog posting called 'USB Composite Gadget Framework' or Linux-USB Gadget API Framework

Personal tools

Q: How to make the Neo FreeRunner act as a mass storage device (memory stick, USB key, portable drive...)

A: The following script can be used

#!/bin/sh
ifdown usb0
rmmod g_ether
modprobe g_file_storage file=/dev/mmcblk0p1

Q: How to make the Neo FreeRunner revert to USB networking?

A: The following script can be used (Keep in mind that you need to properly unmount on the host computer FIRST or risk corruption)

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

Reference: Petr Vanek's "usb mass media storage" message on the community mailing list

Q: Is it possible to pretend to be a USB hub, providing both g_ether and g_file_storage ?

A: Not yet. At the moment it's one gadget driver at a time, but there is a project under way to allow use of multiple gadget drivers together. See this blog posting called 'USB Composite Gadget Framework' or Linux-USB Gadget API Framework