display5: spl: Check return code of the env_* functions
Force booting through u-boot proper when environment error encountered (as a result of either broken SPI-NOR or erased envs). Signed-off-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
parent
2f4372a101
commit
e087905a48
@ -210,8 +210,8 @@ void board_boot_order(u32 *spl_boot_list)
|
||||
/* 'fastboot' */
|
||||
const char *s;
|
||||
|
||||
env_init();
|
||||
env_load();
|
||||
if (env_init() || env_load())
|
||||
return;
|
||||
|
||||
s = env_get("BOOT_FROM");
|
||||
if (s && !bootcount_error() && strcmp(s, "ACTIVE") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user