summaryrefslogtreecommitdiff
path: root/boot/vbe_common.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-26 11:43:29 -0700
committerTom Rini <trini@konsulko.com>2025-02-03 16:01:36 -0600
commitf1eb367d76c9b28053b3adcb6bdeb865c6eda5fd (patch)
tree676898552baf386cc0c4119ee4bf7edc1ba8aee0 /boot/vbe_common.c
parentf4415f2a375c6dab4b8b20a40d4c7ec15f1e951e (diff)
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>
Diffstat (limited to 'boot/vbe_common.c')
-rw-r--r--boot/vbe_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/vbe_common.c b/boot/vbe_common.c
index 801ab9da045..a86986d86e9 100644
--- a/boot/vbe_common.c
+++ b/boot/vbe_common.c
@@ -374,3 +374,8 @@ int vbe_read_fit(struct udevice *blk, ulong area_offset, ulong area_size,
return 0;
}
+
+ofnode vbe_get_node(void)
+{
+ return ofnode_path("/bootstd/firmware0");
+}