AVR32 Linux Development/USB mass storage device
From AVRFreaks Wiki
NGW100 and STK1000 can play the role of a generic USB mass storage device. For this is uses the SD-card for storage, and linux implemented usb drivers.
To enable USB mass storage device a few modules (drivers) must be loaded into the linux kernel, and the sd card must be unmonted (not used by NGW100 / STK1000). Please note that the default configuration for STK1000 (booting from SD-card) can not be used.
~# umount /dev/mmcblk0p1 ~# modprobe atmel-mci ~# modprobe mmc_block ~# modprobe g_file_storage file=/dev/mmcblk0p1 removable=1
This loads the mmc driver and finally the usb mass storage device driver.
The 'removable=1' argument is required to make the device operate as a well known flash disk. If it is omitted Windows will recognize the device as a hard disk and it has to be assigned a drive letter manually.
Please note the incompatibility between the mass storage driver and Linux file system explained in NGW known issues