[PATCH u-boot-marvell 09/11] tools: kwbimage: Fill the real header size into the main header
Pierre Bourdon
delroth at gmail.com
Sat Dec 25 19:06:13 CET 2021
On Sat, Dec 25, 2021 at 6:57 PM Pali Rohár <pali at kernel.org> wrote:
> Hello! I'm using this patch for more than month and I have not seen any
> boot issue related to this patch A385 board.
FWIW I'm testing this on a Prestera board, so Armada XP based.
> Just moving "main_hdr->checksum = image_checksum8(main_hdr, headersz);"
> after the "main_hdr->headersz_msb = (headersz & 0xFFFF0000) >> 16;"
> should be enough. Are you going to prepare a fixup for master branch?
I've actually tested this earlier -- csum8 works, but csum32 still
doesn't pass in kwboot / mkimage. Note that I haven't checked whether
the hardware accepts it (I know it didn't like the broken csum8), so
this could be that the csum32 verification code is not tolerant to
your modified headersz.
Thanks for the really quick response!
Best,
--
Pierre Bourdon <delroth at gmail.com>
Software Engineer @ Zürich, Switzerland
https://delroth.net/
More information about the U-Boot
mailing list