diff options
Diffstat (limited to 'cmd/booti.c')
-rw-r--r-- | cmd/booti.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/booti.c b/cmd/booti.c index e770c21e..4d85cb97 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -119,12 +119,14 @@ U_BOOT_CMD( #endif -#if CONFIG_IS_ENABLED(LIGHT_SEC_BOOT_WITH_VERIFY_VAL_A) || CONFIG_IS_ENABLED(LIGHT_SEC_BOOT_WITH_VERIFY_VAL_B) || CONFIG_IS_ENABLED(LIGHT_SEC_BOOT_WITH_VERIFY_ANT_EVT) +#if CONFIG_IS_ENABLED(LIGHT_SEC_BOOT_WITH_VERIFY_VAL_A) || CONFIG_IS_ENABLED(LIGHT_SEC_BOOT_WITH_VERIFY_VAL_B) || CONFIG_IS_ENABLED(LIGHT_SEC_BOOT_WITH_VERIFY_ANT_REF) extern int light_secboot(int argc, char * const argv[]); int do_secboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - if (light_secboot(argc, argv) != 0) - return -1; + if (light_secboot(argc, argv) != 0) { + run_command("reset", 0); + return -1; + } return 0; } |