![]() |
Re: N900 will not allow USB OTG!
"No" or No ?
|
Re: N900 will not allow USB OTG!
Quite a long thread; I'm sure I'm the millionth person to ask this, but what's the current thinking re: host mode? Is it likely to be possible using an external power supply?
If it's just a wiring and driver issue I'll have some free time in the next couple weeks to look into it. Alternatively, anyone know if the Belkin USB over 802.11 hub speaks some common protocol supported in the kernel? Anyone know of a more portable (small / battery powered) version? |
Re: N900 will not allow USB OTG!
5V VBUS supply WORKS!
:D ./i2cset -y -m 0x07 2 0x6b 0x01 0x05 lights up all the fancy LEDs on a connected USB hub. BEWARE: this is an intermediate result and not yet tested to be safe for anything. Also bme intercepts the boost mode setting of bq24150 and stops 5V after ~0.5..1sec So this is just meant to let you know the chances getting better for USB hostmode every day. We need someone to fix the obviously broken musb_hdrc driver (http://mxr.maemo.org/fremantle/sourc...sb_core.c#2010) /jOERG [edit] refer: Selecting_USB_host_modes (on Openmoko GTA02 - well it's Linux too ;)) The bme assumption seems correct: Code:
killall -SIGSTOP bme_RX-51; \ alas we need bme to tickle the system watchdog, otherwise reboot after a short time Also bq24150 itself has a watchdog timer that'll stop boostmode if not reset properly on a regular schedule. To check this, you may replace sleep 10 by sleep 40 in above cmdline, and watch VBUS 5V drop after 32s on bq24150 watchdog timeout, even though bme still stopped |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
well, let's call it the day hostmode-0.0.1 was put to work.
I got a usb hub with a red power-LED and 4 green action LEDs for the 4 downstream ports. The cmdline Code:
'killall -SIGSTOP bme_RX-51; ./i2cset -y -m 0x07 2 0x6b 0x01 0x05; sleep 10; killall -SIGCONT bme_RX-51' This clearly indicates to me BME or whatever friggin driver (musb_hdrc?) is *talking* to the hub, and that's hostmode basically. It just needs to stop talking gibberish, and act like a serious host -> decent driver support is all that's missing [edit] Q: maybe the green LEDs just flash because voltage drop? A: fired the sleep10 cmdline, plugged power wallwart to hub while still powered from N900 -> red powerLED continues shining, but still the green LEDs flash when bme kicks in |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
But one single time after reboot, I got the "mass storage or PC mode?" requester when enabling VBUS. Probably caused by >>VBUS detected; bme due to race not yet noticed boostmode; no short D+/- so no charger -> this has to be a host PC plugged in to N900<< (I simply did the i2cset without suspending bme) Funny part 1: VBUS stayed on for several minutes, until I finally hit 'PC mode' on requester. Funny part2: this is the resulting dmesg: Code:
[76624.034576] wlan0: associated Will check lsusb and lsmod in a minute /jOERG [edit] Nokia-N900-02-8:/home/user/i2c# killall -SIGSTOP bme_RX-51; ./i2cset -y -m 0x07 2 0x6b 0x01 0x05; sleep 10;lsusb; sleep 10; killall -SIGCONT bme_RX-51 Bus 001 Device 001: ID 1d6b:0002 Nokia-N900-02-8:/home/user/i2c# lsusb Bus 001 Device 001: ID 1d6b:0002 Nokia-N900-02-8:/home/user/i2c# |
Re: N900 will not allow USB OTG!
Quote:
/jOERG |
Re: N900 will not allow USB OTG!
joerg, great work on piecing all this together... I recall your work on the Openmoko project.
It appears as if this is even better than what I thought, which was that host mode would be possible eventually, just with a mess of cabling and an external power supply (a la GTA01). Crossing fingers, it looks like 'all' we will eventually need is a cable that plugs into the N900's microUSB port, and gives a simple USB female port, that will allow us to plug in any device we wish. Although with the state of the drivers, that still looks like it's a long way off... It would be interesting to know how much current it can provide, hopefully the full 500mA. |
Re: N900 will not allow USB OTG!
Quote:
at V(BUS_B) = 5.05 V, 2.5 V < V(AUXPWR=Vbat) < 4.5 V = 200 mA Thanks for thanking ;) /j |
All times are GMT. The time now is 05:47. |
vBulletin® Version 3.8.8