Steve,
1) # create an 8MB USB file
dd bs=1M count=8 if=/dev/zero of=/opt/usbfile
2) # run fdisk to set S=8,H=16,C=128 and then create and write an
8MB partation to the /opt/usbfile created by DD
3) #start USB Gadget
modprobe g_file_storage file=/opt/usbfile
4) Plug board in to WindowsXP host. I can see the USB Mass storage
device appear in the USB section of device manager. I can see the
linux file-stor gadget usb device appear under DiskDrives in
device manager.
You are missing to format the device as FAT(32).
Actually you can skip the step of running fdisk at the file, Windows
can read mass storage devices without partitions table, it just look
for the FAT boot sector at the first block.
So try making your step 2:
mkfs.msdos /opt/usbfile
Regards,
Diego Dompe
RidgeRun Engineering
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source