Commit 48d58d07b9005c94c62fcdc345e65b0a8236d378
1 parent
ca7ebfcf07
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
4 other branches
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>
Showing 2 changed files with 8 additions and 0 deletions Side-by-side Diff
include/configs/imx8mm_evk.h
... | ... | @@ -66,6 +66,10 @@ |
66 | 66 | #define CONFIG_SPL_DMA_SUPPORT |
67 | 67 | #define CONFIG_SPL_NAND_MXS |
68 | 68 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x4000000 /* Put the FIT out of first 64MB boot area */ |
69 | + | |
70 | +/* 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 */ | |
71 | +#define CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND \ | |
72 | + (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - 0x8400) | |
69 | 73 | #endif |
70 | 74 | |
71 | 75 | #endif |
include/configs/imx8mq_arm2.h
... | ... | @@ -67,6 +67,10 @@ |
67 | 67 | #define CONFIG_SPL_DMA_SUPPORT |
68 | 68 | #define CONFIG_SPL_NAND_MXS |
69 | 69 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x4000000 /* Put the FIT out of first 64MB boot area */ |
70 | + | |
71 | +/* 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 */ | |
72 | +#define CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND \ | |
73 | + (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - 0x8400) | |
70 | 74 | #endif |
71 | 75 | |
72 | 76 | #endif /* CONFIG_SPL_BUILD*/ |