tools: kwbimage: Align SPI and NAND images to 256 bytes
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:13:57 +0000 (11:13 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:31 +0000 (09:49 +0200)
commitc934aad06c8df5e95af4c461bf3d62f7c95169a0
treea23e3e124c1c39850207138938911e0e47a4becd
parent37cb9c15d70d638d77bf9b8e50e06132efea7cff
tools: kwbimage: Align SPI and NAND images to 256 bytes

Writing into SPI NOR and NAND memory can be done only in 256 bytes long
blocks. Align final image size so that when it is burned into SPI NOR or
NAND memory via U-Boot's commands (sf or mtd), we can use the $filesize
variable directly as the length argument.

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