This is the mail archive of the ecos-devel@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]
Other format: [Raw text]

[eCos] memory layout problems


Hello,
I'm trying to port eCos on a ARM946e based board which mapping is:
*ROM boot:
rom : ORIGIN = 0, LENGTH = 0x2000000 (remapped after boot process)
ram : ORIGIN = 0x08000000, LENGTH = 0x4000
sdram : ORIGIN = 0x10000000, LENGTH = 0x08000000 (remapped after boot
process)
*Flash boot:
rom : ORIGIN = 0x40000000, LENGTH = 0x1ff (remapped after boot process)
ram : ORIGIN = 0x08000000, LENGTH = 0x4000
sdram : ORIGIN = 0x10000000, LENGTH = 0x08000000 (remapped after boot
process)
* Mapping after boot time
rom : ORIGIN = 0x38000000, LENGTH = 0x1ff (remapped after boot process)
ram : ORIGIN = 0x08000000, LENGTH = 0x4000
sdram : ORIGIN = 0, LENGTH = 0x08000000 (remapped after boot process)

I write my rom.ldi like this (rom boot):

MEMORY
{
rom : ORIGIN = 0, LENGTH = 0x2000000
ram : ORIGIN = 0x8000000, LENGTH = 0x4000
}

SECTIONS
{
SECTIONS_BEGIN
SECTION_rom_vectors (rom, 0, LMA_EQ_VMA)
SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fixed_vectors (ram, 0x8000020, LMA_EQ_VMA)
SECTION_data (ram, 0x2000, FOLLOWING (.gcc_except_table))
SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
SECTIONS_END
}

When i build library, it seems to be OK but when i build test, 
a lot of warnings&errors occur:
- warning: no memory region specified for section ... in context.o
- undefined reference to ... in vector.o
I think that some sections are not define (bss,data, ..) because when
i display the memory layout with Configtool, i don't see them.
I don't know what is wrong in my rom.ldi.
(i use eCos1.3.1 , Configtools1.3.1.3, Windows2000).
Thank you for you help,
aR

------------------------------------------
Anil RAMA - TEAMLOG
10, rue Lavoisier
38330 MONTBONNOT
Web : http://www.teamlog.fr
Tél. : +33(0)4 76 61 62 62





_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France



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