> From: <[EMAIL PROTECTED]>
>
> exec -c "root=/dev/ram" -b 0x100000 -l 0xa0000 -r 0xC00000 -s 0x700000 0xc0008000
These options are not supported in redboot binary files provided in ecos distribution,
and I cannot execute redboot in RAM when I
recompile it.
> you need an import here.
you mean doing: "ecosconfig import hal/arm/sa11x0/assabet/current/misc/redboot_RAM.ecm"
The RAM images generated does not worked with this import. I have also try with the
redboot_ROM.ecm, but I have strange result.
The size of the redboot.bin file is about 1,6MB ???
Here is the result of objdump:
install/bin/redboot.img: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .rom_vectors 00000040 50000000 50000000 00000ddc 2**0
CONTENTS, ALLOC, LOAD, CODE
1 .text 00012358 50000040 50000040 00000e1c 2**2
CONTENTS, ALLOC, LOAD, CODE
2 .fini 00000000 50012398 50012398 000161a0 2**0
CONTENTS
3 .rodata 0000233a 50012398 50012398 00013174 2**2
CONTENTS, ALLOC, LOAD, DATA
4 .rodata1 00000000 500146d4 500146d4 000161a0 2**0
CONTENTS
5 .fixup 00000000 500146d4 500146d4 000161a0 2**0
CONTENTS
6 .gcc_except_table 00000000 500146d4 500146d4 000161a0 2**0
CONTENTS
7 .fixed_vectors 00000148 00000020 00000020 000161a0 2**5
CONTENTS
8 .data 00000cf0 00008000 500146d4 000154b0 2**2
CONTENTS, ALLOC, LOAD, DATA
9 .got 00000008 00000000 00000000 00000dd4 2**2
CONTENTS, ALLOC, LOAD, DATA
10 .got.plt 0000000c 00000008 00000008 000000d8 2**2
CONTENTS, ALLOC, LOAD, DATA
11 .bss 0000bf9c 00000014 00000014 000000e4 2**4
ALLOC
The only differences with the working redboot.rom are sections .got and .got.plt.
These sections also generate warning during the link: "no memory region specified for
section .got".
What does it mean? The linker store these sections in 0x00000000 and 0x00000008, and
pad with zero until 0x50000000. That the reason
why the .bin file is so big.
I use HardHat CDK 1.2 for cross compilation on a Mandrake 7.2 linux.
Is it a configuration problem ?
Benoit.
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.