vbe: Add an implementation of VBE-ABrec
authorSimon Glass <sjg@chromium.org>
Sun, 26 Jan 2025 18:43:29 +0000 (11:43 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 3 Feb 2025 22:01:36 +0000 (16:01 -0600)
commitf1eb367d76c9b28053b3adcb6bdeb865c6eda5fd
tree676898552baf386cc0c4119ee4bf7edc1ba8aee0
parentf4415f2a375c6dab4b8b20a40d4c7ec15f1e951e
vbe: Add an implementation of VBE-ABrec

So far only VBE-simple is implemented in U-Boot. This supports a single
image which can be updated in situ.

It is often necessary to support two images (A and B) so that the board
is not bricked if the update is interrupted or is bad.

In some cases, a non-updatable recovery image is desirable, so that the
board can be returned to a known-good state in the event of a serious
failure.

Introduce ABrec which provides these features. It supports three
independent images and the logic to select the desired one on boot.

While we are here, fix a debug message to indicate the function it
called. Provide a maintainers entry for VBE.

Note that fwupdated only supports VBE-simple so far, but supports for
ABrec will appear in time.

Signed-off-by: Simon Glass <sjg@chromium.org>
MAINTAINERS
boot/Kconfig
boot/Makefile
boot/vbe_abrec.c [new file with mode: 0644]
boot/vbe_abrec.h [new file with mode: 0644]
boot/vbe_abrec_fw.c [new file with mode: 0644]
boot/vbe_common.c
boot/vbe_common.h
include/vbe.h