This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: New commer's question.
- To: ÕÅêÍ <arkz at 21cn dot com>
- Subject: Re: [ECOS] New commer's question.
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 29 May 2001 19:03:12 +0100
- Cc: "ecos-discuss at sourceware dot cygnus dot com" <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <200105280156.SAA15073@cygnus.com>
"ÕÅêÍ" wrote:
>
> hi, here
>
> I wish to build eCos for a PC-motherboard target, my host is Linux and I have built the host development tools for my purpose, but I read the docs about eCos and have not found some build instructions for it, what can I do? use the "ecosconfig" tool? how to. I am a new commer here, so pls help me, thanks in advance.
Definitely read the eCos Getting Started manual.
Assuming you're using sh or bash shell, a *very* potted summary is:
ECOS_REPOSITORY=/path/to/your/eCos/repository
export ECOS_REPOSITORY
mkdir /tmp/linux-ecos-stubs
cd /tmp/linux-ecos-stubs
ecosconfig new pc stubs
ecosconfig tree
make
(put a formatted floppy in the drive)
dd if=install/bin/gdb_module.bin of=/dev/fd0
Now follow the instructions in the getting started manual for x86 (
http://sources.redhat.com/ecos/docs-latest/ ) to put this on a floppy.
You should be able to boot off this floppy image on your target PC, and if
you connect to the serial port, it should print something like
+$T05:12345[etc.]
Now to build eCos itself:
mkdir /tmp/linux-ecos
cd /tmp/linux-ecos
ecosconfig new pc
ecosconfig tree
make tests
Which will build eCos and some tests. You can then try downloading these
tests to the PC over serial using i386-elf-gdb:
i386-elf-gdb -b 38400 -nw install/tests/kernel/<VERSION>/tests/tm_basic
target remote /dev/ttyS0 (or ttyS1)
load
continue
Hopefully this will all make sense in conjunction with you reading the
Getting Started manual.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine