Cannot switch USB OTG to host mode

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

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

Hi Calle,
Thank you! I knew the echo command but I was missing the modprobe: it
made all the difference!

Greetings,
David

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

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