View Single Post
Posts: 21 | Thanked: 3 times | Joined on Mar 2007
#15
while not the most ideal way to handle things I wrote some very simple shell scripts so that I didn't have to remember all that stuff you may normally have to type.

I created two scripts one named 'usb-host', and 'usb-otg'. to accomplish something similar create two text files put the two lines of data you see below in them for the appropriate mode (excluding the underscores).
________________
#!/usr/bin/env sh
echo host > /sys/devices/platform/musb_hdrc/mode
________________
#!/usr/bin/env sh
echo otg > /sys/devices/platform/musb_hdrc/mode

after you create these two files run a 'chmod +x filename ' on both of them with filename being their respective names. This will mark them as an executable file. They can now be run in xterm by typing their name preceded by a './' ex. (./usb-host). However, you still need to be root for this to work. so don't forget to run 'sudo gainroot' first.

I apologise if this is an extremely drawn out explanation but I figure since you said you have no experience with linux it may be a little helpful being more broken down.
 

The Following User Says Thank You to pseudomin For This Useful Post: