This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Compiling redboot for Neponset
- From: srijon <srijon at innvo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 27 Nov 2001 15:23:53 +0800
- Subject: [ECOS] Compiling redboot for Neponset
Hi,
I am trying to compile Redboot for the Assabet+Neponset, but am
facing problems.
I am using the latest source, as of 27 Nov, and give the following
commands:
------------- in a script ---------
#!/bin/bash
BASEDIR=/home/srijon/ecos
ECOS_TOPDIR=$BASEDIR/ecoscvs
CONFIG_DIR=$ECOS_TOPDIR/ecos/packages/hal/arm/sa11x0/assabet/current/misc
ECOSCONFIG=$ECOS_TOPDIR/ecos/packages/ecosconfig
export REDBOOTDIR=$ECOS_TOPDIR/ecos/packages
export ECOS_REPOSITORY=$REDBOOTDIR
export BUILDDIR=`pwd`
export TARGET=assabet
export ARCH_DIR=arm
export PLATFORM_DIR=sa11x0/assabet
$ECOSCONFIG new $TARGET redboot
$ECOSCONFIG import $CONFIG_DIR/redboot_ROM.ecm
$ECOSCONFIG tree
make
It gives the following error towards the end:
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib
-L/home/srijon/ecos/building/install/lib -Ttarget.ld -o
/home/srijon/ecos/building/install/bin/redboot.elf
/home/srijon/ecos/building/install/lib/version.o
/opt/arm/arm-linux/bin/ld: warning: no memory region specified for
section `.rel.got'
/opt/arm/arm-linux/bin/ld: address 0x0 of
/home/srijon/ecos/building/install/bin/redboot.elf section .rodata1
is not within region rom
/opt/arm/arm-linux/bin/ld: address 0x0 of
/home/srijon/ecos/building/install/bin/redboot.elf section .fixup is not
within region rom
/opt/arm/arm-linux/bin/ld: address 0x0 of
/home/srijon/ecos/building/install/bin/redboot.elf section
.gcc_except_table is not within region rom
/opt/arm/arm-linux/bin/ld: warning: no memory region specified for
section `.got'
/opt/arm/arm-linux/bin/ld: warning: no memory region specified for
section `.got.plt'
/opt/arm/arm-linux/bin/ld: section .got [00000000 -> 00000003] overlaps
section .data [00000000 -> 00000873]
/opt/arm/arm-linux/bin/ld: section .got.plt [00000004 -> 0000000f]
overlaps section .data [00000000 -> 00000873]
collect2: ld returned 1 exit status
make[1]: *** [/home/srijon/ecos/building/install/bin/redboot.elf] Error
1
make[1]: Leaving directory `/home/srijon/ecos/building/redboot/current'
make: *** [build] Error
2
I am using the following : gcc-3.0.2, glibc-2.2.3, binutils-2.11.2. -
compiled for arm.
Also, previously, I was using gcc-2.95.2 for ARM to compile (as I
understand it, redboot does not compile with that compiler), I used to
face a curious situation:
the redboot.bin file would show to be around 1.2Gb big, if I did "ls
-la" in the install/bin directory. But "du" in the same directory showed
the actual size to be aroud a 100Kb. Any ideas as to why?
Opening the file, I saw that it was filled with zeroes upto offset
0x500000 or something, and after that was the actual code ( I think that
was the code.) - any explanation?
Any help or pointers would be much appreciated.
Thank you,
Srijon.
--
|--------------------------------|
| Srijon Biswas |
| |
| srijon@innvo.com |
| srijon_biswas@yahoo.com |
| |
| Ph. no: 8741373 |
|--------------------------------|