]> git.baikalelectronics.ru Git - uboot.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)
commit94e3df5843149ace304316f704d2f512cf9fcd23
treecf11eb62caac13127c41d12abf495e59a80fd3fe
parentfba5573e7835cd8d59cda49e22bc7bfe41f4c69b
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 a075a68b1344 ("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: a075a68b1344 ("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