summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorYu Shan <shanyu@google.com>2018-04-24 19:51:50 +0800
committerJi Luo <ji.luo@nxp.com>2018-08-20 21:25:45 +0800
commitcce0bd7463b07facd9a76c045095327204600608 (patch)
treed6c69e817c6ea314e725d7ed8899742805483431 /cmd
parent65955f553b3742f433d4d8d6e94f93bc8c6ee0fb (diff)
[iot] Check Trusty OS available before load it
When SECURE_BOOT enabled, use HAB verify Trusty OS image or check its IVT available. If not available, bootloader consider the TOS lost unexpected and wipe all data on disk. Then enter limited fastboot mode. In this situation only bootloader and tos is able to flash, gpt won't be available for external. Change-Id: I04f037f5bd5a51f53174b5b99b2c3053182a8fcf Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/bootm.c b/cmd/bootm.c
index 5252e61e04..7fa0de06fc 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -174,12 +174,14 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
#ifdef CONFIG_ANDROID_BOOT_IMAGE
case IMAGE_FORMAT_ANDROID:
- /* Do this authentication in boota command */
+ default:
+ /* Android use AVB verify. Also here we cannot get IMAGE_FORMAT_ANDROID */
break;
-#endif
+#else
default:
printf("Not valid image format for Authentication, Please check\n");
return 1;
+#endif /* CONFIG_ANDROID_BOOT_IMAGE */
}
#endif
#endif