Hi Michal!
You need to reserve some CMOS memory for vboot context, set default vboot configuration in Kconfig of your platform and prepare a flashmap layout file (*.fmd) - its the simplest case. Additionally you should have at least one RW slot by selecting CONFIG_VBOOT_SLOTS_RW_A.
Could you please advise how to implement the flashmap layout file to reserve space for the RW partition? When coreboot rom is compile without VBOOT I get the next info:
Name Offset Type Size Comp cbfs master header 0x0 cbfs header 32 none fallback/romstage 0x80 stage 32260 none fallback/ramstage 0x7f00 stage 64238 none cmos_layout.bin 0x17a40 cmos_layout 1516 none fallback/dsdt.aml 0x18080 raw 6656 none (empty) 0x19b00 null 25240 none apu/amdfw 0x1fdc0 raw 560128 none pci1002,9874.rom 0xa8a00 optionrom 64512 none fallback/payload 0xb8680 simple elf 2627296 none (empty) 0x339dc0 null 2908120 none AGESA 0x5ffdc0 raw 690436 none (empty) 0x6a8740 null 1405592 none bootblock 0x7ffa00 bootblock 944 none
and the default fmd map:
# layout for firmware residing at top of 4GB address space # +-------------+ <-- 4GB - ROM_SIZE / start of flash # | unspecified | # +-------------+ <-- 4GB - BIOS_SIZE # | FMAP | # +-------------+ <-- 4GB - BIOS_SIZE + FMAP_SIZE # | CBFS | # +-------------+ <-- 4GB / end of flash
FLASH@4286578688 0x800000 { BIOS@0 8388608 { FMAP@0 0x200 COREBOOT(CBFS)@512 8388096 } }
Thanks! Jorge