nxp-imx / mfgtools

Freescale/NXP I.MX Chip image deploy tools.
BSD 3-Clause "New" or "Revised" License
523 stars 293 forks source link

SDP Barebox Autodetection #398

Closed bith3ad closed 8 months ago

bith3ad commented 8 months ago

We do already support the -barebox switch, so the user can force the barebox image handling. Add a autodetection mechanism to make it even more user friendly. The autodetection is based on the fact, that barebox does add an "barebox" string at offset 0x20 to the image. If this string is found we can assume that user provided file is an barebox image.