sunxi/nand: change BLOCK_SIZE in mksunxiboot to match NAND block size
authorDaniel Kochmański <dkochmanski@turtle-solutions.eu>
Tue, 26 May 2015 15:00:39 +0000 (17:00 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 29 May 2015 11:46:36 +0000 (13:46 +0200)
commit1f6f61fe4c7c9637e2c8b2960a08f106fbe01134
tree831f31393fc3e80501cd64f2388832635fafaf0d
parent9d1111b70e20fc9dd4e45ada9a921da5591ee74a
sunxi/nand: change BLOCK_SIZE in mksunxiboot to match NAND block size

This change is necessary to calculate correct checksum for NAND
boot. Works both for MMC and NAND. Without it BROM rejects boot image
as invalid (bad checksum). (Changes block size from 0x200 to 0x2000).

Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
Signed-off-by: Roy Spliet <r.spliet@ultimaker.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
tools/mksunxiboot.c