]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Add command to enable setting of bootmeth specific properties
authorMartyn Welch <martyn.welch@collabora.com>
Wed, 9 Oct 2024 13:15:40 +0000 (14:15 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 16:24:27 +0000 (10:24 -0600)
commit3809fd35a5dbdbd62043ba0a72c3f37f58e69f9d
treeb7a3cbf6da74d598d2e8529aaf18a30ce3ccba57
parent8ba82a91b3aa615fb6148ecfa2af4e91a28659ae
bootstd: Add command to enable setting of bootmeth specific properties

We have previously added logic to allow a "fallback" option to be
specified in the extlinux configuration. Provide a command that allows
us to set this as the preferred default option when booting.

Combined with the bootcount functionality, this allows the "altbootcmd"
to provide a means of falling back to a previously known good state
after a failed update. For example, if "bootcmd" is set to:

    bootflow scan -lb

We would set "altbootcmd" to:

    bootmeth set extlinux fallback 1; bootflow scan -lb

Causing the boot process to boot from the fallback option.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
boot/bootmeth-uclass.c
boot/bootmeth_extlinux.c
cmd/bootmeth.c
doc/develop/bootstd/overview.rst
doc/usage/cmd/bootmeth.rst
include/bootmeth.h