]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Fix sending Kirkwood v0 images
authorPali Rohár <pali@kernel.org>
Fri, 5 Nov 2021 22:29:58 +0000 (23:29 +0100)
committerStefan Roese <sr@denx.de>
Wed, 10 Nov 2021 11:08:05 +0000 (12:08 +0100)
commit20a6585838ca5ae9fc101739ae97e3a101a1c555
treee7c488392d76a5208f2acd9603fa1db430f663e3
parent62d303bfe5daa194479acf84035e2806958ef2df
tools: kwboot: Fix sending Kirkwood v0 images

Properly calculate and align image header size to xmodem block size.

Kirkwood v0 images do not have stored total size of header in header
structure itself like it is for v1 images. So kwbheader_size() calculates
size by traversing image structure itself. Aligning is done in kwboot by
putting zero padding bytes between the header and data part.

Signed-off-by: Pali Rohár <pali@kernel.org>
Tested-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c