[ECOS] TCP Stack Testing problem

Madhava Reddy S madhava.s@globaledgesoft.com
Fri Dec 30 18:20:00 GMT 2005


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.


Regards,
Madhava S

----- Original Message ----- 
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Madhava Reddy S" <madhava.s@globaledgesoft.com>
Cc: <ecos-discuss@ecos.sourceware.org>
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
> old_net.
>
>> 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 -Ttarget.ld
>> -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
> CYGPKG_NET_BUILD_HW_TESTS and do a
>
> make tests
>
> and run the applications in install/tests/net/bsd_tcpip
>
>        Andrew
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 

-------------- next part --------------
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

-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list