Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: c5dfd62aeeb0d4f24d3e41b4f6631f2bd934f654
https://github.com/tianocore/edk2/commit/c5dfd62aeeb0d4f24d3e41b4f6631f2bd934f654
Author: Patrick Rudolph <[email protected]>
Date: 2026-10-08 (Thu, 08 Oct 2026)
Changed paths:
M UefiPayloadPkg/Include/Coreboot.h
M UefiPayloadPkg/Include/Library/BlParseLib.h
M UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
M UefiPayloadPkg/Library/SblParseLib/SblParseLib.c
M UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
Log Message:
-----------
UefiPayloadPkg: Set bootmode from bootloader
The coreboot bootloader always passes information about the boot mode
since commit [1]. Use the new coreboot table when present to update
the bootmode. When the table is not present or contains unknown values
the bootmode is not updated.
This allows to support UEFI capsule updates that need the whole SPI flash
to be unlocked. Since this is also a security concern the payload
should never follow the regular boot flow, but reboot the system when done.
1: https://review.coreboot.org/c/coreboot/+/94094/
TEST=Can update the system using UEFI capsule on disk. coreboot detects the
capsule and unlocks the SPI flash, sets the boot mode to
LB_BOOT_MODE_FLASH_UPDATE and UefiPayload updates BootMode in the HOB
handoff table allowing the capsule update code to run.
Signed-off-by: Patrick Rudolph <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits