tools: imx8mimage: Keep IVT reserved1 field zero always
PATCH 1/1 tools: imx8mimage: Keep IVT reserved1 field zero always
Since fe8acf556c3 ("imx: HAB: Validate IVT before authenticating image") the U-Boot HAB implementation is checking whether reserved1 field in IVT is zero or not. In case the field is not zero, IVT validation fails. Stop setting IVT reserved1 field to non-zero in mkimage imx8m plugin, otherwise the validation cannot ever work.
Note that this only affects legacy boards which do not use binman.
--- tools/imx8mimage.c | 8 -------- 1 file changed, 8 deletions(-)
tools/imx8mimage.c +0 -8
@@ -505,14 +505,6 @@ void build_image(int ofd)exit (EXIT_FAILURE ); }else { sld_header_off = sld_src_off - rom_image_offset; -/* -* Record the second bootloader relative offset in -* image's IVT reserved1 -*/ -if (rom_version ==ROM_V1 ) { - imx_header[IMAGE_IVT_ID ].fhdr.reserved1 = - sld_header_off - header_image_off; - } sld_fd =open (sld_img,O_RDONLY |O_BINARY );if (sld_fd <0 ) { fprintf(stderr, "%s: Can't open: %s\n",
Signature · 1 line
2.35.1
PATCH 1/1 tools: imx8mimage: Keep IVT reserved1 field zero always
Quoted 10 lines
Since
fe8acf556c3("imx: HAB: Validate IVT before authenticating image") the U-Boot HAB implementation is checking whether reserved1 field in IVT is zero or not. In case the field is not zero, IVT validation fails. Stop setting IVT reserved1 field to non-zero in mkimage imx8m plugin, otherwise the validation cannot ever work.
Note that this only affects legacy boards which do not use binman.Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Stefano Babic <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================