Project

General

Profile

Ethernet gadget - unable to connect to host PC

Added by Mads Olav le Maire over 11 years ago

Hi,

I have problems connecting to the industial IO/AM1808 card using device USB. I have built the kernel and the ethernet gadget module from git (3.2.x) - the module loads without any errors - I do get a usb0 network device right away. However, when I connect to a XP computer with a usb cable, nothing happens. At this moment I would have expected a driver request to pop up on the PC screen. It almost look like the usb phy is not attatched to the connector, but I cannot see that I have to set any special configuration in u-boot to enable the usb port. The host interface (usb1) is working correctly. Loading the mass storage gadget driver I experience the same problem - no connection to the PC. I have listed some output from my kernel below for recerence. Any suggestion about what to do next?

Inserting the ethernet gadget module:

>insmod g_ether.ko
gadget: using random self ethernet address
gadget: using random host ethernet address
usb0: MAC 3e:71:5d:e6:8a:2a
usb0: HOST MAC 6a:f1:01:f0:2e:1a
gadget: Ethernet Gadget, version: Memorial Day 2008
gadget: g_ether ready
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ADDRCONF: usb0: link is not ready

The automatically created network interface:

>ifconfig usb0
usb0 Link encap:Ethernet HWaddr 3E:71:5D:E6:8A:2A
inet addr:192.168.7.2 Bcast:192.168.7.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

From /proc/driver/rndis-000

root@vdr:/proc/driver# cat rndis-000
Config Nr. 0
used : y
state : RNDIS_UNINITIALIZED
medium : 0x00000000
speed : 0
cable : disconnected
vendor ID : 0x00000000
vendor : (null)

From /sys/kernel/debug/usb/devices

root@vdr:/sys/kernel/debug/usb# cat devices
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.02
S: Manufacturer=Linux 3.2.0+ musb-hcd
S: Product=MUSB HDRC host driver
S: SerialNumber=musb-hdrc
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.02
S: Manufacturer=Linux 3.2.0+ ohci_hcd
S: Product=DA8xx OHCI
S: SerialNumber=ohci.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms


Replies (2)

RE: Ethernet gadget - unable to connect to host PC - Added by Michael Williamson about 11 years ago

Hello Mads,

Sorry for the delay. Can you please post the part number for your board? On some of our older boards there was a problem with the USB_ID pin on the OTG connector. Let's make sure that's not the issue.

There is information on the board on this link. I know we've had success with windows 7 and RNDIS, I will check and see if anything is known to be odd with an XP interface. I am not aware of anything like that.

-Mike

RE: Ethernet gadget - unable to connect to host PC - Added by Mads Olav le Maire about 11 years ago

Hi,

There are two labels attached:

one says:  110264 
the other: 80-000268RI-2 A

Seens to be something with the otg connector in the B revision...

regards

Mads-l

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)