This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Evaluator 7T: using Redboot syscalls
- From: Pierre Habraken <Pierre dot Habraken at imag dot fr>
- To: Mark Salter <msalter at redhat dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 03 Mar 2003 18:11:44 +0100
- Subject: [ECOS] Re: Evaluator 7T: using Redboot syscalls
- Organization: Université Joseph Fourier
- References: <Pine.SGI.4.40.0302191233470.1037613-100000@shell01.TheWorld.com> <20030219174138.A6E4578A6D@deneb.localdomain> <1045676870.18484.6026.camel@hermes.chez-thomas.org> <3E53C60E.6000305@eCosCentric.com> <20030219192255.962AE78A6D@deneb.localdomain> <3E54E606.D1FDC422@imag.fr> <1045751610.18487.7568.camel@hermes.chez-thomas.org> <3E54ED66.FB87A318@imag.fr> <3E55DE1B.3555D49F@imag.fr> <20030221152856.4AE0A78A6D@deneb.localdomain> <3E5DE0B6.98015076@imag.fr> <20030227125456.6830378A6D@deneb.localdomain>
Mark Salter wrote:
> [...]
> > When I launch the program gdb sigtraps:
> > [...]
> > I suppose the reason is that I am using a wrong RedBoot image and
> > thus I'll have to re-build RedBoot with the option you mention above
> > (something which does not sound straightforward at first glance...).
>
> Add:
>
> cdl_component CYGSEM_REDBOOT_BSP_SYSCALLS {
> inferred_value 1
> };
>
> to your redboot_{ROM,RAM}.ecm file.
I first downloaded ecos 1.3.1 source code but discovered that it has no
code for RedBoot inside.
Then, I downloaded ecos from the CVS repository and performed the
following steps:
- building and installing ecosconfig
- configuring in redboot build directory:
$ cd $REDBOOT_BUILD_DIR
$ $ECOS_ROOT_DIR/configure --prefix=$REDBOOT_BUILD_DIR
- creating in $REDBOOT_BUILD_DIR a file redboot_ROM.ecm containing
the above 3 lines for newlib syscalls
- configuring ecos for building redboot:
$ ecosconfig new e7t redboot
$ ecosconfig add flash
$ ecosconfig import redboot_ROM.ecm
$ ecosconfig tree
- building redboot:
$ make
Here, I get an error because my arm-elf-gcc was not built for C++
support ! So, I re-build and install arm-elf-gcc with C++ and then
try again to build redboot.
Now, compiling memchr.cxx in
$ECOS_ROOT_DIR/packages/language/c/libc/string/current/src fails
with the following error message:
.../memchr.cxx:71: `
void* memchr(const void*, int, long unsigned int)' defined both
normally and as an alias
make[1]: *** [src/memchr.o.d] Error 1
The declaration at line 71 which causes the erreur is:
externC void *
memchr( const void *s, int c, size_t n )
CYGBLD_ATTRIB_WEAK_ALIAS(__memchr);
Any idea about what I am doing wrong or else what I can try to avoid the
problem ?
Pierre
--
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre dot Habraken at imag dot fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss