Intro
Downloads
Community
Development
News
TALK
Power Search
Today's Posts
Search
Register
Talk FAQ
Community
Forgot Password?
Active Topics
Sailfish OS for the Motorola Moto G7 Power (XT1955-5) - (ocean) (3)
to
SailfishOS
by edp17 - 6 hrs, 26 mins ago
The N900 is now 15 years old! (6)
to
Nokia N900
by Macros - 1 day, 10 hrs ago
F(x)tec Pro1x (QWERTY) for sale (0)
to
Buy & Sell
by aln00000 - 1 day, 23 hrs ago
n770 youtube video (0)
to
General
by nmdv - 5 days, 22 hrs ago
more...
maemo.org
>
Talk
>
OS / Platform
>
Maemo 5 / Fremantle
> Howto osso-usb-mass-storage-enable.sh before plugged in
Community Links
Members List
Search Forums
Show Threads
Show Posts
Tag Search
Advanced Search
Find All Thanked Posts
Go to Page...
Thread Tools
pythoneye2
2015-01-21 , 20:18
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?
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
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Talk
General
Brainstorm
Community
Off Topic
Software
Applications
Multimedia
Games
Themes
Design
OS / Platform
SailfishOS
NeoFremantle
MeeGo / Harmattan
Maemo 5 / Fremantle
Maemo 7 / Leste
OS2008 / Maemo 4 / Chinook - Diablo
OS2006 / Maemo 2 / Mistral - Scirocco - Gregale
Development
Alternatives
Android
FirefoxOS
Nemo Mobile
Tizen
Ubuntu
Devices
Sailfishes
Turing Phone
JollaC & Intex Aqua Fish
Jolla Tablet
Jolla1 & TOH
The Other Half
Neo900
Nokia N9 / N950
Nokia N900
Nokia N810
Nokia N800
Nokia 770
Accessories
Competitors
Buy & Sell
Old
News
Announcements
Troubleshooting
Upgrading
Newbie
Tablet 101
OS2007 / Maemo 3 / Bora
OS2005 / Maemo 1
All times are GMT. The time now is
19:27
.
-- talk.maemo.org
-- Classic Light
---- Classic Dark
-- Minimalist Light
---- Minimalist Dark
Contact Us
-
Home
-
Archive
-
Top
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?