This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TCP Stack Testing problem


On Sat, 31 Dec 2005, Madhava Reddy S wrote:

Hi Lunn,

Thanks for your valuble reply.
As you said i created a new project with i386 PC target and selected the net
option rather than the default in the template packages.
Next in the eCos HAL -  i386 architecture - i386 PC target I have selected
the startup type as Floppy.
In Basic networking - initialization options for eth0  I have selected the
Address setup for eth0.

Then i geneated the library and compiled the hello work program in
Generated the bin of exe  i386-elf-objcopy -O binary nw_test nw_test.bin
copied ot floppy dd conv=sync if=nw_test.bin of=/dev/fd0
booted the target system.

I'm not the expert, but I would not expect to test net functionality while using hello world like demo. Please use some of eCos net tests for this task. (i.e. add package like hw_net_tests or so...)

Even i tried to connect using gdb i386-elf-gdb nw_test
(gdb)target remote
It says No route to host.

I'm afraid you mix two completely different things here: the first is net (TCP/IP) functionality of the eCos application and the second is net functionality of the included GDB stubs. Have you ever included GDB stubs with network functionality in your eCos app?


In this case how can i test the working of ping to target. I have intel 82559 card in the target system.

I want to do a ping from my host to target system.
If  you are aware with this please guid me.

Madhava S

----- Original Message ----- From: "Andrew Lunn" <>
To: "Madhava Reddy S" <>
Cc: "Andrew Lunn" <>; <>
Sent: Saturday, December 31, 2005 2:34 AM
Subject: Re: [ECOS] TCP Stack Testing problem

On Fri, Dec 30, 2005 at 11:51:19PM +0530, Madhava Reddy S wrote:
Thanks a lot.

I have tried to compile redboot code and tried to generate library but it
was giving lot of errors and warnings.

I want to ping to target system.

To do that is it compulsory to go for redboot support.Is there any other
way apart form redboot package selection.

As i said in my reply, normal TCP/IP will work without Redboot.


Madhava S

----- Original Message ----- From: "Andrew Lunn" <>
To: "Madhava Reddy S" <>
Cc: <>
Sent: Friday, December 30, 2005 8:37 PM
Subject: Re: [ECOS] TCP Stack Testing problem

>On Fri, Dec 30, 2005 at 07:36:02PM +0530, Madhava Reddy S wrote:
>>Hi All,
>>I am new to eCos and currently learning to work on x86 PC platform.
>>I want to test the working of TCP/IP stack.
>>I was able to compile and run a sample application using boot floppy
>>through serial port.
>>How can i test the same program using Ethernet port.
>>In the configuration tool i have selected "common ethernet support",
>>"networking" and "Open BSD Stack" packages.
>Rather than add packages like this, use the templates, eg net and
>>I have generated the library for my work_dir.
>>Then i have compiled the program using
>>i386-elf-gcc -g -I$(work_dir)/include/hello.c -L$(work_dir)/lib
>>-nostdlib -o nw_test
>>Generated the binary of that exe
>>i386-elf-objcpy -O binary nw_test nw_test.bin
>>copied to floppy
>>dd conv=sync if=nw_test.bin of=/dev/fd0
>>I compiled the target for booting from floppy.
>>Started the target.
>>On Host i started gdb
>>i386-elf-gdb nw_test
>>when i try to connect using "target remote ip:port"
>>it says destination unreachable.
>Only redboot contains a tcp/ip enabled stub which can be used by
>gdb. Your FLOPPY startup application only has a serial port gdb stub.
>This is not a problem though, normal TCP/IP will still work and you
>just need to use the serial port for gdb.
>Also, rather than writing your own test programs, i suggest you first
>use the eCos test programs. These are known to work. Enable
>make tests
>and run the applications in install/tests/net/bsd_tcpip
> Andrew
>-- >Before posting, please read the FAQ:
>and search the list archive:

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message.Global Edge Software Ltd has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Global Edge Software Ltd reserves the right to monitor and review the content of all messages sent to or from this e-mail address

-- Before posting, please read the FAQ: and search the list archive:

-- Karel Gardas ObjectSecurity Ltd.

-- Before posting, please read the FAQ: and search the list archive:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]