]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: bootefi: Don't show usage help if EFI binary fails.
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Mar 2024 09:36:43 +0000 (10:36 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 21 Mar 2024 06:28:43 +0000 (07:28 +0100)
commit46e5dd661c82a99b9ac8d302cbbc575f74b6b08b
tree45d51d56292750d61fd7b304525ad4f7716cd0f8
parent6f90a05a04d8377ae85f9aba8fc03955da72eba0
cmd: bootefi: Don't show usage help if EFI binary fails.

If an EFI binary returns an error code EFI_INVALID_PARAMETER, we show the
usage help for the bootefi command:

    Shell> exit 0x8000000000000002
    ## Application failed, r = 2
    bootefi - Boots an EFI payload from memory

    Usage:
    bootefi <image address>[:<image size>] [<fdt address>]
      - boot EFI payload
    bootefi bootmgr [fdt address]
      - load and boot EFI payload based on BootOrder/BootXXXX variables.

        If specified, the device tree located at <fdt address> gets
        exposed as EFI configuration table.

This makes no sense.

Fixes: 296faf4f7ef1 ("cmd: bootefi: re-organize do_bootefi()")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/bootefi.c