From: Yi Liu Date: Wed, 30 Mar 2022 10:05:59 +0000 (+0800) Subject: tools: mkimage: No need to verify_header for header_v2 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=3548903fc8eafa469f57e3dd11cf0046f2034699;p=u-boot.git tools: mkimage: No need to verify_header for header_v2 rockchip header_v2 do not have a spl_hdr, so remove the verify. Signed-off-by: Yi Liu Signed-off-by: Kever Yang --- diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676c19..ff62c75caa 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -450,6 +450,10 @@ int rkcommon_verify_header(unsigned char *buf, int size, struct spl_info *img_spl_info, *spl_info; int ret; + /* spl_hdr is abandon on header_v2 */ + if ((*(uint32_t *)buf) == RK_MAGIC_V2) + return 0; + ret = rkcommon_parse_header(buf, &header0, &img_spl_info); /* If this is the (unimplemented) RC4 case, then rewrite the result */