]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi_nand_spl: Be smarter about where to look for backup u-boot.bin
authorHans de Goede <hdegoede@redhat.com>
Mon, 31 Aug 2015 14:00:56 +0000 (16:00 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 29 Sep 2015 09:50:07 +0000 (11:50 +0200)
commit31c5614af406bdb686c305d707eee2a0898d864e
tree779f2000898ffa6339a026ca592a40b3948e6fa3
parentf3b589c09b43a231706f11ab391e5ea7f9670f12
sunxi_nand_spl: Be smarter about where to look for backup u-boot.bin

We know when u-boot is written to its own partition, in this case the
layout always is:

eb 0 spl
eb 1 spl-backup
eb 2 u-boot
eb 3 u-boot-backup

eb: erase-block

So if we cannot load u-boot from its primary offset we know exactly where
to look for it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/sunxi_nand_spl.c