[ECOS] Building rommable images for the AEB-1C

Gary Thomas gthomas@cygnus.co.uk
Thu Jan 6 06:45:00 GMT 2000


On 06-Jan-00 Nicholas_Clarey@ivesco.co.uk wrote:
> Hi Gary,
> 
> I've corrected the two warnings that were my fault - I figured that was 
> the problem any way - but the other messages stay.
> 
> /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9-eco
> sSWtools-arm-990321/../../../../arm-elf/bin/ld: 
> address 0x40219c0 of a.out section .text is not within region rom
> /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9-eco
> sSWtools-arm-990321/../../../../arm-elf/bin/ld: 
> address 0x4021c4c of a.out section .rodata is not within region rom
> /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9-eco
> sSWtools-arm-990321/../../../../arm-elf/bin/ld: 
> warning: no memory region specified for section `.glue_7'
> /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9-eco
> sSWtools-arm-990321/../../../../arm-elf/bin/ld: 
> warning: no memory region specified for section `.glue_7t'
> collect2: ld returned 1 exit status
> 
> As for the toolchain, I'm using exactly what I was told to use :->
> 
> 2.9-ecosSWtools-arm-990321
> GNU ld 2.9-ecosSWtools-arm-990321

Odd, I just tried your example and it built fine for me.  I am using a slightly
newer toolchain, though.  I'll have someone look into this.

Can you send me the "compile & link" commands that were used to build/link your
program?  What I did was to copy your test program into the "io/serial/XXX/tests/"
directory and adjust the makefile.  Here's the output from the build:

[gary@hermes aeb_test]$ make -C io/serial/current/tests/
make: Entering directory `/work/aeb_test/io/serial/current/tests'
arm-elf-gcc  -c  -I/work/aeb_test/install/include -I. -I/work2/ecc_mainline/ecc/io/serial/current/tests -mcpu=arm7di -Wall -Wpo
inter-arith
-Wstrict-prototypes -Winline -Wundef -ffunction-sections -fdata-sections -mno-sched-prolog -g -O2   -Wp,-MD,io_serial_aeb_test.
tmp -o
io_serial_aeb_test.o aeb_test.c 
arm-elf-gcc -o /work/aeb_test/install/tests/io_serial/aeb_test io_serial_aeb_test.o -mcpu=arm7di -Wall -Wpointer-arith -Wstrict
-prototypes -Winline
-Wundef -ffunction-sections -fdata-sections -mno-sched-prolog -Wl,--gc-sections -Wl,-static -g -O2 -L/work/aeb_test/install/lib
 -Ttarget.ld -nostdlib

Note: on my system, I work with the 'current' version.  The path will be slightly
different on yours.

Also, you'll want to open "/dev/ser0", not "/dev/serial0".  You also need to enable
it, either using the ConfigTool if you are using Windows, or by editting the file
"pkgconf/io_serial.h"


More information about the Ecos-discuss mailing list