]> git.dujemihanovic.xyz Git - u-boot.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)
commitf8017c37799c78f158b405b82f18704aa75b884d
treee7c488392d76a5208f2acd9603fa1db430f663e3
parente8e9c6f48400989c5fc54467576f8d535bd713e6
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