This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Booting from floppy and debug
- From: Roland Caßebohm <roland dot cassebohm at visionsystems dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 8 Jan 2002 11:11:19 +0100
- Subject: [ECOS] Booting from floppy and debug
My target is an i386-PC and I configered ecos to boot from floppy.
ecosconfig new pc net
ecosconfig add ne2000
ecosconfig check
ecosconfig tree
After this I open the configuration with configtool and change the startup
type to FLOPPY.
Then build ecos.
Last I build a test program as follows:
i386-elf-gcc -c -o net.o -g -D__ECOS -Wall -I../ecos_install/include
-ffunction-sections -fdata-sections net.c
i386-elf-gcc -nostartfiles -L../ecos_install/lib -Wl,--gc-sections -o net
net.o -Ttarget.ld -nostdlib
i386-elf-objcopy -O binary net net.bin
And copy to floppy whith:
dd if=net.bin of=/dev/fd0
Ecos is booting from this floppy and starts correctly the test program.
Because of the ne2000 driver which isn't working correct I want to debug the
test program with gdb over serial line.
I tryed to connect to ecos with the folowing commands:
i386-elf-gdb -nw net
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
but the connection fails.
What can I do to get this work?
Thanks.
Roland