This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
RE: Ping test question
- To: Nicolas Gerber <nge at teamlog dot fr>
- Subject: RE: [ECOS] Ping test question
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Thu, 18 May 2000 05:47:25 -0600 (MDT)
- Cc: ecos-discuss at sourceware dot cygnus dot com
On 18-May-00 Nicolas Gerber wrote:
> Hi all,
> I'm trying to run the TCP/IP stack test programs on an edb7209-2C.0 board.
> I have disabled DHCP and enabled manual IP address configuration.
> And when I run ping_test I get:
>
> Init device 'edb7xxx'
> cs8900 init
> CS8900 - type: 630E, rev: 800
> CS8900 - status: D6 (no EEPROM present)
> Start PING test
> BOOTP[eth0] op: REPLY
> hw_type: Ethernet
> hw_addr: FF:FF:FF:FF:FF:FF
> client IP: 10.20.2.202
> my IP: 10.20.2.202
> server IP: 10.20.2.215
> gateway IP: 10.20.2.215
> options:
> subnet mask: 255.255.255.0
> IP broadcast: 10.20.2.255
> PING server 10.20.2.215
> recvfrom: Operation timed out
> recvfrom: Operation timed out
> ....
> So my board looks totaly outside the network.
>
> I take a look in the ethernet driver file 'if_edb7xxx.c' and my MAC address should be
> "08:88:12:34:56:78", why does it show up as "FF:FF:FF:FF:FF:FF" in the outgoing packet?
> I can't figure out what I'm doing wrong....
> Is there any special point in the edb72xxx ethernet configuration that I forget?
>
> Thanks for your help.
> Apologies in advance for what is, hopefully, a stupid question...
>
It may be the case that the ESA (the MAC address) is correct and is just not
displayed. The display comes from the pseudo-BOOTP data record which is created
internally when you choose manual IP.
My best guess is that you have not modified your hardware (per the README). This
particular board cannot generate ethernet interrupts (required by the driver) unless
you physically remove resistor R168 and all jumpers from JP45.
Do you know what the board actually sends on the wire? Have you tried running
an ethernet "snooper", like 'tcpdump' on Linux? Alternatively, you can force
some additional messages out when you run the test. Here's how:
[gary@hermes net_test]$ arm-elf-gdb -nw install/tests/net/tcpip/current/tests/ping_test
GNU gdb 4.18-ecos-99r1-991015
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions. This version of GDB is supported
for customers of Cygnus Solutions. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) arem
0xe0002588 in ?? ()
Breakpoint 1 at 0xb038: file /work2/ecc/ecc/infra/current/src/tcdiag.cxx, line 208.
void cyg_test_exit();
(gdb) lo
Loading section .rom_vectors, size 0x60 lma 0x8000
Loading section .text, size 0x28280 lma 0x8060
Loading section .rodata, size 0x1744 lma 0x302e0
Loading section .data, size 0xb0c lma 0x31a24
Start address 0x8060 , load size 173360
Transfer rate: 25682 bits/sec.
(gdb) set net_debug = 1
(gdb) c
Continuing.
Network stack using 65536 bytes for misc space
65536 bytes for mbufs
131072 bytes for mbuf clusters
Init device 'edb7xxx'
cs8900 init
CS8900 - type: 630E, rev: 700
CS8900 - status: D6 (no EEPROM present)
Start PING test
Sending 42 bytes
xmit 42 bytes at 478BE
000478BE: FFFF FFFF FFFF 0888 1234 5678 0806 0001 |.........4Vx....|
000478CE: 0800 0604 0001 0888 1234 5678 0000 0000 |.........4Vx....|
000478DE: 0000 0000 0000 0000 0000 |.......... |
Tx event: 8
Sending 342 bytes
xmit 42 bytes at 479BE
000479BE: FFFF FFFF FFFF 0888 1234 5678 0800 4500 |.........4Vx..E.|
000479CE: 0148 0001 0000 4011 79A5 0000 0000 FFFF |.H....@.y.......|
000479DE: FFFF 0044 0043 0134 CEE2 |...D.C.4.. |
xmit 300 bytes at 58020
00058020: 0102 0600 0000 0000 0000 0000 0000 0000 |................|
00058030: 0000 0000 0000 0000 0000 0000 0888 1234 |...............4|
00058040: 5678 0000 0000 0000 0000 0000 0000 0000 |Vx..............|
00058050: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058060: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058070: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058080: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058090: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580A0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580B0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580C0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580D0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580E0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580F0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058100: 0000 0000 0000 0000 0000 0000 6382 5363 |............c.Sc|
00058110: FF00 0000 0000 0000 0000 0000 0000 0000 |................|
00058120: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058130: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058140: 0000 0000 0000 0000 0000 0000 |............ |
Tx event: 8
RxEvent - stat: 904, len: 342
00033608: FFFF FFFF FFFF 0090 272C 4935 0800 |........',I5.. |
00058010: 4500 0148 BF60 0000 4011 1773 3FE1 62F1 |E..H.`..@..s?.b.|
00058020: FFFF FFFF 0043 0044 0134 D28A 0202 0600 |.....C.D.4......|
00058030: 0000 0000 0000 0000 0000 0000 C0A8 0102 |................|
00058040: C0A8 0165 0000 0000 0888 1234 5678 0000 |...e.......4Vx..|
00058050: 0000 0000 0000 0000 6865 726D 6573 2E63 |........hermes.c|
00058060: 6865 7A2D 7468 6F6D 6173 2E6F 7267 0000 |hez-thomas.org..|
00058070: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058080: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058090: 0000 0000 0000 0000 2F74 6674 7062 6F6F |......../tftpboo|
000580A0: 742F 3139 322E 3136 382E 312E 322F 7A49 |t/192.168.1.2/zI|
000580B0: 6D61 6765 0000 0000 0000 0000 0000 0000 |mage............|
000580C0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580D0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580E0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
000580F0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058100: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
00058110: 0000 0000 0000 0000 6382 5363 0104 FFFF |........c.Sc....|
00058120: FF00 0304 C0A8 0165 0610 3FE1 62F1 CEC4 |.......e..?.b...|
00058130: 8001 CDB4 E614 CDB4 E615 0C07 6564 6237 |............edb7|
00058140: 3231 320F 0F63 6865 7A2D 7468 6F6D 6173 |212..chez-thomas|
00058150: 2E6F 7267 FF00 0000 |.org.... |
BOOTP[eth0] op: REPLY
hw_type: Exp Ethernet
hw_addr: 08:88:12:34:56:78
client IP: 0.0.0.0
my IP: 192.168.1.2
server IP: 192.168.1.101
gateway IP: 0.0.0.0
server: hermes.chez-thomas.org
file: /tftpboot/192.168.1.2/zImage
options:
subnet mask: 255.255.255.0
gateway: 192.168.1.101
domain server: 63.225.98.241, 206.196.128.1, 205.180.230.20, 205.180.230.21
host name: edb7212
domain name: chez-thomas.org
Sending 42 bytes
xmit 42 bytes at 478BE
000478BE: FFFF FFFF FFFF 0888 1234 5678 0806 0001 |.........4Vx....|
000478CE: 0800 0604 0001 0888 1234 5678 C0A8 0102 |.........4Vx....|
000478DE: 0000 0000 0000 C0A8 0102 |.......... |
Tx event: 8
PING server 192.168.1.101
Sending 42 bytes
xmit 42 bytes at 479BE
000479BE: FFFF FFFF FFFF 0888 1234 5678 0806 0001 |.........4Vx....|
000479CE: 0800 0604 0001 0888 1234 5678 C0A8 0102 |.........4Vx....|
000479DE: 0000 0000 0000 C0A8 0165 |.........e |
RxEvent - stat: 504, len: 60
00033608: 0888 1234 5678 0090 272C 4935 0806 |...4Vx..',I5.. |
00047A08: 0001 0800 0604 0002 0090 272C 4935 C0A8 |..........',I5..|
00047A18: 0165 0888 1234 5678 C0A8 0102 0000 0000 |.e...4Vx........|
00047A28: 0000 0000 0000 0000 0000 0000 0000 |.............. |
The key line is 'set net_debug = 1'. This turns on some debug prints
which, in particular, will show you exactly what is going down the wire.