This is the mail archive of the ecos-discuss@sourceware.org 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]

Setting the start address (Was Re: problem with missing headers in ramfs for redboot )


Andrew Lunn wrote:
ramfs is not in the default template.
it appears to be in the default template for the Altera EPXA1, note I am using the patch as supplied by Quiang Huang in

http://sources.redhat.com/ml/ecos-patches/2003-07/msg00060.html

Whilst it's a bit dated, i dont think it clobbers any other files, and seems to otherwise compile OK (although I appreciate thats not to say it'll work).

I've already found+removed the linux start address dependancy, and should hopefully be well on my way.

My only remaining (current) problem appears to be that when I flash the device, it has a start address of 0x4000h (256K), when i would like it to have a start address of 0x0h.

I managed to track down the .rom_vectors 0x40000 reference in the target.ld linker script, but could not find it in the memory layout template, but im no expert in linker scripts.

Below is the memory layout, as specified in the mlt file. I noticed the reference to _rom_vectors (ram, 0x1f40000, AT (0x40000000)) but dont quite understand how it ends up as 0x4000.

Again, Many Thanks

Warwick

mlt_arm_arm9_epxa1_redboot.ldi:

MEMORY
{
   ram : ORIGIN = 0, LENGTH = 0x2000000
   rom : ORIGIN = 0x40000000, LENGTH = 0x800000
}

SECTIONS
{
   SECTIONS_BEGIN
   SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
   CYG_LABEL_DEFN(__heap1) = 0x2000;
   SECTION_rom_vectors (ram, 0x1f40000, AT (0x40000000))
   SECTION_text (ram, ALIGN (0x4), FOLLOWING (.rom_vectors))
   SECTION_fini (ram, ALIGN (0x4), FOLLOWING (.text))
   SECTION_rodata (ram, ALIGN (0x4), FOLLOWING (.fini))
   SECTION_rodata1 (ram, ALIGN (0x4), FOLLOWING (.rodata))
   SECTION_fixup (ram, ALIGN (0x4), FOLLOWING (.rodata1))
   SECTION_gcc_except_table (ram, ALIGN (0x4), FOLLOWING (.fixup))
   SECTION_data (ram, ALIGN (0x1), FOLLOWING (.gcc_except_table))
   SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
   SECTIONS_END
}




-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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