rendered paste bodysmall description:
first of all I loaded the fresh kernel via cf card (boot vfat zImage)
after that I configured the SIMpad side. The USB cable was disconnected at this time.
Then I loaded the usbnet module on my laptop. After that I reccognized that the cable was not connected and I connected it (I think the order of putting the cable in is important).
After that I configured the Laptop side and I did a Ping. :).
==LAPTOP==
root@Slack:/home/nice# modprobe usbnet
root@Slack:/home/nice# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:06:5B:E2:58:9D
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::206:5bff:fee2:589d/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:776114 errors:0 dropped:0 overruns:0 frame:0
TX packets:518659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:983919892 (938.3 MiB) TX bytes:46175444 (44.0 MiB)
Interrupt:11 Base address:0xc00
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:808 errors:0 dropped:0 overruns:0 frame:0
TX packets:808 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24316 (23.7 KiB) TX bytes:24316 (23.7 KiB)
sit0 Link encap:UNSPEC HWaddr 00-00-00-00-30-30-30-3A-00-00-00-00-00-00-00-00
NOARP MTU:1480 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)
root@Slack:/home/nice# ifconfig usb0 up
usb0: ERROR while getting interface flags: No such device
root@Slack:/home/nice# ifconfig usb0 up
root@Slack:/home/nice# ifconfig usb0 192.168.129.3 netmask 255.255.255.0
root@Slack:/home/nice# ifconifg
bash: ifconifg: command not found
root@Slack:/home/nice# ifconfig
eth0 Link encap:Ethernet HWaddr 00:06:5B:E2:58:9D
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::206:5bff:fee2:589d/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:776160 errors:0 dropped:0 overruns:0 frame:0
TX packets:518709 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:983939979 (938.3 MiB) TX bytes:46179203 (44.0 MiB)
Interrupt:11 Base address:0xc00
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:808 errors:0 dropped:0 overruns:0 frame:0
TX packets:808 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24316 (23.7 KiB) TX bytes:24316 (23.7 KiB)
usb0 Link encap:Ethernet HWaddr CE:1F:FE:47:15:70
inet addr:192.168.129.3 Bcast:192.168.129.255 Mask:255.255.255.0
inet6 addr: fe80::cc1f:feff:fe47:1570/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)
root@Slack:/home/nice#
root@Slack:/home/nice# ping 192.168.129.2
PING 192.168.129.2 (192.168.129.2) 56(84) bytes of data.
64 bytes from 192.168.129.2: icmp_seq=1 ttl=64 time=2.09 ms
64 bytes from 192.168.129.2: icmp_seq=2 ttl=64 time=0.566 ms
64 bytes from 192.168.129.2: icmp_seq=3 ttl=64 time=1.32 ms
--- 192.168.129.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.566/1.329/2.095/0.624 ms
==SIMpad==
simpad login: root
root@simpad:~$ ifconfig usbf 192.168.129.2 netmask 255.255.255.0 up
SIOCSIFADDR: No such device
SIOCSIFNETMASK: No such device
SIOCGIFFLAGS: No such device
root@simpad:~$ ifconfig usb0 192.168.129.2 netmask 255.255.255.0 up
root@simpad:~$ route add default gw 192.168.129.1
root@simpad:~$ sa1100_udc: Resetting
sa1100_udc: Resetting
sa1100_udc: Resetting
sa1100_udc: Resetting
sa1100_udc: Resetting
usbep0: I have been assigned address: 4
usb0: full speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet Subset
ep0_queue: zero byte packet being queued. Setting DE and OPR end exiting
usbep0: Configured (OMP=00000040 IMP=00000040)
ep0_queue: zero byte packet being queued. Setting DE and OPR end exiting
root@simpad:~$ ifconfig
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: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 C2:61:3B:0D:76:43
inet addr:192.168.129.2 Bcast:192.168.129.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 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:384 (384.0 B) TX bytes:0 (0.0 B)
root@simpad:~$ ping 192.168.129.2
PING 192.168.129.2 (192.168.129.2): 56 data bytes
64 bytes from 192.168.129.2: icmp_seq=0 ttl=64 time=0.9 ms
64 bytes from 192.168.129.2: icmp_seq=1 ttl=64 time=0.3 ms
--- 192.168.129.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.6/0.9 ms
root@simpad:~$ ping 192.168.129.3
PING 192.168.129.3 (192.168.129.3): 56 data bytes
64 bytes from 192.168.129.3: icmp_seq=0 ttl=64 time=3.2 ms
64 bytes from 192.168.129.3: icmp_seq=1 ttl=64 time=1.4 ms
64 bytes from 192.168.129.3: icmp_seq=2 ttl=64 time=1.4 ms
64 bytes from 192.168.129.3: icmp_seq=3 ttl=64 time=1.4 ms
64 bytes from 192.168.129.3: icmp_seq=4 ttl=64 time=1.5 ms
64 bytes from 192.168.129.3: icmp_seq=5 ttl=64 time=1.5 ms
--- 192.168.129.3 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 1.4/1.7/3.2 ms