]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: nand: support redundant u-boot image
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Jun 2016 08:16:58 +0000 (10:16 +0200)
committerScott Wood <oss@buserror.net>
Mon, 20 Jun 2016 00:11:57 +0000 (19:11 -0500)
commit80ef700f8df1f85dd3b0880584e2e2a998a9b3dd
tree05a15967c467ee18b442443fb2de292b3b8ecc73
parent494e108651a3c55b85d060202e941e4d8d68ce5e
spl: nand: support redundant u-boot image

On modern NAND it's more than recommended to have a backup copy of the
u-boot binary to recover from corruption: bitflips are quite common on
MLC NANDs, and the read-disturbance will corrupt your u-boot partitition
more quickly than what you would see on an SLC NAND.

Add an extra Kconfig option to specify the offset of the redundant u-boot
image.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
[scottwood: added ifdef to fix build break]
Signed-off-by: Scott Wood <oss@buserror.net>
common/spl/spl_nand.c
drivers/mtd/nand/Kconfig