boot: Add support for VBE for the OS

When booting an OS it is useful to be able to read devicetrees provided
by the OEM, from a separate FIT to the OS.

Add a new method which supports this, along with the usual A/B/recovery
flows, using a state file on the boot device.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-02 10:02:27 +12:00
parent 5efe688884
commit 74a49fcd3d
8 changed files with 334 additions and 2 deletions

View File

@@ -818,6 +818,18 @@ config BOOTMETH_VBE_ABREC
verification step, a recovery image is booted. This method will
eventually provide rollback protection as well.
config BOOTMETH_VBE_ABREC_OS
bool "Bootdev support for VBE 'a/b/recovery' method for the OS"
imply SPL_CRC8
imply VPL_CRC8
help
Enables support for VBE 'abrec' boot. This allows updating one of an
A or B Operating System in boot media such as MMC. The new OS is
tried and if it boots, it is copied to the other image, so that both
A and B have the same version. If neither firmware image passes the
verification step, a recovery image is booted. This method will
eventually provide rollback protection as well.
if BOOTMETH_VBE_SIMPLE
config BOOTMETH_VBE_SIMPLE_OS