]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Fix invalid UART kwbimage v1 headersz
authorPali Rohár <pali@kernel.org>
Thu, 23 Mar 2023 19:57:52 +0000 (20:57 +0100)
committerStefan Roese <sr@denx.de>
Fri, 24 Mar 2023 12:13:35 +0000 (13:13 +0100)
commit848d9a5eaaf82d8394b6fab1bda6dd3eb7c5ce45
treecf11eb62caac13127c41d12abf495e59a80fd3fe
parent12e79fbfffa2323679059898414e76caeffa3364
tools: kwboot: Fix invalid UART kwbimage v1 headersz

Ensure that UART aligned header size is always stored into kwbimage v1
header. It is needed for proper UART booting. Calculation of headersz field
was broken in commit d656f5a0ee22 ("tools: kwboot: Calculate real used
space in kwbimage header when calling kwboot_img_grow_hdr()") which
introduced optimization of kwboot_img_grow_hdr() function.

Fixes: d656f5a0ee22 ("tools: kwboot: Calculate real used space in kwbimage header when calling kwboot_img_grow_hdr()")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c