![]() |
Howto osso-usb-mass-storage-enable.sh before plugged in
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? |
All times are GMT. The time now is 16:36. |
vBulletin® Version 3.8.8