Commit 708d7eac574850985f61e2dbf8d0da2caaa65dce

Authored by Ye Li
1 parent ed6898da1c

MLK-20664-3 imx8m: Enable redundant offset for SPL NAND FIT

The new uuu will change to burn entire boot image to nandfit mtdpart not
only the FIT image. We enable REDUND offset configuration here, so that SPL will
try to find FIT header at two locations: the begin of nandfit mtdpart and
the 0x57c00 offset of nandfit mtdpart. This helps to be compatible with both
old and new uuu.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 48d58d07b9005c94c62fcdc345e65b0a8236d378)

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

include/configs/imx8mq_arm2.h
... ... @@ -68,6 +68,10 @@
68 68 #define CONFIG_SPL_NAND_BASE
69 69 #define CONFIG_SPL_NAND_IDENT
70 70 #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x4000000 /* Put the FIT out of first 64MB boot area */
  71 +
  72 +/* Set a redundant offset in nand FIT mtdpart. The new uuu will burn full boot image (not only FIT part) to the mtdpart, so we check both two offsets */
  73 +#define CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND \
  74 + (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - 0x8400)
71 75 #endif
72 76 #define CONFIG_SPL_DMA_SUPPORT
73 77