This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Copy redboot from Rom to RAM
- From: "Agarwal, Lomesh" <lomesh dot agarwal at intel dot com>
- To: "'Gary Thomas'" <gthomas at redhat dot com>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 15 Apr 2002 16:21:34 -0700
- Subject: RE: [ECOS] Copy redboot from Rom to RAM
I am using IQ80310 board and it doesn't support ROMRAM startup type. So, to
convert ROM startup type to ROMRAM, what needs to be done?
One thing which I know is to copy whole RedBoot in RAM. I looked at mips
sources and it looks like that I should copy (starting address of ROM to
__ram_data_end) from flash to RAM. Right?
Is there anything which needs to be done?
Thanks,
Lomesh
-----Original Message-----
From: Gary Thomas [mailto:gthomas@redhat.com]
Sent: Sunday, April 14, 2002 4:40 AM
To: Agarwal, Lomesh
Cc: eCos Discuss
Subject: Re: [ECOS] Copy redboot from Rom to RAM
On Fri, 2002-04-12 at 14:20, Agarwal, Lomesh wrote:
> I am using ROM start up type. I saw in vectors.s that redboot is only
> copying exception handlers and rom_data_start - rom_data_end and then it
> zeors bss section.
> What about other sections?
> Shouldn't it text section also?
No, ROM startup mode means that the eCos program (or RedBoot) will
execute from the ROM - in situ.
If you want the program (eCos or RedBoot) to live in ROM but execute
from RAM, use ROMRAM startup mode (suitable for RedBoot or if your
embedded device only runs a single application) or put the application
into ROM/FLASH and use RedBoot to load it into RAM for execution.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss