Cannot switch USB OTG to host mode

887 views
Skip to first unread message

dwegmull

unread,
Dec 22, 2009, 1:24:05 PM12/22/09
to Beagle Board
Hi,
I am trying to use the Beagleboard's OTG port in host mode without
success.
What I have: board revision B5. Mini-A to Mini-B cable plugged into a
powered hub. Angstrom distribution built from sources.
if I do a cat /sys/devices/platform/musb_hdrc/mode I get b_idle
Forcing it to host via echo host> /sys/devices/platform/musb_hdrc/mode
does not do the trick...

Any suggestions? Please let me know if more information is needed.
Thanks!

Greetings,
David

callelj

unread,
Dec 30, 2009, 4:47:06 PM12/30/09
to Beagle Board
Hi!

I also had some problems with my Beagleboard B5, nothing of the usual
solutions worked.
I eventually got it to and I believe this was the way:

> modprobe g_zero
> echo host > /sys/devices/platform/musb_hdrc/mode

Hope this works...

/Calle

dwegmull

unread,
Jan 4, 2010, 5:20:23 PM1/4/10
to Beagle Board
Hi Calle,
Thank you! I knew the echo command but I was missing the modprobe: it
made all the difference!

Greetings,
David


On Dec 30 2009, 1:47 pm, callelj <call...@yahoo.se> wrote:
> Hi!
>
> I also had some problems with my Beagleboard B5, nothing of the usual
> solutions worked.
> I eventually got it to and I believe this was the way:
>
> > modprobe g_zero
> > echo host > /sys/devices/platform/musb_hdrc/mode
>
> Hope this works...
>
> /Calle
>
> On Dec 22, 7:24 pm, dwegmull <dwegmull94...@gmail.com> wrote:
>
>
>
> > Hi,

> > I am trying to use the Beagleboard'sOTGport in host mode without

Neon

unread,
Jan 5, 2010, 3:38:29 PM1/5/10
to beagl...@googlegroups.com
I tried it but it return error because it doesn't see any devices linked..

i use a mini-a cable and angstrom demo unstable..

any ideas?

thanks!

Luca

2009/12/30 callelj <cal...@yahoo.se>:

Ricky

unread,
Jan 13, 2010, 6:14:59 AM1/13/10
to Beagle Board

Hi,
I've got a B5 too and I've experienced the same problems.
I've already tried your suggestion, but:

1) when I try to run modprobe g_zero the dmseg tells me "kernel
tainted", 'cause it
doesn't find a module struct matching in the g_zero driver.
2) sys/devices/platform/musb_hdrc/mode doesn't exist, but instead I've
got a modalias file
in the same place.

I've just built a minimal-image from Angstrom, using the latest
2.6.29.r46 kernel and modules.
In addition, I'm using too a MiniA cable, which should already have
the pin4 & pin5 grounded,
forcing the BB to act as host.

Which kernel are you using please, for making the above lines work?

Many thanx

Ricky

On Dec 30 2009, 10:47 pm, callelj <call...@yahoo.se> wrote:
> Hi!
>
> I also had some problems with my Beagleboard B5, nothing of the usual
> solutions worked.
> I eventually got it to and I believe this was the way:
>
> > modprobe g_zero
> > echo host > /sys/devices/platform/musb_hdrc/mode
>
> Hope this works...
>
> /Calle
>
> On Dec 22, 7:24 pm, dwegmull <dwegmull94...@gmail.com> wrote:
>
> > Hi,

> > I am trying to use the Beagleboard'sOTGport in host mode without

Reply all
Reply to author
Forward
0 new messages