]> git.baikalelectronics.ru Git - uboot.git/commit
spl: fit: nand: fix fit loading in case of bad blocks
authorDario Binacchi <dariobin@libero.it>
Wed, 27 May 2020 11:56:20 +0000 (13:56 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jul 2020 21:21:46 +0000 (17:21 -0400)
commit350f034bd0b1974a8f2b41763a4f9044d8ed407f
tree980cba335253d0a47cdc06246d2f82cc18214ca8
parent62ffa420ee94b97b4507999ab9ee13d81602db15
spl: fit: nand: fix fit loading in case of bad blocks

The offset at which the image to be loaded from NAND is located is
retrieved from the itb header. The presence of bad blocks in the area
of the NAND where the itb image is located could invalidate the offset
which must therefore be adjusted taking into account the state of the
sectors concerned.

cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
common/spl/spl_nand.c
drivers/mtd/nand/raw/nand_spl_loaders.c
include/nand.h