Thread
:
Howto osso-usb-mass-storage-enable.sh before plugged in
View Single Post
pythoneye2
2015-01-21 , 20:18
Posts: 110 | Thanked: 363 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?
Quote & Reply
|
The Following 3 Users Say Thank You to pythoneye2 For This Useful Post:
reinob
,
rotoflex
,
Sohil876
pythoneye2
View Public Profile
Send a private message to pythoneye2
Find all posts by pythoneye2