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]

Re: Building redboot ROM image


On Tue, 2005-08-16 at 07:37 +0100, Harish Kulkarni wrote:
> Thanks Gary Thomas,
> 
> In leon code we found only the data section is copied
> from ROM to RAM in ROM type start-up, which means rest
> of all the sections including vectors, text will get
> space in ROM and will not get relocated.
> 
> Relocating from ROM to RAM, including vectors, text,
> and other sections would reduce the execution time
> required, which is a MUST.
> 
> Is the approach of relocating sections (all) from ROM
> to RAM is generic or specific to processor OR board we
> use? ( other then changes mem-maps).
> 
> If it's generic could you redirect me to such a piece
> of code, which is written and implemented for eCos
> porting, i prefer it to be specific to leon.
> 

Support for ROMRAM is platform specific I'm afraid.  You could
look at some other platforms to see how it's done there.  Sadly,
there are no SPARC platforms which use this, so you'll have to
look elsewhere (ARM, PowerPC and MIPS all support this mode).

> Harish
> 
> 
> 
> --- Gary Thomas <gary@mlbassoc.com> wrote:
> 
> > On Mon, 2005-08-15 at 19:55 +0100, Harish Kulkarni
> > wrote:
> > > Hello,
> > > 
> > > Having tuff time with rom based redboot image,
> > please
> > > redirect me to mem-map file and section of code
> > which
> > > does copy from rom to ram?
> > > 
> > > Just by coping data section from rom to ram is
> > > suffient?
> > > 
> > > PS: Prefer it to be specific to leon.
> > 
> > In general, you'll need to select ROMRAM startup,
> > not just ROM.
> > ROM mode programs execute code directly from ROM
> > (FLASH) and
> > are not copied into RAM.
> > 
> > -- 
> >
> ------------------------------------------------------------
> > Gary Thomas                 |  Consulting for the
> > MLB Associates              |    Embedded world
> >
> ------------------------------------------------------------
> > 
> > 
> > -- 
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> > 
> > 
> 
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> 
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


-- 
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]