RE: USB Ethernet gadget working ? | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
linux-arm-bounces@xxxxxxxxxxxxxxxxxxxxxx wrote: > Hello, > > Let me apologize for this long mail, but sometimes it can be > usefull to give a lot of information :) > > It is said that usb device is working on ARM (AT91RM9200) but > I got this error on the Host side (i386) : > "uhci_hcd 0000:00:1f.2: uhci_result_control: failed with > status 440000" (see logs after) > > 1- Does anybody succeed in using ethernet gadget ? > > 2- Could you give me any clue to start with because I really > don't known how to debug it. > > Thanks :) > > Laurent > 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. Regards, Héctor ------------------------------------------------------------------- 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]