Hello,
Just to share the status on my efforts to make USB networking work and
get your suggestions...
With Andrew's udc patches, the situation is much better now. The PC host
now always detects my iPAQ when I load the g_ether module.
However, I still haven't managed to ping one host from the other...
Here's what I'm doing on the iPAQ:
# mount /proc
# insmod
/lib/modules/2.6.1-rmk0-hh0/kernel/drivers/usb/gadget/pxa2xx_udc.ko (I
haven't installed modutils yet in my home made initrd)
<6>pxa2xx_udc: version 7-Nov-2003
pxa2xx_udc: version 7-Nov-2003
#
#insmod /lib/modules/2.6.1-rmk0-hh0/kernel/drivers/usb/gadget/g_ether.ko
<6>usb0: Ethernet Gadget, pxa2xx, version: Bastille Day 2003
usb0: Ethernet Gadget, pxa2xx, version: Bastille Day 2003
<6>ether gadget: USB reset
ether gadget: USB reset
# <6>ether gadget: USB reset
ether gadget: USB reset
<6>ether gadget: USB reset
ether gadget: USB reset
<7>usb0: qlen 2
<6>usb0: full speed config #3: Ethernet Gadget
usb0: full speed config #3: Ethernet Gadget
# ifconfig usb0 inet 192.168.0.201 netmask 255.255.255.0 broadcast
192.168.0.255
# ifconfig -a
<7>request_module: failed /sbin/modprobe -- net-pf-10. error = 256
lo Link encap:Local Loopback
LOOPBACK MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 1E:BF:3C:74:8E:09
inet addr:192.168.0.201 Bcast:192.168.0.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 my PC:
# ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.0 broadcast
192.168.0.255
# route add 192.168.0.201 dev usb0
On my iPAQ:
# route add 192.168.0.200 dev usb0
Then I make ping tries on both sides. This is unsuccessful, but
re-running ifconfig is interesting:
On my PC:
# ifconfig usb0
usb0 Link encap:Ethernet HWaddr F6:95:F2:83:85:0A
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:511 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:57 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14308 (13.9 Kb) TX bytes:2436 (2.3 Kb)
It received 511 packets!
On my iPAQ (one minute later)
ifconfig usb0
<7>request_module: failed /sbin/modprobe -- net-pf-10. error = 256
usb0 Link encap:Ethernet HWaddr 1E:BF:3C:74:8E:09
inet addr:192.168.0.201 Bcast:192.168.0.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:651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:27342 (26.7 KiB)
There are more transmitted packets, but just because I couldn't run both
ifconfig commands at the same time. It seems that all transmitted
packets are received by the PC host.
In a nutshell:
The PC receives and sends packets.
The iPAQ can only send but not receive so far.
We're getting close!
Your comments and suggestions are welcome!
By the way, shouldn't the usb gadget (the iPAQ) use "usbf" instead of
"usb0", as it's supposed to?
:-)
Michael.
-- Michael Opdenacker http://opdenacker.org/Received on Tue Feb 24 2004 - 14:00:24 EST
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:19:25 EDT