USB OTG problem on beagle

Hi all,

I am facing some problem with USB OTG.
It may be because of my settings are wrong or may be a driver problem.
I am using USB hub(with it’s own power supply) which is connected to USB OTG of beagle.
The hub is not getting detected if I put it before kernel boots(Board is powered up using it’s own supply and then HUB is put into OTG) .
Out of 4 ports of HUB 2 are getting used one for Belkin Wireless adapter and other for Ethernet adapter.
These devices are getting enumerated as HUB is not getting detected.
So, I plugged out mini cable at OTG and plugged in again then everything is getting detected and is working fine.
Please find logs below which include boot time logs related to USB and logs after plug out and plug in …

Kernel version:- Linux beagleboard 2.6.29-omap1 (2.6.29-r35)
Beagle board version:- B6

Boot time logs when USB is plugged in …
root@beagleboard:~# dmesg | grep -nri usb
2:[ 11.750396] musb_hdrc: 28/31 max ep, 16384/16384 memory
3:[ 11.750396] musb_hdrc: hw_ep 0shared, max 64
4:[ 11.750427] musb_hdrc: hw_ep 1tx, max 512
5:[ 11.750427] musb_hdrc: hw_ep 1rx, max 512
6:[ 11.750457] musb_hdrc: hw_ep 2tx, max 512
7:[ 11.750457] musb_hdrc: hw_ep 2rx, max 512
8:[ 11.750488] musb_hdrc: hw_ep 3tx, max 512
9:[ 11.750488] musb_hdrc: hw_ep 3rx, max 512
10:[ 11.750518] musb_hdrc: hw_ep 4tx, max 512
11:[ 11.750518] musb_hdrc: hw_ep 4rx, max 512
12:[ 11.750518] musb_hdrc: hw_ep 5tx, max 512
13:[ 11.750549] musb_hdrc: hw_ep 5rx, max 512
14:[ 11.750549] musb_hdrc: hw_ep 6tx, max 512
16:[ 11.750762] musb_hdrc: hw_ep 6rx, max 512
17:[ 11.750793] musb_hdrc: hw_ep 7tx, max 512
18:[ 11.750793] musb_hdrc: hw_ep 7rx, max 512
19:[ 11.750823] musb_hdrc: hw_ep 8tx, max 512
20:[ 11.750823] musb_hdrc: hw_ep 8rx, max 512
21:[ 11.750854] musb_hdrc: hw_ep 9tx, max 512
22:[ 11.750854] musb_hdrc: hw_ep 9rx, max 512
23:[ 11.750854] musb_hdrc: hw_ep 10tx, max 256
24:[ 11.750885] musb_hdrc: hw_ep 10rx, max 64
25:[ 11.750885] musb_hdrc: hw_ep 11tx, max 256
26:[ 11.750915] musb_hdrc: hw_ep 11rx, max 64
27:[ 11.750915] musb_hdrc: hw_ep 12tx, max 256
28:[ 11.750946] musb_hdrc: hw_ep 12rx, max 64
29:[ 11.750946] musb_hdrc: hw_ep 13shared, max 4096
30:[ 11.750976] musb_hdrc: hw_ep 14shared, max 1024
31:[ 11.750976] musb_hdrc: hw_ep 15shared, max 1024
32:[ 11.751007] musb_hdrc: USB OTG mode controller at d80ab000 using DMA, IRQ 92
57:[ 12.369995] usbcore: registered new interface driver catc
58:[ 12.375427] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
59:[ 12.381683] usbcore: registered new interface driver kaweth
60:[ 12.387359] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
61:[ 12.395324] usbcore: registered new interface driver pegasus
62:[ 12.401062] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
63:[ 12.408264] usbcore: registered new interface driver rtl8150
64:[ 12.414215] usbcore: registered new interface driver asix
65:[ 12.419921] usbcore: registered new interface driver cdc_ether
66:[ 12.426086] usbcore: registered new interface driver dm9601
67:[ 12.431976] usbcore: registered new interface driver smsc95xx
68:[ 12.438018] usbcore: registered new interface driver gl620a
69:[ 12.443908] usbcore: registered new interface driver net1080
70:[ 12.449890] usbcore: registered new interface driver plusb
71:[ 12.455688] usbcore: registered new interface driver rndis_host
72:[ 12.461914] usbcore: registered new interface driver cdc_subset
74:[ 12.475524] usbcore: registered new interface driver zd1211rw
75:[ 12.481597] usbcore: registered new interface driver rtl8187
76:[ 12.487609] usbcore: registered new interface driver rndis_wlan
77:[ 12.493865] usbcore: registered new interface driver zd1201
78:[ 12.499755] usbcore: registered new interface driver usb8xxx
79:[ 12.505798] usbcore: registered new interface driver rt2500usb
80:[ 12.511962] usbcore: registered new interface driver rt73usb
81:[ 12.517974] usbcore: registered new interface driver p54usb
94:[ 12.704223] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
96:[ 12.717773] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
98:[ 12.742919] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
99:[ 12.749481] usb usb1: configuration #1 chosen from 1 choice
100:[ 12.755584] hub 1-0:1.0: USB hub found
102:[ 12.765533] Initializing USB Mass Storage driver…
103:[ 12.770843] usbcore: registered new interface driver usb-storage
104:[ 12.776977] USB Mass Storage support registered.
107:[ 12.793914] usb0: MAC ba:23:f5:18:ea:31
108:[ 12.797821] usb0: HOST MAC ca:23:94:b5:48:3b
111:[ 12.813995] musb_hdrc musb_hdrc: MUSB HDRC host driver
112:[ 12.819946] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
113:[ 12.828033] usb usb2: configuration #1 chosen from 1 choice
114:[ 12.834106] hub 2-0:1.0: USB hub found
128:[ 12.917144] usbcore: registered new interface driver bcm203x
129:[ 12.922882] Bluetooth: Digianswer Bluetooth USB driver ver 0.10
130:[ 12.929107] usbcore: registered new interface driver bpa10x
131:[ 12.934783] Bluetooth: BlueFRITZ! USB driver ver 1.2
132:[ 12.940155] usbcore: registered new interface driver bfusb
133:[ 12.945709] Bluetooth: Generic Bluetooth USB driver ver 0.4
134:[ 12.951629] usbcore: registered new interface driver btusb
139:[ 13.096801] usbcore: registered new interface driver usbhid
140:[ 13.102508] usbhid: v2.6:USB HID core driver
142:[ 13.115234] usbcore: registered new interface driver snd-usb-audio

HUB is plugged out and plugged in again after the boot …
[ 781.844573] usb 2-1: new high speed USB device using musb_hdrc and address 4
[ 781.995452] usb 2-1: configuration #1 chosen from 1 choice
[ 782.007507] hub 2-1:1.0: USB hub found
[ 782.011718] hub 2-1:1.0: 4 ports detected
[ 782.305938] usb 2-1.1: new high speed USB device using musb_hdrc and address 5
[ 782.594451] usb 2-1.1: device v050d p705a is not supported
[ 782.600555] usb 2-1.1: configuration #1 chosen from 1 choice
[ 782.718963] phy0 → rt2500usb_init_eeprom: Error - Invalid RT chipset detected.
[ 782.726348] phy0 → rt2x00lib_probe_dev: Error - Failed to allocate device.
[ 783.001708] wmaster0 (rt73usb): not using net_device_ops yet
[ 783.027648] wlan0 (rt73usb): not using net_device_ops yet
[ 783.034088] Registered led device: rt73usb-phy1:radio
[ 783.039306] Registered led device: rt73usb-phy1:assoc
[ 783.044586] Registered led device: rt73usb-phy1:quality
[ 783.157440] usb 2-1.3: new full speed USB device using musb_hdrc and address 6
[ 783.214416] rt73usb 2-1.1:1.0: firmware: requesting rt73.bin
[ 783.282928] usb 2-1.3: device v0e66 p400c is not supported
[ 783.289031] usb 2-1.3: configuration #1 chosen from 1 choice
[ 783.309265] pegasus 2-1.3:1.0: setup Pegasus II specific registers
[ 783.446960] pegasus 2-1.3:1.0: eth0, Hawking UF100 10/100 Ethernet, 4e:80:98:9f:4c:ae

Please let me know if any patch is released for USB OTG driver recently …
Or anything else I am missing …
Also please, suggest any solution or work around if anyone has done…

Thanks and Regards,
Omkar

I found my hub wasn't being detected on Angstrom 2.6.29, changed to
2.6.28 and it was OK.

Peter

In my case USB OTG working fine with 2.6.29-r35 except some special cases.
And which is most probably a problem with low cost HUB.

Regards,
omkar

Hi,
What is the current status of this issue (USB OTG in host mode has difficulties in detecting external powered usb hub) ?
I have rev. B7 and I’m using kernel 2.6.29-r34. Plug in hub once more helps.

And which is most probably a problem with low cost HUB.

Low cost hubs have shorted Vcc GND lines from host with Vcc GND lines from external power supply. That is the cause I suppose . Removing pwr. supp. solves the problem.