[coreboot] [PATCH][RFC] A new way using a binary file to add-stage to a rom file on ARM
marcj303 at gmail.com
Thu Jul 21 16:58:50 CEST 2011
On Thu, Jul 21, 2011 at 4:01 AM, Hamo <hamo.by at gmail.com> wrote:
> On Thu, Jul 21, 2011 at 6:23 AM, Marc Jones <marcj303 at gmail.com> wrote:
>> Why would you exclude romstage? What will setup the RAM? bootblock? i
>> suspect that the stuff you are doing in bootblock should be done in
> Yes. I setup the RAM in the bootblock.
> 1. It is much easier setting up RAM than that on X86. We can do it in
> the bootblock.
> 2. We don't have romcc for ARM, so if we want to run the code written
> in C and compiled by GCC, we should have a stack. I use the RAM as a
> temp stack just as cache_as_ram.
> 3. If we boot from NAND Flash, most CPUs do like this:
> It copies the first sector of Nand Flash to its internal SRAM and
> passes control to it.
> The internal SRAM is too small to hold the whole romfile, even the
> bootblock+romstage. So we need to set up the RAM ASAP. U-boot does
> like this,too.
Thanks, if ram is setup in the bootblock, you should be able to
decompress and copy ramstage to memory to run it. What is the issue
More information about the coreboot