[coreboot] [PATCH][RFC] A new way using a binary file to add-stage to a rom file on ARM

Marc Jones marcj303 at gmail.com
Tue Jul 19 19:19:09 CEST 2011


Hamo,

On Mon, Jul 18, 2011 at 6:38 PM, Hamo <hamo.by at gmail.com> wrote:
> On Tue, Jul 19, 2011 at 2:00 AM, Patrick Georgi <patrick at georgi-clan.de> wrote:
>> As I understand it, you're actually doing 1:1 mapping on your system.
>> The "only" issue is that on your platform the ROM is mapped at 64k
>> (instead of 0, what the ARM support code in cbfstool assumes right now).
>>
>> No need to add special cases here.
>>
> Yes. It is 1:1 mapping. But the rombase is variable from one board to another.
> I find a problem when using the formal parse_elf_to_stage function
> that it can not
> copy the right binary code from the elf file to the rom, I think it is
> related to the
> address map of X86 but I could not find the real problem. So I moved
> to using bin
> file to add-stage to the rom file. Could you help me to figure out the
> problem and
> the way to using an elf file?
>

Can you describe the problem further? When you add an elf file cbfs
handles the elf header removal and adding the cbfs header information.
Are you using the cbfs functions to locate and run the binary? What is
the failure?


Marc



-- 
http://se-eng.com




More information about the coreboot mailing list