gavin li wrote:

>  It creats a huge file and the bin file is not
> correct,
>  but I use objcopy for x86 in Redhat 7.1, it works
> correctly for my x86 elf file.
>  
>  Anyone found a version of arm-linux-copy can work
> correctly?
>  
***** Objcopy :

I have exactly the same problem when trying to compile redboot (latest cvs) with two 
different toolchains :

I tried with several toolchains :

arm-linux-gcc version 2.95.2 19991024 (release)

arm-elf-gcc version 2.95.2 19991024 (release)
arm-linux-gcc version 2.95.3 20010315 (release)
arm-linux-gcc gcc version 3.0

Here is what I get :
-rwxr-xr-x    1 root     root     1342276512 oct 20 16:58 redboot.bin
-rwxr-xr-x    1 root     root       470487 oct 20 16:58 redboot.elf
-rwxr-xr-x    1 root     root       192703 oct 20 16:58 redboot.img
-rwxr-xr-x    1 root     root       274284 oct 20 16:58 redboot.srec

ebenard:/tmp/redboot4/install/bin# du
899     .
!!!!!!!!!

# hexdump /tmp/redboot4/install/bin/redboot.bin
0000000 0000 0000 0000 0000 0000 0000 7962 5001
0000010 7a62 5001 0000 0000 0000 0000 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
*
50000000 f018 e59f f018 e59f f018 e59f f018 e59f
50000010 f018 e59f 0000 0000 f018 e59f f018 e59f
50000020 0060 0000 0358 5000 03dc 5000 0414 5000

It's interesting as the begining of redboot seems to be located at 50000000 
(virtual address of the flash).

Do you know how I could have the .bin mapped the good way ?

** Last thing :
I found a warning :
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib 
-L/tmp/redboot3/install/lib -Ttarget.ld -o /tmp/redboot3/install/bin/redboot.elf 
/tmp/redboot3/install/lib/version.o
/skiff/local/arm-linux/bin/ld: warning: no memory region specified for section 
`.got.plt'
/skiff/local/arm-linux/bin/ld: warning: no memory region specified for section 
`.got'

What are these .got & .got.plt section ?

Here is what I'm doing :

ebenard:/tmp/redboot4# export ECOS_REPOSITORY=~ebenard/ecos/packages/
ebenard:/tmp/redboot4# ecosconfig new assabet redboot
U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
U CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM, new inferred value 0
U CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS, new inferred value 1
ebenard:/tmp/redboot4# ecosconfig import 
~ebenard/ecos/packages/hal/arm/sa11x0/assabet/current/misc/redboot_ROM.ecm 

ebenard:/tmp/redboot4# ecosconfig tree
ebenard:/tmp/redboot4# make

everything seems to compile well.
but I get the result shown at the top of this mail.

Has anyone here a working method to compile redboot ?

Many thanks for your help

Eric






_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to