Reply
Thread Tools
Posts: 110 | Thanked: 362 times | Joined on May 2014
#1
Hi,
I use my N900 as a usb boot device for some Linux distro isos.
In order to do that i do

losetup /dev/loop1 <linux.iso>
/usr/sbin/osso-usb-mass-storage-enable.sh /dev/loop1

But strangly this is only working after i plugged in the usb port.

I get a G_FILE_STORAGE_READY and it simple works.
Even if i disconnect the usb and replug it it still works.

Investigating further
a reduced modified osso-usb-mass-storage-enable.sh:

losetup /dev/loop1 <image.iso>
/sbin/modprobe g_file_storage stall=0 luns=2 removable
echo "/dev/loop1">/sys/devices/platform/musb_hdrc/gadget/gadget-lun0/file

works pre plugged..

The /sbin/grep $MODE -e idle check seems strange..
Why is it checking this? is this dangerous?

I tried wirting too, but it seems unstable .. any info on this?
 

The Following 3 Users Say Thank You to pythoneye2 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:56.