]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwbimage: Fix checksum calculation for v1 images
authorPierre Bourdon <delroth@gmail.com>
Sat, 25 Dec 2021 19:50:19 +0000 (20:50 +0100)
committerStefan Roese <sr@denx.de>
Wed, 5 Jan 2022 15:31:58 +0000 (16:31 +0100)
commit9916b58b7b81e7c954b8be6476515506f147c9e2
tree126947ea7614970b1e7d8bb889a626a00222651b
parent97cde723769de144229ab24606e372218573ed88
tools: kwbimage: Fix checksum calculation for v1 images

Recent changes caused fields in the image main header to be modified
after the header checksum had already been computed. Move the checksum
computation to once again be the last operation performed on the header.

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