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

Andrew Lunn andrew@lunn.ch
Wed Feb 22 21:22:00 GMT 2006


On Wed, Feb 22, 2006 at 09:09:27PM +0000, Warwick Brown wrote:
> 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

I don't see romfs anywhere in this patch.

> 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

This is a ram application linker script. 

Im guessing that Qiang used some other boot loader to load Redboot
into RAM.

If you want to directly boot RedBoot you are going to have to write
new linker scripts. Take a look at one of the other ARM9 platforms
include/pkgcong/mlt*rom.[ldi|h] files.

        Andrew

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



More information about the Ecos-discuss mailing list