Author Topic: Z networking wierdness  (Read 3382 times)

Woland

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.momus.net
Z networking wierdness
« on: October 10, 2004, 02:36:22 pm »
After a couple of months of my owning a beautiful 5500, I still can't connect up. I recompiled a bran spanking new 2.6.8 kernel, hotsync seems to work fine---when I turn on the Z in the cradel, usb0 is created and assigned the proper (static) IP address.  Here is where the wierdness begins:
My ifconfig shows:
Code: [Select]
usb0      Link encap:Ethernet  HWaddr 1A:60:19:07:1A:F0
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 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:2502 (2.4 Kb)  TX bytes:0 (0.0 b)
And when I ping 192.168.0.1 I merrily ping away.  Except the trafic does not go to usb0---it goes to the lo device.  Gkrellm2 shows a big spike in traffic on lo when I ping, while usb0 remains silent!  If I take lo down, then I can't ping.
Here is the output of the route command:  (komos is my firewall/gateway)
Code: [Select]
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 usb0
10.1.1.0        *               255.255.255.0   U     0      0        0 eth0
default         komos.momus.net 0.0.0.0         UG    0      0        0 eth0
The above is with lo down.  With lo up, it looks like this:
Code: [Select]
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 usb0
10.1.1.0        *               255.255.255.0   U     0      0        0 eth0
loopback        localhost.local 255.0.0.0       UG    0      0        0 lo
default         komos.momus.net 0.0.0.0         UG    0      0        0 eth0
And, if it would help, here is the output of the netstat -rn command:
Code: [Select]
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 usb0
10.1.1.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG        0 0          0 lo
0.0.0.0         10.1.1.1        0.0.0.0         UG        0 0          0 eth0

When I press either the "sync" button on the cradel, or "sync start" in the "PC Link" app, I get a short burst of traffic into usb0, followed by a "Communication was aborted" error on the Z.  Unfortunately, I have no other way of getting software on the Z, so I can't even see what is going on there through a terminal.

This is all very frustrating, so any ideas that you may have would be greatly appreciatesd.  I tried adding a route manually:
Code: [Select]
route add -host 192.168.0.1 usb0 but that did nothing except add a useless entry in the routing table.

I'm using the SHARP 3.10 ROM, if that helps.
« Last Edit: October 10, 2004, 03:29:03 pm by Woland »

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Z networking wierdness
« Reply #1 on: October 10, 2004, 05:38:20 pm »
Quote
And when I ping 192.168.0.1 I merrily ping away.

What is the IP address of the Z? Hopefully not 192.168.0.1 too (run ifconfig on the Z).

You're pinging the wrong end of the connection at the moment....


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Woland

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.momus.net
Z networking wierdness
« Reply #2 on: October 10, 2004, 05:51:09 pm »
Quote
What is the IP address of the Z? Hopefully not 192.168.0.1 too (run ifconfig on the Z).

You're pinging the wrong end of the connection at the moment....


Si
Umm, yes, I set the IP on the Z to be 192.168.0.1 which is what I tell the computer usb0 ought to be (ifconfig usb0 192.168.0.1 up) I mean, that's how it works, right?  Maybe I am more muddled than I thought.

/me plunging back into the docs in embarassment.
« Last Edit: October 10, 2004, 05:52:06 pm by Woland »

Woland

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.momus.net
Z networking wierdness
« Reply #3 on: October 10, 2004, 06:03:06 pm »
Oh, for Crissake!  The IP of the interface is supposed different from the Z!  Duh!  Well, at least now I am pinging the Z---packets are going across usb0.  However,  I still get a "Communication was aborted" error, when I press "Sync Start" on the Z.  And that is with qtopia running.  Likewise with multisync.  No one seems to want to talk.  Oh, well, back to the forums.
_____
Edit: Installing OpenZaurus 3.5.1 let me finally communicate with my Z.  Just wish I could actually install some programs, or sync!  Ah, but nothing is ever easy.
« Last Edit: October 10, 2004, 11:50:44 pm by Woland »