Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    N900 will not allow USB OTG!

    Closed Thread
    Page 102 of 110 | Prev | 92   100     101   102   103     104   | Next | Last
    blue_led | # 1011 | 2010-06-01, 21:33 | Report

    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 ....

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to blue_led For This Useful Post:
    joerg_rw, S0urcerr0r

     
    MohammadAG | # 1012 | 2010-06-01, 21:34 | Report

    Can we keep this thread for on-topic (development talk) only?

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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 8 Users Say Thank You to MohammadAG For This Useful Post:
    Bec, blue_led, clasificado, fw190, joerg_rw, Marshall Banana, pelago, zappa

     
    hcm | # 1013 | 2010-06-01, 21:39 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    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:
    blue_led, clasificado, javispedro, joerg_rw, MohammadAG, SpeedEvil

     
    blue_led | # 1014 | 2010-06-02, 00:13 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    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:
    clasificado, joerg_rw, S0urcerr0r, skoteinos

     
    javispedro | # 1015 | 2010-06-02, 07:26 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to javispedro For This Useful Post:
    joerg_rw, qole, S0urcerr0r

     
    joerg_rw | # 1016 | 2010-06-02, 16:28 | Report

    [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

    Edit | Forward | Quote | Quick Reply | Thanks

    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:
    Alanstrainor, anidel, attila77, azstunt, Bec, blue_led, cb22, Chrome, clasificado, dannym, dscobsct, frals, jimx, lbt, Marshall Banana, OVK, qole, S0urcerr0r, sjgadsby, skorbut, skoteinos, Snoshrk, SpeedEvil, Stskeeps, thecursedfly, titan, ToJa92, twaelti, v13, Venemo, zod, ZogG

     
    MohammadAG | # 1017 | 2010-06-02, 16:30 | Report

    Huge props to sarahn for the kernel patches!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 14 Users Say Thank You to MohammadAG For This Useful Post:
    attila77, azstunt, Bec, cb22, Chrome, clasificado, dannym, sjgadsby, slender, SpeedEvil, thecursedfly, titan, ToJa92, zod

     
    qole | # 1018 | 2010-06-02, 18:35 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to qole For This Useful Post:
    Bec, S0urcerr0r

     
    titan | # 1019 | 2010-06-02, 19:53 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to titan For This Useful Post:
    Bec, clasificado, MohammadAG, S0urcerr0r

     
    Bec | # 1020 | 2010-06-02, 20:35 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 102 of 110 | Prev | 92   100     101   102   103     104   | Next | Last
vBulletin® Version 3.8.8
Normal Logout