![]() |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
1 Attachment(s)
this my HOWNOTTO get USB hostmode working.
I hope someone can replicate MohammadAG's success or at least find out what I did wrong. Warning: This is only for experts! i2cset may damage your device. 0. you need a USB F/F adapter, the N900 USB cable and a USB device with < 200mA power consumption (verify on your PC) 1. install MohammadAG's kernel (with sarahn's patches + power ignore patch + appropriate configuration), i2ctools (i2cset in PATH) and sysklogd I have PR1.2 installed, wifi on, bluetooth off, 2.5G, autodisconnect on. egoshin's method works (set to host while connected to PC) 2. boot device with USB cable but without USB device connected 3. Code:
pcsuite-enable.shCode:
echo USB debug start > /var/log/syslogCode:
echo 10 > /sys/module/musb_hdrc/parameters/debug5. immediately plug in the USB device 6. check dmesg and /proc/driver/musb_hdrc 7. to retry, unplug USB device, Code:
killall sh; start bme; sleep 2; cat /proc/driver/musb_hdrcCode:
Status: MHDRC, Mode=Peripheral (Power=20, DevCtl=80)my results: (with -d flag) start: Mode=Peripheral (Power=20, DevCtl=80) echo H: Mode=Peripheral (Power=20, DevCtl=82) echo e: Mode=Peripheral (Power=20, DevCtl=82) echo F: Mode=Peripheral (Power=60, DevCtl=83) bme stopped: Mode=Peripheral (Power=60, DevCtl=83) slept 3sec: Mode=Peripheral (Power=20, DevCtl=80) i2cset: Mode=Peripheral (Power=f1, DevCtl=99) later: Mode=Peripheral (Power=e1, DevCtl=99) for the description of the power+devctl flags see drivers/usb/musb/musb_regs.h with egoshin's method: Status: MHDRC, Mode=Host (Power=f0, DevCtl=dd) OTG state: b_peripheral:3; active dmesg: Code:
[ 1863.465087] musb_restore_ctx_and_resume 435: restoring register context for musb_restore_ctx_and_resumeStatus: MHDRC, Mode=Host (Power=f0, DevCtl=dd) OTG state: a_host:9; active with flash plugged in (not powered on) Status: MHDRC, Mode=Host (Power=e0, DevCtl=99) with bme: Status: MHDRC, Mode=Host (Power=20, DevCtl=80) MohammadAG: OTG state: b_idle:1; inactive If I first apply egoshin's method I get Status: MHDRC, Mode=Host (Power=e1, DevCtl=99) OTG state: b_idle:1; inactive but again no device is detected. |
Re: N900 will not allow USB OTG!
Thanks a bunch, please keep this post up to date as new info becomes available :)
I'll bookmark it. Edit: is it possible that different versions of the firmwares may affect this? |
Re: N900 will not allow USB OTG!
titan, just a note, according to lsusb -v my flash drive also uses 200mA.
Doing some tsts after you left I can see what you experience. I'm afraid at the time being you'll have to time it right after running the script. Anyways, I can still reproduce it :) |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
A binary won't be provided till the app is released :) |
Re: N900 will not allow USB OTG!
Isn't it possible to stop any event from happening with the stick connected so that we could use two scripts, one to let the device recognize the connection only when we want it and then "host.txt"?
This could solve our synchronization issue. Can't the 200mA limit be overridden with kernel patching? |
Re: N900 will not allow USB OTG!
The 200mA limit is a hardware one.
|
Re: N900 will not allow USB OTG!
Also since the sate of an USB device being connected becomes a state defined in the ram memory of the device, would it be possible to simply patch (some of) the code in the ram to skip some of the steps?
|
Re: N900 will not allow USB OTG!
@Bec no offense, but this has been requested already, please keep this thread for development only.
use this thread instead for petitions and questions. developers comment there too http://talk.maemo.org/showthread.php...ight=host+mode |
| All times are GMT. The time now is 15:09. |
vBulletin® Version 3.8.8