[ECOS] network support

Fano Ramparany Fano.Ramparany@rd.francetelecom.fr
Mon Jan 22 07:15:00 GMT 2001

Gary Thomas wrote:

> Here's the very simplest way to test this (using ecosconfig).
>   [gthomas@hermes test2]$ ecosconfig new edb7212 net
>   [gthomas@hermes test2]$ ecosconfig tree
>   [gthomas@hermes test2]$ make;make -C net/tcpip/current/ tests TESTS=tests/ping_test
> Similar results can be obtained by just using the "net" template and
> then enabling/building tests.
> Does this sequence [scenario] not work for you?

I guess this is the linux scenario. We use the Windows eCos develt environment.
Thus we have registered the network support package using the eCos Package
administration tool, added the network package using the Configuration tool.
We have ticked the INET support option and left all other options as they
as set by default ("Use BOOTP/DHCP to initial 'eth0'. The same for 'eth1').
Then we build the library and the tests.
When running the ping_test we get the following trace, which I think missed
the ping session information:

Loading section .rom_vectors, size 0x60 lma 0x8000
Loading section .text, size 0x25b0c lma 0x8060
Loading section .rodata, size 0x14b2 lma 0x2db6c
Loading section .data, size 0xb60 lma 0x2f020
Start address 0x8060 , load size 162686
Transfer rate: 27691 bits/sec, 305 bytes/write.
(gdb) break cyg_test_exit
Breakpoint 1 at 0x8558: file
//C/PROGRA~1/REDHAT~1/eCos/packages/net/tcpip/v1_0b1/tests/ping_test.c, line 74.
(gdb) break cyg_assert_fail
Function "cyg_assert_fail" not defined.
(gdb) break cyg_test_init
Function "cyg_test_init" not defined.
(gdb) cont
Network stack using 65536 bytes for misc space
                    65536 bytes for mbufs
                    131072 bytes for mbuf clusters
Start PING test
... Done

Breakpoint 1, cyg_test_exit ()
    at //C/PROGRA~1/REDHAT~1/eCos/packages/net/tcpip/v1_0b1/tests/ping_test.c:74
74          while (1) ;
(gdb) set cyg_test_is_simulator=0
No symbol "cyg_test_is_simulator" in current context.
(gdb) cont

Breakpoint 1, cyg_test_exit ()
    at //C/PROGRA~1/REDHAT~1/eCos/packages/net/tcpip/v1_0b1/tests/ping_test.c:74
74          while (1) ;
(gdb) *** 15:39:38 Run complete

More information about the Ecos-discuss mailing list