maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   N800 USB Host Mode Experiment (https://talk.maemo.org/showthread.php?t=4177)

TheGogmagog 2008-05-29 21:05

Re: N800 USB Host Mode Experiment
 
Nice, even easier. If someone wants to change directories they can copy past somewhere else first to edit.

To create OTG host buttons:

1. Launch x-term
2. cat >/home/user/MyDocs/Otg.sh
2.a. paste code
Code:

#!/bin/sh
# usb otg mode script
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
# if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo otg > /sys/devices/platform/musb_hdrc/mode

2.b. press Ctrl and enter a lowercase d.
3. chmod +x /home/user/MyDocs/Otg.sh

repeat for cat >/home/user/MyDocs/Host.sh with this code:
Code:

#!/bin/sh
# usb host mode script
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo host > /sys/devices/platform/musb_hdrc/mode

From this point you can use Status Bar mentioned below, personal toolbar and/or continue to make an Icon.

1. Launch x-term
2. sudo gainroot
3. cat >/usr/share/applications/hildon/otg.desktop
3.a. paste the following code
Code:

[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=USB Otg
Type=Application
Comment=USB On the go mode
Exec=/home/user/MyDocs/Otg.sh
X-Osso-Type=application/x-executable

3.b. press Ctrl and enter a lowercase d.

again, repeat for cat >/usr/share/applications/hildon/host.desktop
Code:

[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=USB Host
Type=Application
Comment=USB host mode
Exec=/home/user/MyDocs/Host.sh
X-Osso-Type=application/x-executable


Texrat 2008-09-28 19:27

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mplawner (Post 119415)
Just use osso-statusbar-cpu and create custom commands calliing your two scripts. Be sure the 2 scripts are included in your /etc/sudoers file, of course.

How do I get the files into that folder? I don't see it in the File Manager.

bunanson 2008-09-28 20:18

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Texrat (Post 228176)
How do I get the files into that folder? I don't see it in the File Manager.


Originally Posted by mplawner View Post
Just use osso-statusbar-cpu and create custom commands calliing your two scripts. Be sure the 2 scripts are included in your /etc/sudoers file, of course.

File manager cannot see /etc/sudoers. You have to use emelfm2 or a different file manager.

bun

bunanson 2008-09-29 00:14

Re: N800 USB Host Mode Experiment
 
I got one of these, works well, ~$9, http://cgi.ebay.com/ws/eBayISAPI.dll...l%3FMyEbayBeta


bun

NokiaBoy 2008-10-28 16:09

Re: N800 USB Host Mode Experiment
 
This one works too:
http://www.twstore.com/gcusbhost.html

bunanson 2008-10-28 16:39

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by NokiaBoy (Post 237330)

That thing looked pretty, but the shipping is too deep, item is $9.99, s/h to NC is $10.23 makes the adapter total $20.22 for a jack, what a jack.

bun

benm 2008-11-07 16:40

Re: N800 USB Host Mode Experiment
 
Received the USB adaptor made available by Jolouis and plugged it into my N800, running under an unmodified OS2008 version 4.2008.36-5. Connected a standard Canon digital camera USB cable between the adoptor and the Canon. The N800 responds with a "USB device not Supported" message followed by a second msg stating " Unable to connect, no file system available" . Am I doing something wrong??

speculatrix 2008-11-07 16:46

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by benm (Post 240118)
The N800 responds with a "USB device not Supported" message followed by a second msg stating " Unable to connect, no file system available" . Am I doing something wrong??

canon digicams are not usually mass storage devices, see
http://wapedia.mobi/en/GPhoto

Texrat 2008-11-08 20:37

Re: N800 USB Host Mode Experiment
 
Also, I get that error with my thumb drives but they work anyway.


All times are GMT. The time now is 06:51.

vBulletin® Version 3.8.8