[PATCH] scripts: imx-usb-loader: Accept new header version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <s.hauer@xxxxxxxxxxxxxx>
---
 scripts/imx/imx-usb-loader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 70883bf883..8cc34b99eb 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -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;
 	}
 
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux