aboutsummaryrefslogtreecommitdiff
path: root/board/thead/light-c910/sec_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/thead/light-c910/sec_check.c')
-rw-r--r--board/thead/light-c910/sec_check.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/board/thead/light-c910/sec_check.c b/board/thead/light-c910/sec_check.c
index af44ec9b..847e9ef5 100644
--- a/board/thead/light-c910/sec_check.c
+++ b/board/thead/light-c910/sec_check.c
@@ -130,16 +130,18 @@ void dump_image_header_info(long addr)
int verify_customer_image(img_type_t type, long addr)
{
int ret;
-
+
/* Double check image number */
- if (image_have_head(addr) == 0)
+ if (image_have_head(addr) == 0) {
+ printf("error: image has no secure header\r\n");
return -1;
+ }
/* Dump image header information here */
dump_image_header_info(addr);
/* Call customer image verification function */
- if ((type == T_TF) || (type == T_TEE) || (type == T_KRLIMG)) {
+ if ((type == T_TF) || (type == T_TEE) || (type == T_KRLIMG) || (type == T_DTB) || (type == T_SBMETA)) {
ret = csi_sec_custom_image_verify(addr, UBOOT_STAGE_ADDR);
if (ret) {
printf("Image(%d) is verified fail, Please go to check!\n\n", type);