This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to configure USB OTG as host in Pandaboard under Android ICS

Hi, is just that i've been looking around about how to make OTG port work as host in Pandaboard (ES and non-ES) and i haven't found anything yet, i'm running Android ICS and kernel 3.0.8 version, if someone could help me on this would be really great because i really don't know how to do this. thanks in advanced.

Best Regards.

  • There is a group that is supporting pandaboard that could help with this kind of questions: pandaboard@googlegroups.com

  • Thanks for the reply, though i already asked there but i haven't get any answer and i'm kind of hurry on this :(, i don't know if in Pandaboard this is working under Android ICS.

    Best Regards.

  • i do the following:

    echo host > /sys/bus/platform/drivers/musb-hdrc/musb-hdrc/mode

    and i got the following:

    [ 163.476135] ------------[ cut here ]------------
    [ 163.481811] WARNING: at arch/arm/mach-omap2/omap_l3_noc.c:153 l3_interrupt_ha
    ndler+0x2d0/0x370()
    [ 163.491546] L3 custom error: SOURCE:L4CFG
    [ 163.496002] Modules linked in:
    [ 163.499725] Backtrace:
    [ 163.502990] [<c00521a0>] (dump_backtrace+0x0/0x110) from [<c05aa05c>] (dump_s
    tack+0x18/0x1c)
    [ 163.512145] r6:00000099 r5:c0074f1c r4:dfe4bd90 r3:dfe4a000
    [ 163.519531] [<c05aa044>] (dump_stack+0x0/0x1c) from [<c0096e60>] (warn_slowpa
    th_common+0x5c/0x6c)
    [ 163.529357] [<c0096e04>] (warn_slowpath_common+0x0/0x6c) from [<c0096f14>] (w
    arn_slowpath_fmt+0x38/0x40)
    [ 163.539581] r8:00000002 r7:00080003 r6:f8000400 r5:c0798e48 r4:f8000400
    [ 163.547851] r3:00000009
    [ 163.551330] [<c0096edc>] (warn_slowpath_fmt+0x0/0x40) from [<c0074f1c>] (l3_i
    nterrupt_handler+0x2d0/0x370)
    [ 163.561981] r3:c06dc56c r2:c06dc510
    [ 163.566406] [<c0074c4c>] (l3_interrupt_handler+0x0/0x370) from [<c00de7c8>] (
    handle_irq_event_percpu+0x58/0x188)
    [ 163.577606] [<c00de770>] (handle_irq_event_percpu+0x0/0x188) from [<c00de93c>
    ] (handle_irq_event+0x44/0x64)
    [ 163.588378] [<c00de8f8>] (handle_irq_event+0x0/0x64) from [<c00e1100>] (handl
    e_fasteoi_irq+0xa4/0x10c)
    [ 163.598663] r6:0000002a r5:c076db8c r4:c076db40 r3:c00454f0
    [ 163.605987] [<c00e105c>] (handle_fasteoi_irq+0x0/0x10c) from [<c00de2ec>] (ge
    neric_handle_irq+0x40/0x48)
    [ 163.616271] r5:c0045e80 r4:c077c568
    [ 163.620941] [<c00de2ac>] (generic_handle_irq+0x0/0x48) from [<c0047060>] (asm
    _do_IRQ+0x60/0xc0)
    [ 163.630401] [<c0047000>] (asm_do_IRQ+0x0/0xc0) from [<c004d9c8>] (__irq_svc+0
    x48/0xe0)
    [ 163.639190] Exception stack(0xdfe4be80 to 0xdfe4bec8)
    [ 163.644958] be80: dfe4beb0 00000000 dfe4a000 fc0ab000 a0000113 ee41b000 a0000
    113 00000005
    [ 163.653869] bea0: c02b8a20 ee4b1e10 c05d0e4c dfe4bedc ffffffff dfe4bec8 c05ad
    914 c05ad918
    [ 163.662933] bec0: 60000113 ffffffff
    [ 163.666870] r7:00000002 r6:0000002a r5:fa240100 r4:ffffffff
    [ 163.674255] [<c05ad900>] (_raw_spin_unlock_irqrestore+0x0/0x44) from [<c0350d
    e0>] (musb_mode_store+0x68/0x11c)
    [ 163.685241] r4:00000000 r3:fc0ab000
    [ 163.689727] [<c0350d78>] (musb_mode_store+0x0/0x11c) from [<c02b8a44>] (dev_a
    ttr_store+0x24/0x28)
    [ 163.699554] r7:ee4db630 r6:dfe4bf70 r5:dcc35618 r4:dcc35600
    [ 163.706726] [<c02b8a20>] (dev_attr_store+0x0/0x28) from [<c0171e74>] (sysfs_w
    rite_file+0x104/0x184)
    [ 163.716735] [<c0171d70>] (sysfs_write_file+0x0/0x184) from [<c011b4b4>] (vfs_
    write+0xb8/0x13c)
    [ 163.726287] [<c011b3fc>] (vfs_write+0x0/0x13c) from [<c011b614>] (sys_write+0
    x44/0x74)
    [ 163.735107] r8:00000000 r7:00000004 r6:00000005 r5:00d62adc r4:de5e4480
    [ 163.743530] [<c011b5d0>] (sys_write+0x0/0x74) from [<c004df00>] (ret_fast_sys
    call+0x0/0x30)
    [ 163.752807] r9:dfe4a000 r8:c004e0a8 r6:00000001 r5:00000005 r4:00000003
    [ 163.761413] ---[ end trace 9fb8ff17659d747e ]---
    [ 163.766540] Master 0x0 MPU
    [ 163.770263] L4CFG OPCODE 0x00000002

    so, after this, i really don't know how to make OTG work as host.

  • Something to try or migrate the fix?

    There is this post that talks about a kernel version that has OTG fixed and a cable to use to be detected as a host.

    http://e2e.ti.com/support/omap/f/849/t/229566.aspx