]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitbb360d96ecae6cf6f5ad6f9a5e92528fffd4131a
treea23e3e124c1c39850207138938911e0e47a4becd
parent77bf89a1f0152d1536e76e9c4049f45e9254b856
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