![]() |
Re: N900 will not allow USB OTG!
if N8 can otg out of the box it must have uAB receptacle and the cable can be uA male to A female which is useless for us, for N900, for this topic, for ....
|
Re: N900 will not allow USB OTG!
Can we keep this thread for on-topic (development talk) only?
Discussions can go here imo http://talk.maemo.org/showthread.php?t=52227 |
Re: N900 will not allow USB OTG!
just a short update, also a bit of a reminder for myself ;)
according to my recent studies, "twl4030_usb_irq" is the first interrupt executed after applying VBUS and sometimes (?) also after plugging in a selfpowered hub. this interrupt checks the state of the ID pin by calling "twl4030_usb_linkstat". Therefor I tried to fake the state of the ID pin in this function. I was in a_idle after that, and interrupts occured after plugging in peripherals. But I couldn't get my n900 to enumerate them. Too tired to continue now, but perhaps somebody finds this information useful :) |
Re: N900 will not allow USB OTG!
Because uB plug have power pins longer than id pin and vbus "select case" is first then sensing id never happen with power on vbus.
589 spin_lock_irqsave(&twl->lock, flags); 590 switch (twl->linkstat) { 591 case USB_LINK_VBUS: 592 link = "vbus"; 593 break; 594 case USB_LINK_ID: 595 link = "idpin"; 596 break; 597 case USB_LINK_NONE: 598 link = "none"; 599 break; 600 default: 601 link = "unknown"; 602 break; 603 } this is the reason for using sequence described in my post #992 because i use stock kernel |
Re: N900 will not allow USB OTG!
According to sarahn's test (see prev page) gaia does not assert the vbus pin but only sets the id pin bit if both vbus and id are sensed. Could you check that?
|
Re: N900 will not allow USB OTG!
[2010-06-02 18:25:11] <MohammadAG> WOHOOOOOOOOOO
[2010-06-02 18:25:12] <MohammadAG> [ 5635.814331] sd 0:0:0:0: [sda] Attached SCSI removable disk [2010-06-02 18:25:29] <SpeedEvil> :) [2010-06-02 18:25:38] <DocScrutinizer> now that sounds kinda nice [2010-06-02 18:25:53] <MohammadAG> there's a lot before it, just need to filter out the debug messages [2010-06-02 18:25:57] <DocScrutinizer> MohammadAG: you got hte friggin "too low power" patched out and your memstick working now? without ID pin grounded, without kickstart PC, and without external VBUS power applied thru powered hub or y-cable? [2010-06-02 18:26:11] <MohammadAG> too many questions, sec [2010-06-02 18:26:14] <MohammadAG> patched out, yes [2010-06-02 18:26:19] <MohammadAG> flash working, yes [2010-06-02 18:26:33] <MohammadAG> without ID ground, idk what that means so assume default :P [2010-06-02 18:26:37] <MohammadAG> no PC involved [2010-06-02 18:26:41] <MohammadAG> no external power [2010-06-02 18:26:48] <DocScrutinizer> STRIIIIKE!!! [2010-06-02 18:31:49] <MohammadAG> :) [2010-06-02 18:31:53] <MohammadAG> DocScrutinizer, OTG state: a_host:9; active [2010-06-02 18:32:28] <t-tan> show me the patches, otherwise I don't believe it ;-) [2010-06-02 18:32:37] <MohammadAG> they're on tmo [2010-06-02 18:32:42] <MohammadAG> huge thanks to tealbird_afk [2010-06-02 18:33:01] <MohammadAG> btw my steps to reproduce need to be cleaned up, too many repeats :P [2010-06-02 18:33:03] <MohammadAG> echo H >/proc/driver/musb_hdrc [2010-06-02 18:33:04] <MohammadAG> echo host >/sys/devices/platform/musb_hdrc/mode [2010-06-02 18:33:04] <MohammadAG> echo e > /proc/driver/musb_hdrc [2010-06-02 18:33:04] <MohammadAG> echo F > /proc/driver/musb_hdrc [2010-06-02 18:33:04] <MohammadAG> echo host >/sys/devices/platform/musb_hdrc/mode [2010-06-02 18:33:20] <MohammadAG> stop bme; sleep 3; i2cset -y -m 0x07 2 0x6b 0x01 0x05; while true; do sleep 28; i2cset -y -m 0x80 2 0x6b 0x00 0x80; done please stay cool! I know all of you are excited now ;-P But it will take another week to clean up the kernel and provide a nice little gui to handle hostmode correctly in a *safe* way special super THANK YOU to sarahn |
Re: N900 will not allow USB OTG!
Huge props to sarahn for the kernel patches!
|
Re: N900 will not allow USB OTG!
Titan, please make the kernel patches available as part of your Swiss Army Knife kernel! I think this, along with PR 1.2, pushes me over the edge. I will now flash a custom kernel!
|
Re: N900 will not allow USB OTG!
Some bad news: I coudn't reproduce it, even with MohammadAG's kernel, script and his help on IRC.
I could get the LEDs of my stick flashing for a moment but no hostmode. Let's hope it's just me, my device or stick and that someone else can reproduce it. |
Re: N900 will not allow USB OTG!
If you guys would write a tutorial I can help since I have some no-name sticks and a micro SD card reader to test on. I ordered my "OTG adapters" and they should be here in a week but I'll try some local hardware stores too in the meantime.
If you decide to write a tutorial it would be best if it's one post alone that can be edited and updated. |
All times are GMT. The time now is 23:28. |
vBulletin® Version 3.8.8