This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Information and Help
- To: <ecos-announce-info at sourceware dot cygnus dot com>,<ecos-announce-faq at sourceware dot cygnus dot com>,<ecos-discuss at sourceware dot cygnus dot com>, <leandro at av dot it dot pt>
- Subject: [ECOS] Information and Help
- From: "Leandro Vieira" <leandro at av dot it dot pt>
- Date: Wed, 4 Oct 2000 18:57:17 +0100
- Reply-To: <leandro at av dot it dot pt>
I'm new in ecos. i have subscribed to this mailing list but i
do not know where is the best place(address) where i can ask for help.
like this:
I have downloaded development tools to develop programs for Intel x86
targets.
After the extraction process i generated the following directories like in
document:
/src/binutils/binutils-2.10
/src/gcc/gcc-2.95.2
/src/gdb/gdb-5.0
After that i go on with following:
1.I Configured, Built and installed the GNU Binary Utilities.
mkdir -p /tmp/build/binutils
cd /tmp/build/binutils
/src/binutils/binutils-2.10/configure --target=i386-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-cygwin \
-v 2>&1 | tee configure.out
make -w all install 2>&1 | tee make.
2.I Configured, Built and installed GCC
PATH=/tools/H-i686-pc-cygwin/bin:$PATH ; export PATH
mkdir -p /tmp/build/gcc
cd /tmp/build/gcc
/src/gcc/gcc-2.95.2/configure --target=i386-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-cygwin \
--with-gnu-as --with-gnu-ld --with-newlib \
-v 2>&1 | tee configure.out
make -w all-gcc install-gcc \
LANGUAGES="c c++" 2>&1 | tee make.out
3.I Configured, Built and installed GDB
mkdir -p /tmp/build/gdb
cd /tmp/build/gdb
/src/gdb/gdb-5.0/configure --target=i386-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-cygwin \
-v 2>&1 | tee configure.out
make -w all install 2>&1 | tee make.out
All this process was fine.
After all this instructions, from eCos Configuration tools i follow the
instructions and i got this:
/c/ecos-work/myecos_build
/c/ecos-work/myecos_install
/c/ecos-work/myecos_mlt
/c/ecos-work/myecos.ecc
/c/ecos-work/mysrc.ecc =====>this folder was created by me.
It's where i put all my sources and the eCos examples(hello.c,
twothreads.c, etc)
NOTE: In configuration, the template=I386 PC Target and Packages=all.
IN THIS MOMENT I´M TRYING TO EXECUTE THE PROGRAM EXAMPLES
AND SOME PROGRAM THAT I BUILT, BUT NOTHING WORK. WHAT I DO AND I WOULD
LIKE TO KNOW IS FOLLOW:
1. Compiling the sources from bash.exe-2.04$:
i386-elf-gcc -g -I/c/ecos-work/myecos_install/include
hello.c -L/c/ecos-work/myecos_install/lib -Ttarget.ld -nostdlib
The result is OK...
2.from bash.exe-2.04$:
gdb -nw a.out
The result is the following message: ... This GDB was configured as
"i686-pc-cygwin" <gdb>
3.From the gdb consola:
run
The result is the following message: Starting Program:
/c/ecos-work/mysrc/a.out
Error Creating process /c/ecos-work/mysrc/a.out, (error 193)
NOTE:I have tried other solutions but them still not work.
In this moment i don't use any target, this is, i don't use any
hardware connected to my computer.
If it's necessary to use a target, i have intention to use a board
with i386 and i have some questions.
1.How can i install ecos in this target?
2.How can i do download to this target?
3.How can debugg my application?using GDB?
4.In ecos's document, there is a reference, "Its necessary GDB stub
in target", when you use gdb to debugg.
whats is GDB stubs and How can i have it in my target?
4.Can I configure ecos without necessity to use any target(i.e, whitout
Hardwere connected to my computer)?
If so, How can i do it?
PLEASE I NEED HELP.
BEST REGADS
**********************************************
* Portugal Telecom *
* Instituto de Telecomunicações *
* Aveiro / Portugal *
* leandro@av.it.pt *
**********************************************