scripts: imx-usb-loader: Accept new header version
Sascha Hauer
maintainerPATCH 1/1 scripts: imx-usb-loader: Accept new header version
U-Boot generates images with the header version set to 0x41 instead of 0x40. We can accept them as well.
Signed-off-by Sascha Hauer <[email protected]>
--- scripts/imx/imx-usb-loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/imx/imx-usb-loader.c +2 -1
@@ -1228,7 +1228,8 @@ static int is_header(const unsigned char *p)return 1 ;break ;case HDR_MX53 : -if (hdr->header.tag ==TAG_IVT_HEADER && hdr->header.version ==IVT_VERSION ) +if (hdr->header.tag ==TAG_IVT_HEADER && + (hdr->header.version ==IVT_VERSION || hdr->header.version ==0x41 ))return 1 ; }
Signature · 7 lines
2.25.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox