Alright, I've been trying to do this on my own, but it's been at least 5 days and I'm basically just going in circles.
My zaurus is a SL-5000D running OpenZaurus 3.2. My computer is running gentoo with kernel version 2.6.7.
I've tried various combinations of instructions from docs and forums all over the place (
From OZ,
ethernet over usb.
ppp over usb,
even other threads from this forum) and I'm still at the exact place I started.
No matter what I seem to do, or how many kernel configuration permutations I seem to try, I still cannot ping the zaurus:
root@minips1 /usr/src/linux # ping 192.168.129.201
PING 192.168.129.201 (192.168.129.201) 56(84) bytes of data.
From 192.168.129.1 icmp_seq=1 Destination Host Unreachable
From 192.168.129.1 icmp_seq=2 Destination Host Unreachable
From 192.168.129.1 icmp_seq=3 Destination Host Unreachable
From 192.168.129.1 icmp_seq=4 Destination Host Unreachable
From 192.168.129.1 icmp_seq=5 Destination Host Unreachable
From 192.168.129.1 icmp_seq=6 Destination Host Unreachable
--- 192.168.129.201 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6000ms
, pipe 4
I plug in the zaurus, and see the following in my syslog:
Sep 2 14:04:01 localhost kernel: usb 2-1: new full speed USB device using address 2
Sep 2 14:04:01 localhost kernel: usb0: register usbnet at usb-0000:00:1d.1-1, Sharp Zaurus SL-5x00
Sep 2 14:04:01 localhost kernel: usbcore: registered new driver usbnet
at which point hotplug sets up my usb0 network.
root@minips1 /usr/src/linux # lsmod
Module Size Used by
wlan_wep 6144 1
usbnet 13192 0
ath_pci 55716 0
wlan 105472 3 wlan_wep,ath_pci
ath_hal 125008 2 ath_pci
ehci_hcd 26436 0
uhci_hcd 29136 0
I have the following line in my /etc/conf.d/net file:
iface_usb0="192.168.129.1 pointopoint 192.168.129.201 netmask 255.255.255.0"
(I have also tried 192.168.129.200, instead of 192.168.129.1, with the same results) which appears to be working as the output of the below commands shows:
root@minips1 /home/tekniklr # ifconfig usb0
usb0 Link encap:Ethernet HWaddr E6:3D:50:73:2F:0E
inet addr:192.168.129.1 Bcast:192.168.129.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:80828 dropped:0 overruns:0 frame:0
TX packets:6 errors:12 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:276 (276.0 b)
root@minips1 /home/tekniklr # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.129.0 * 255.255.255.0 U 0 0 0 usb0
10.0.0.0 * 255.255.255.0 U 0 0 0 ath0
loopback localhost.local 255.0.0.0 UG 0 0 0 lo
default 10.0.0.1 0.0.0.0 UG 0 0 0 ath0
If've also tried this, which doesn't give me better results:
root@minips1 /home/tekniklr # route add -host 192.168.129.201 usb0
root@minips1 /home/tekniklr # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.129.201 * 255.255.255.255 UH 0 0 0 usb0
192.168.129.0 * 255.255.255.0 U 0 0 0 usb0
10.0.0.0 * 255.255.255.0 U 0 0 0 ath0
loopback localhost.local 255.0.0.0 UG 0 0 0 lo
default 10.0.0.1 0.0.0.0 UG 0 0 0 ath0
My kernel has the following relevant configuration:
Device Drivers --->
USB support --->
[*] Enfore USB bandiwdth allocation
EHCI HCD (USB 2.0) support
UHCI HCD (most Intel and VIA) support
Multi-purpose USB Networking Framework
[*] Embedded ARM Linux links (iPaq, ...)
[*] Sharp Zaurus (stock ROMs)
[*] CDC Ethernet support (smart deviced such as cable modems)
USB Gadget Support --->
<*> Support for USB Gadgets
<*> USB Gadget Drivers (Ethernet Gadget) --->
Networking support --->
<*> PPP (point-to-point protocol) support
<*> PPP support for sync tty ports
<*> PPP Deflate compression
<*> PPP BSD-Compress compression
(one of the many tutorials I looked at said PPP was needed).
On the zaurus side, Ive verified that usbd0 is up and running with IP 198.168.129.201, and that it is accepting sync connections from '192.168.129.0/24 (default)' (though I've also tried 'All'). I've tried running
# route add default gw 192.168.129.1
SIOCADDRT: Network is unreachable
(same results whether I'm trying to use 192.168.129.1 or 192.168.129.200 on my computer).
Anyway, I've recompiled my kernel no less than 15 times already, just trying whatever different things I can think of, and am now completely at a loss. I don't know if I missed a step or what, but I've gone over everything so much that I don't think I'd be able to find the problem myself anyway.
Any ideas? Please?