mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -120,6 +120,7 @@ int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length,
|
||||
int allexcept);
|
||||
int nand_get_lock_status(struct mtd_info *mtd, loff_t offset);
|
||||
|
||||
u32 nand_spl_adjust_offset(u32 sector, u32 offs);
|
||||
int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst);
|
||||
int nand_spl_read_block(int block, int offset, int len, void *dst);
|
||||
void nand_deselect(void);
|
||||
|
Reference in New Issue
Block a user