MLK-16793: imx8qxp: config: fix the nand partition size and env offset
authorHan Xu <han.xu@nxp.com>
Thu, 9 Nov 2017 23:02:20 +0000 (17:02 -0600)
committerHan Xu <han.xu@nxp.com>
Fri, 10 Nov 2017 01:45:44 +0000 (19:45 -0600)
considering the boot binary/kernel size becomes larger, increase the
boot and kernel partition size and accordingly change the offset when
reading data.
Also changed the extra Android misc partition size to 8M which is block
size aligned.

Signed-off-by: Han Xu <han.xu@nxp.com>
include/configs/imx8qxp_arm2.h

index 4fcf4d2..54c03cc 100644 (file)
@@ -94,7 +94,7 @@
        "m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0\0" \
 
 #ifdef CONFIG_NAND_BOOT
-#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),1m(misc),-(rootfs) "
+#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:128m(boot),32m(kernel),16m(dtb),8m(misc),-(rootfs) "
 #else
 #define MFG_NAND_PARTITION ""
 #endif
 
 #ifdef CONFIG_NAND_BOOT
 #define CONFIG_BOOTCOMMAND \
-       "nand read ${loadaddr} 0x4000000 0x800000;"\
-       "nand read ${fdt_addr} 0x5000000 0x100000;"\
+       "nand read ${loadaddr} 0x8000000 0x1400000;"\
+       "nand read ${fdt_addr} 0xA000000 0x100000;"\
        "booti ${loadaddr} - ${fdt_addr}"
 #else
 #define CONFIG_BOOTCOMMAND \