]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwbimage: Fix invalid UART kwbimage v1 headersz
authorPali Rohár <pali@kernel.org>
Thu, 23 Mar 2023 19:57:51 +0000 (20:57 +0100)
committerStefan Roese <sr@denx.de>
Fri, 24 Mar 2023 12:13:14 +0000 (13:13 +0100)
commitfba5573e7835cd8d59cda49e22bc7bfe41f4c69b
treeec999e5b38fcbd5821fa492caa2a2988d3906227
parent4e68a9da4096142608016f97265e25fc3f33d7c5
tools: kwbimage: Fix invalid UART kwbimage v1 headersz

Armada 385 BootROM ignores low 7 bits of headersz when parsing kwbimage
header of UART type, which effectively means that headersz is rounded down
to multiply of 128 bytes. For all other image types BootROM reads and use
all bits of headersz. Therefore fill into UART type of kwbimage v1 headersz
aligned to 128 bytes.

Fixes: bb79e11f257d ("tools: kwbimage: Fill the real header size into the main header")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c