Cannot get usbnet working on ARM s3c2410 gadget and Ubuntu LINUX host

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

 



Hi guys,
I have connected with a USB A/B cable from my LINUX host to my ARM s3c2410.
 On my ARM, I have loaded g_ether, usbnet, cdc_subset and mii:

***************************************

# lsmod
Module Size Used by Not tainted
cdc_subset 476 0 
usbnet 10470 1 cdc_subset
mii 2872 1 usbnet
g_ether 23528 0 
af_packet 15388 2 
enc28j60 13992 0 
unix 16952 10 

********************************************

and have ifconfig'd usb0:

***********************************************
usb0 Link encap:Ethernet HWaddr 4E:72:14:45:30:F9 
inet addr:192.168.2.10 Bcast:192.168.2.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) 
***********************************************

On by LINUX host, I've also loaded g_ether:
************************************************
cytan@ubuntu:/usr/share/wireshark$ lsmod | grep cdc
cdc_ether 13536 0 
cdc_subset 12885 0 
usbnet 26212 2 cdc_ether,cdc_subset
cytan@ubuntu:/usr/share/wireshark$ lsmod | grep g_ether
g_ether 49416 0 
dummy_hcd 23509 1 g_ether

**************************************************

and ifconfig'd usb0 on the LINUX host:

*****************
usb0 Link encap:Ethernet HWaddr c2:25:5f:d4:45:6d 
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::c025:5fff:fed4:456d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:532 errors:0 dropped:0 overruns:0 frame:0
TX packets:433 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:81620 (81.6 KB) TX bytes:87652 (87.6 KB)
********************************

Unfortunately pinging my ARM gadget 192.168.2.10 with my host, 
there is no route to the gadget. Similarly the other way around.
 Note: I've also added a default gateway to my ARM: route add default gw 
192.168.2.5

I checked that the host is actually seeing the gadget by checking
/sys/kernel/debug/usb/devices

***********************************
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 12 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 0
P: Vendor=0525 ProdID=a4a2 Rev= 3.12
S: Manufacturer=Linux 2.6.39.4 with s3c2410_udc
S: Product=RNDIS/Ethernet Gadget
*************************************

And so the LINUX host does see my ARM gadget.

Is there something else I need to do to get my gadget recognized by the
 LINUX host so that I can ping it and get usbnet working?

Thanks!

cytan

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux