Author Topic: Usb Network - Connection Problem  (Read 11063 times)

0laf

  • Newbie
  • *
  • Posts: 4
    • View Profile
Usb Network - Connection Problem
« on: November 01, 2008, 03:25:34 pm »
Hello all,

at the moment I m trying to get USB networking configured for the Zaurus CL1000.
The Zaurus is running  Angstrom x11-image 2007.12-r18.

Basically I tried to get it working by performing the steps which are described in the USB networking howto on the Angstrom wiki (http://linuxtogo.org/gowiki/AngstromManual)...
Nevertheless its not working for me  

I did following on the zaurus:
  • modprobe  g_ether
  • ifconfig usb0 192.168.1.201 netmask 255.255.255.255 up
  • route add -host 192.168.1.101 usb0
  • then i had a look at the available network devices with ifconfig, interface "usb0" seemed to be fine

Next I continued with the configuration of the desktop computer (running debain etch 4.0 stable):
  • loaded the modules cdc_ether and usbnet
  • dmesg output:
    usb0: register 'cdc_ether' at usb-0000:00:08.1-2, CDC Ethernet Device, de:3a:e8:4a:93:2c
  • lsusb output:
    Bus 002 Device 010: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
  • ifconfig usb0 192.168.1.101 netmask 255.255.255.255 up
  • route add -host 192.168.1.201 usb0
  • ifconfig output:

    usb0      Link encap:Ethernet  HWaddr DE:3A:E8:4A:93:2C  
              inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.255
              inet6 addr: fe80::dc3a:e8ff:fe4a:932c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:108772 dropped:0 overruns:0 frame:0
              TX packets:6 errors:288 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 b )  TX bytes:468 (468.0 b )
Well next I tried to test the connection with ping:
on the desktop: ping 192.168.1.101 -> ok, ping 192.168.1.201 -> not working
zaurus:     ping 192.168.1.201 -> ok, ping 192.168.1.101 -> not working

Hm, obviously there is something wrong with my configuration  

I m somewhat stuck, any help would be greatly appreciated

Thanks in advance
olaf

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Usb Network - Connection Problem
« Reply #1 on: November 01, 2008, 05:09:09 pm »
You have bad configuration. You are configuring ifconfig with a different network address than route (101 x 201).

Here are my files:

Manual setup

ifcfg-usb0 for automatic setup in openSUSE

0laf

  • Newbie
  • *
  • Posts: 4
    • View Profile
Usb Network - Connection Problem
« Reply #2 on: November 02, 2008, 08:02:05 am »
Quote from: utx
You have bad configuration. You are configuring ifconfig with a different network address than route (101 x 201).

Here are my files:

Manual setup

ifcfg-usb0 for automatic setup in openSUSE
Thanks for your reply, I tried your script, but usb networking is still not possible for me
Now my config looks like that:
desktop:
ifconfig:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']eth5      Link encap:Ethernet  HWaddr 00:90:27:54:0E:D5  
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::290:27ff:fe54:ed5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30073 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26165 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30927764 (29.4 MiB)  TX bytes:2415453 (2.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:589 errors:0 dropped:0 overruns:0 frame:0
          TX packets:589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:61128 (59.6 KiB)  TX bytes:61128 (59.6 KiB)

usb0      Link encap:Ethernet  HWaddr DE:3A:E8:4A:93:2C  
          inet addr:192.168.129.1  Bcast:192.168.129.255  Mask:255.255.255.255
          inet6 addr: fe80::dc3a:e8ff:fe4a:932c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:96176 dropped:0 overruns:0 frame:0
          TX packets:6 errors:501 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0   TX bytes:468 (468.0 [/div]
route - n:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.129.201 0.0.0.0         255.255.255.255 UH    0      0        0 usb0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth5
0.0.0.0         192.168.1.252   0.0.0.0         UG    0      0        0 eth5[/div]

zaurus:
ifconfig:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1739 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1739 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:191760 (187.2 KiB)  TX bytes: 191760 (187.2  KiB)

usb0      Link encap:Ethernet  HWaddr 6A:67:78:C5:07:1B
          inet addr:192.168.129.201  Bcast:192.168.129.255  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1906 (1.8 KiB)  TX bytes:756 (756.0 [/div]
route - n:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.129.1 0.0.0.0         255.255.255.255 UH    0      0        0 usb0
0.0.0.0   192.168.129.1       255.255.255.255 UG    0      0        0 usb0
[/div]

i hope you can help me, that would be great

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Usb Network - Connection Problem
« Reply #3 on: November 02, 2008, 09:02:19 am »
Please try netmask 255.255.255.0. I am surprised, that netmask 255.255.255.255 from my example was ever working.

0laf

  • Newbie
  • *
  • Posts: 4
    • View Profile
Usb Network - Connection Problem
« Reply #4 on: November 02, 2008, 10:00:13 am »
Quote from: utx
Please try netmask 255.255.255.0. I am surprised, that netmask 255.255.255.255 from my example was ever working.
Thx for helping me, i changed the netmask to 255.255.255.0, but it didnt work   Which version of angstrom are you using?

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Usb Network - Connection Problem
« Reply #5 on: November 02, 2008, 11:24:24 am »
Quote from: 0laf
Thx for helping me, i changed the netmask to 255.255.255.0, but it didnt work   Which version of angstrom are you using?

org.openembedded.dev snapshot from September. But USB networking does not work in the latest kernels, so I cannot provide a working configuration. But the ifcfg-usb0 worked with the default /etc/network/interfaces in past.

You can test physical transfer by watching of ifconfig statistics (TX/RX bytes) and then try to search, which part of connection loses data.

Note that some kernels have had a bug, which caused half-working USB networking. Reboot, suspend/resume or insmod/rmmod may help.

olipage

  • Newbie
  • *
  • Posts: 10
    • View Profile
Usb Network - Connection Problem
« Reply #6 on: November 03, 2008, 04:31:56 am »
i wonder, whether you have a running usb-net connection between winxp and angstrom?

i finally found statements that due to an kernel bug this would not work. using pdaxrom it worked, but this used another windows driver, not rndis, but 3ndis - now with most recent angstrom i have a driver that cannot get initialized on windows side.

anyone running this constellation?

cheers, Oliver