maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Permission denied - N800 - UNOFFICIAL USB HOST MODE (https://talk.maemo.org/showthread.php?t=12850)

frank.wagner 2007-12-07 19:45

Permission denied - N800 - UNOFFICIAL USB HOST MODE
 
N800

Installed "becomeroot" -> ok

command "sudo gainroot" -> ok

command "echo host > /sys/devices/platform/musb_hdrc/mode"

Result "Permission denied" -> whats the problem ?????

-----------------------------------------------------

http://muru.com/linux/n800-usb-host/

Quote:

CHANGING THE ROLE VIA SYSFS

You can use sysfs to change between host and gadget mode with a non-standard
mini-B to mini-B cable:

$ echo host > /sys/devices/platform/musb_hdrc/mode

To set N800 back to OTG mode, do:

# echo otg > /sys/devices/platform/musb_hdrc/mode

If the system does not detect cable events after switching back to OTG mode,
switch it to peripheral mode first, then to OTG mode:

# echo peripheral > /sys/devices/platform/musb_hdrc/mode
# echo otg > /sys/devices/platform/musb_hdrc/mode

USB VBUS POWER LIMITATIONS

For most USB devices you need to connect the N800 to a powered USB hub. N800
can only provide 100mA of power, so basically any load on the VBUS line will
make the host mode to fail. Since N800 can provide nominal VBUS power, a
N770 modified hub is not needed.

dblank 2007-12-07 20:02

Re: Permission denied - N800 - UNOFFICIAL USB HOST MODE
 
After sudo gainroot, do you have a # before your cursor?

What does:
ls -l /sys/devices/platform/musb_hdrc/mode

output?

Should look something like this:
-rw-r--r-- 1 root root 0 Dec 7 02:14 /sys/devices/platform/musb_hdrc/mode

Master of Gizmo 2007-12-07 21:18

Re: Permission denied - N800 - UNOFFICIAL USB HOST MODE
 
Are you aware that you need to have os2008 installed (or a modified kernel) to be able to successfully issue this command?

frank.wagner 2007-12-08 04:54

Re: Permission denied - N800 - UNOFFICIAL USB HOST MODE
 
Quote:

What does:
ls -l /sys/devices/platform/musb_hdrc/mode
-r--rr--r-- 1 root root 4096 Dec 8

Quote:

Are you aware that you need to have os2008 installed (or a modified kernel) to be able to successfully issue this command?
My error - i have 2007 installed
  • It runs very well and is stable
  • and I thought - UNOFFICIAL USB HOST MODE runs also with 2007
No possibility - its work with the 2007 version ?????


All times are GMT. The time now is 12:13.

vBulletin® Version 3.8.8