Closed Thread
Thread Tools
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#1011
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 ....
 

The Following 2 Users Say Thank You to blue_led For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#1012
Can we keep this thread for on-topic (development talk) only?

Discussions can go here imo http://talk.maemo.org/showthread.php?t=52227
 

The Following 8 Users Say Thank You to MohammadAG For This Useful Post:
Posts: 75 | Thanked: 78 times | Joined on Jan 2010 @ Germany
#1013
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

Last edited by hcm; 2010-06-01 at 21:39. Reason: minor typo fix
 

The Following 6 Users Say Thank You to hcm For This Useful Post:
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#1014
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

Last edited by blue_led; 2010-06-02 at 00:17.
 

The Following 4 Users Say Thank You to blue_led For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#1015
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?
 

The Following 3 Users Say Thank You to javispedro For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#1016
[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
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2010-06-02 at 18:14.
 

The Following 32 Users Say Thank You to joerg_rw For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#1017
Huge props to sarahn for the kernel patches!
 

The Following 14 Users Say Thank You to MohammadAG For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#1018
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!
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Posts: 946 | Thanked: 1,650 times | Joined on Oct 2009 @ Germany
#1019
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.
 

The Following 4 Users Say Thank You to titan For This Useful Post:
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#1020
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.
__________________
 
Closed Thread

Tags
awesomeness in the works, boulevard of broken deals, host, i am the dealbreaker, inspector gadget lies, mobidapter is a scam, nokia fanbois, otg, over 9000, usb, usbcontrol


 
Forum Jump


All times are GMT. The time now is 09:05.