Skip to contentSkip to conversation

scripts: imx-usb-loader: Accept new header version

PATCH New Sascha Hauer 1 participant 1 message Feb 12, 2020 Arm i.MX and Layerscape

lore
Share & tools
lore

Sascha Hauer

author maintainer
#0 lore raw

PATCH 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.

---
 scripts/imx/imx-usb-loader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/imx/imx-usb-loader.c +2 -1
index 70883bf883..8cc34b99eb 100644
@@ -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