Google
  Web www.spinics.net

RE: USB Ethernet gadget working ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Le Chene Vert wrote:
> > Hi Laurent,
> > I succeeded using the Ethernet gadget. If it can be of any help,
> > here is what I did: 
> > 
> > DEVICE SIDE:
> > 1. Install the UDC driver at91_udc.ko
> > # insmod at91_udc.ko
> > 2. Install the Ethernet gadget driver
> > # insmod g_ether.ko
> > 
> > 
> > HOST SIDE (i386 linux 2.6.8 Mandrake 10.1) 1. Load the usbnet
> > driver with: $ modprobe usbnet
> > 
> > Now connect the device and the host with the USB cable. A new usb0
> > network interface will be created on each side.
> > Give them IPs and route them to the other side USB IP.
> > 
> > DEVICE SIDE
> > 
> > # ifconfig usb0 192.168.52.45
> > # route add 192.168.52.200 dev usb0
> > 
> > HOST SIDE
> > $ ifconfig usb0 192.168.52.200
> > $ route add 192.168.52.45 dev usb0
> > 
> > Now you can do pings or any other network activity via USB.
> 
> Thanks for your help Héctor.
> I try what you did with no success :(
> 
> In fact, I can create on device side usb0 and I can assign an
> IP adress to it like you did.
> But no way on host side !
> 
> 1- On device side which kernel & patch do you use  ?
> (you are on AT91RM9200, aren't you)

Yes, the same as you I think, (linux 2.6.12-rc4)

> 2- On Host side got uhci_hcd  driver, is it the one you use (together
> with usbnet) as well ? 

Yes

> 3- Do you known what kind of error is this ?
> They seems to communicate nevertheless no ?  :)
> 
> Jul 19 16:16:55 laurentb uhci_hcd 0000:00:1f.2: wakeup_hc Jul
> 19 16:16:55 laurentb hub 1-0:1.0: state 5 ports 2 chg 0000
> evt 0004 Jul 19 16:16:55 laurentb uhci_hcd 0000:00:1f.2: port
> 2 portsc 0083,00 Jul 19 16:16:55 laurentb hub 1-0:1.0: port 2, status
> 0101, change 0001, 12 Mb/s
> Jul 19 16:16:55 laurentb hub 1-0:1.0: debounce: port 2: total
> 100ms stable 100ms status 0x101 Jul 19 16:16:56 laurentb usb
> 1-2: new full speed USB device using uhci_hcd and address 18
> Jul 19 16:16:56 laurentb uhci_hcd 0000:00:1f.2: uhci_result_control:
> failed with status 440000 Jul 19 16:16:56 laurentb [dfc68240] link
> (1fc681b2) element (1fc67040) Jul 19 16:16:56 laurentb 0: [dfc67040]
> link (1fc67080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0
> Dev=0, PID=2d(SETUP)
> (buf=136ae6c0)
> Jul 19 16:16:56 laurentb 1: [dfc67080] link (1fc670c0) e3 SPD
> Active Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN)
> (buf=02d8dce0) Jul 19 16:16:56 laurentb 2: [dfc670c0] link
> (00000001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0
> Dev=0, PID=e1(OUT) (buf=00000000)

No. Sorry, I can't be of any help on that


-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php


[Site Home]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux ARM Kernel]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Powered by Linux