This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

redboot compile problem - no memory region specified





I am trying to compile redboot for the assabet.  I am compiling my own version
because
I want to try out some changes.  The host machine has Redhat 7.1.
I downloaded the ecos snapshot from the site pointed to by Redhat ( the
ecos/host/Changelog
has an entry for 2001-07-09).
After extracting ecos, I used the following steps to build redboot:

Installed ecos on Linux:
   >cd ecos
   >mkdir build
   >cd build
   >../host/configure --with-tcl=/usr
   >make
   >make install

To build redboot:
- Created directory redbootbuild in ecos directory
- Defined the following environment variables
    >export REDBOOTDIR=/home/project/ecos
    >export BUILDDIR=/home/project/ecos/redbootbuild
    >export ECOS_REPOSITORY=$REDBOOTDIR/packages
    >export TARGET=assabet
    >export ARCH_DIR=arm
    >export PLATFORM_DIR=sa11x0/assabet

- Setup links to arm cross compiler tools (ecos uses different name than
installed tools),
   (Using gcc-arm-2.95.2 version of tools)

    >cd /usr/bin
    >link -s arm-linux-add2line arm-elf-add2line
    >link -s arm-linux-ar arm-elf-ar
    >link -s arm-linux-as arm-elf-as
    >link -s arm-linux-g++ arm-elf-g++
    >link -s arm-linux-gasp arm-elf-gasp
    >link -s arm-linux-gcc arm-elf-gcc
    >link -s arm-linux-ld arm-elf-ld
        .
        .
        .
   >cd redbootbuild
   >$ECOSDIR/host/configure --prefix=$ECOSDIR/redbootbuild --with-tcl=/usr
   >make
   >ecosconfig new assabet redboot
   >ecosconfig tree
   >make

The make had warnings and an error so I used the
assabet/current/misc/redboot_ROM.ecm file
and tried the following:
   >ecosconfig  import redboot_ROM.ecm
   >ecosconfig treee
   >make

I still received the following warnings and error:

arm-elf-gcc -c  -I/home/project/ecos/redbootbuild/install/include
-I/home/project/ecos/packages/redboot/current
-I/home/project/ecos/packages/redboot/current/src
-I/home/project/ecos/packages/redboot/current/tests
-I. -mcpu=strongarm1100 -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual
-g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-fvtable-gc -finit-priority -o
/home/project/ecos/redbootbuild/install/lib/version.o
/home/project/ecos/packages/redboot/current/src/version.c
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib
-L/home/project/ecos/redbootbuild/install/lib -Ttarget.ld -o
/home/project/ecos/redbootbuild/install/bin/redboot.elf
/home/project/ecos/redbootbuild/install/lib/version.o
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.do_exec'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.do_delay'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.sc_lpe_card_handler'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.cyg_sc_lpe_init'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.cyg_sc_lpe_int_vector'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.dp83902a_deliver'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.dp83902a_stop'
/usr/arm-linux/bin/ld: warning: no memory region specified for section
`.dp83902a_start'
    .
    .
usr/arm-linux/bin/ld: section .hexchars [0000a290 -> 0000a2b4] overlaps section
.rodata [0000a290 -> 0000cb2a]
/usr/arm-linux/bin/ld: section .hex [0000a2b8 -> 0000a2c8] overlaps section
.rodata [0000a290 -> 0000cb2a]
/usr/arm-linux/bin/ld: section .crc16_tab [0000a2ca -> 0000a4c9] overlaps
section .rodata [0000a290 -> 0000cb2a]
/usr/arm-linux/bin/ld: section .crc32_tab [0000a4cc -> 0000a8cb] overlaps
section .rodata [0000a290 -> 0000cb2a]
/usr/arm-linux/bin/ld: section .posix_crc32_tab [0000a8cc -> 0000accb] overlaps
section .rodata [0000a290 -> 0000cb2a]
/usr/arm-linux/bin/ld: section .data [0000accc -> 0000b203] overlaps section
.rodata [0000a290 -> 0000cb2a]
    .
    .
/usr/arm-linux/bin/ld: section .got.plt [0000af6c -> 0000af77] overlaps section
.rodata [0000a290 -> 0000cb2a]
/home/project/ecos/redbootbuild/install/lib/vectors.o: In function `dram_table':
/home/project/ecos/redbootbuild/install/lib/vectors.o(.text+0x190): relocation
truncated to fit: R_ARM_PC24 hal_mmu_init
/home/project/ecos/redbootbuild/install/lib/vectors.o: In function `start':
/home/project/ecos/redbootbuild/install/lib/vectors.o(.text+0x2d8): relocation
truncated to fit: R_ARM_PC24 hal_hardware_init
/home/project/ecos/redbootbuild/install/lib/vectors.o(.text+0x2dc): relocation
truncated to fit: R_ARM_PC24 initialize_stub
/home/project/ecos/redbootbuild/install/lib/vectors.o(.text+0x2f8): relocation
truncated to fit: R_ARM_PC24 hal_ctrlc_isr_init
    .
    .
home/project/ecos/packages/redboot/current/src/flash.c:1837: relocation
truncated to fit: R_ARM_PC24 __udivsi3
/home/project/ecos/redbootbuild/install/lib/libtarget.a(devs_flash_intel_strata_strata.o):

In function `flash_code_overlaps':
/home/project/ecos/packages/devs/flash/intel/strata/current/src/strata.c:196:
relocation truncated to fit: R_ARM_PC24 __divsi3
/home/project/ecos/redbootbuild/install/lib/libtarget.a(infra_diag.o): In
function `global constructors keyed to 10100.diag_write_char':
/home/project/ecos/packages/infra/current/src/diag.cxx:104: relocation truncated
 to fit: R_ARM_PC24 __umoddi3
/home/project/ecos/packages/infra/current/src/diag.cxx:104: relocation truncated
 to fit: R_ARM_PC24 __udivdi3
collect2: ld returned 1 exit status
make[1]: *** [/home/project/ecos/redbootbuild/install/bin/redboot.elf] Error 1
make[1]: Leaving directory `/home/project/ecos/redbootbuild/redboot/current'
make: *** [build] Error 2

This may be a path problem.  Any help would be appreciated.

Thanks





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]