mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
boot: Add logic to enable booting from fallback option
The "fallback" extlinux config option allows us to set an alternative default boot option for when it has been detected that the default is failing. Implement the logic required to boot from this option when desired. Signed-off-by: Martyn Welch <martyn.welch@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -138,7 +138,7 @@ int pxe_get(ulong pxefile_addr_r, char **bootdirp, ulong *sizep, bool use_ipv6)
|
||||
int i;
|
||||
|
||||
if (pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL, false,
|
||||
env_get("bootfile"), use_ipv6))
|
||||
env_get("bootfile"), use_ipv6, false))
|
||||
return -ENOMEM;
|
||||
|
||||
if (IS_ENABLED(CONFIG_BOOTP_PXE_DHCP_OPTION) &&
|
||||
@@ -288,7 +288,7 @@ do_pxe_boot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
}
|
||||
|
||||
if (pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL, false,
|
||||
env_get("bootfile"), use_ipv6)) {
|
||||
env_get("bootfile"), use_ipv6, false)) {
|
||||
printf("Out of memory\n");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user