[coreboot] Linux-kernel as payload

John Lewis jlewis at johnlewis.ie
Mon Sep 8 12:09:37 CEST 2014


Hi,

You have to use mkelfImage to convert the bzImage to elf format. It's in 
the utils folder of coreboot.

John.

On 08/09/14 09:25, Werner Zeh wrote:
> Hi.
> I try to use the linux kernel as payload in coreboot. I use a bzImage of
> the kernel.
> When I compile, I get the following message:
> OBJCOPY    cpu/x86/smm/smm_wrap.ramstage.o
>      CC         generated/ramstage.o
>      CC         cbfs/fallback/ramstage.debug
>      OBJCOPY    cbfs/fallback/ramstage.elf
>      CBFS       coreboot.rom
>      PAYLOAD    ../bzImage (compression: none)
> E: The stage file is not in ELF format!
>      CONFIG     .config
>      CBFSPRINT  coreboot.rom
> coreboot.rom: 4096 kB, bootblocksize 848, romsize 4194304, offset 0x0
> alignment: 64 bytes
> Name                           Offset     Type         Size
> fallback/romstage              0x0        stage        20906
> fallback/ramstage              0x5200     stage        62994
> fallback/payload               0x14880    payload      1392465
> config                         0x168840   raw          3366
> (empty)                        0x1695c0   null         2713240
> Am I wrong assumimg that the image may be a real (compressed) bzImage?
> Should I use a vmlinuz better? Or is my bzImage is not suitable (maybe
> parts of it are compressed or so)?
> Thanks.
>
>



More information about the coreboot mailing list