tools: kwbimage: Align final UART image to 128 bytes
authorPali Rohár <pali@kernel.org>
Mon, 8 Nov 2021 17:12:46 +0000 (18:12 +0100)
committerStefan Roese <sr@denx.de>
Wed, 10 Nov 2021 11:08:06 +0000 (12:08 +0100)
commit188099ed7ff4f606a2a74ac82350a78c26bdfe2c
treebe9b2de6957d84c254d65d54eec71db0678761cf
parent56087c1b4dd4bd976b072f069dc4c5f51b3f6f46
tools: kwbimage: Align final UART image to 128 bytes

xmodem block size is 128 bytes, therefore it is possible to transfer only
images with size multiple of 128 bytes. kwboot automatically pads image
with zero bytes at the end to align it to 128 bytes boundary.

Do this padding when generating image to allow uploading with other xmodem
tools or older kwboot versions.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c