[PATCH 3/4] bootstd: Add command to enable setting of bootmeth specific properties

Simon Glass sjg at chromium.org
Wed Oct 9 03:51:01 CEST 2024


On Wed, 2 Oct 2024 at 07:26, Martyn Welch <martyn.welch at collabora.com> wrote:
>
> 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.
>
> Signed-off-by: Martyn Welch <martyn.welch at collabora.com>
> ---
>  boot/bootmeth-uclass.c   | 25 ++++++++++++++
>  boot/bootmeth_extlinux.c | 73 +++++++++++++++++++++++++++++++++++++++-
>  cmd/bootmeth.c           | 25 ++++++++++++--
>  include/bootmeth.h       | 31 +++++++++++++++++
>  4 files changed, 151 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

But please update the documentation too - for the command and for the
new bootstd feature


More information about the U-Boot mailing list