MLK-23588: configs: change nand boot partition from mtd index to partition name
authorHan Xu <han.xu@nxp.com>
Fri, 13 Mar 2020 19:56:47 +0000 (14:56 -0500)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 10:25:55 +0000 (03:25 -0700)
The previous NAND boot looking the rootfs by the mtd index, which is
easy get impacted by other mtd devices, such as SPI NOR. Changed it to
the unique nand rootfs partition name can avoid this issue.

Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit a69e5febae6c1f98b2f2304501ca8fed085299b8)
(cherry picked from commit e2ed53bd9add7effac9fe620db4a79d7aee39205)

include/configs/imx8mm_evk.h
include/configs/mx6sabre_common.h
include/configs/mx6sxsabreauto.h
include/configs/mx6ul_14x14_evk.h
include/configs/mx6ullevk.h
include/configs/mx7dsabresd.h

index c42a58a..e6c9aa2 100644 (file)
        "fdt_high=0xffffffffffffffff\0" \
        "mtdparts=" MFG_NAND_PARTITION "\0" \
        "console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200\0" \
-       "bootargs=console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200 ubi.mtd=5 "  \
+       "bootargs=console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200 ubi.mtd=nandrootfs "  \
                "root=ubi0:nandrootfs rootfstype=ubifs "                     \
                MFG_NAND_PARTITION \
                "\0" \
index 0fbdf17..2f54d5e 100644 (file)
@@ -92,7 +92,7 @@
        "tee_addr=0x20000000\0" \
        "fdt_high=0xffffffff\0"   \
        "console=" CONSOLE_DEV "\0" \
-       "bootargs=console=" CONSOLE_DEV ",115200 ubi.mtd=6 "  \
+       "bootargs=console=" CONSOLE_DEV ",115200 ubi.mtd=nandrootfs "  \
                "root=ubi0:nandrootfs rootfstype=ubifs "                     \
                MFG_NAND_PARTITION \
                "\0" \
index cbc7ead..5cd1bfa 100644 (file)
@@ -73,7 +73,7 @@
        "fdt_addr=0x83000000\0" \
        "fdt_high=0xffffffff\0"   \
        "console=ttymxc0\0" \
-       "bootargs=console=ttymxc0,115200 ubi.mtd=6 "  \
+       "bootargs=console=ttymxc0,115200 ubi.mtd=nandrootfs "  \
                "root=ubi0:nandrootfs rootfstype=ubifs "                     \
                MFG_NAND_PARTITION \
                "\0" \
index fc4eabb..1ac18a3 100644 (file)
@@ -91,7 +91,7 @@
        "fdt_high=0xffffffff\0"   \
        "tee_addr=0x84000000\0" \
        "console=ttymxc0\0" \
-       "bootargs=console=ttymxc0,115200 ubi.mtd=4 "  \
+       "bootargs=console=ttymxc0,115200 ubi.mtd=nandrootfs "  \
                "root=ubi0:rootfs rootfstype=ubifs "                 \
                BOOTARGS_CMA_SIZE \
                MFG_NAND_PARTITION \
index c8e2906..0bc6a04 100644 (file)
@@ -85,7 +85,7 @@
        "fdt_high=0xffffffff\0"   \
        "tee_addr=0x84000000\0" \
        "console=ttymxc0\0" \
-       "bootargs=console=ttymxc0,115200 ubi.mtd=4 "  \
+       "bootargs=console=ttymxc0,115200 ubi.mtd=nandrootfs "  \
                "root=ubi0:rootfs rootfstype=ubifs "                 \
                BOOTARGS_CMA_SIZE \
                MFG_NAND_PARTITION \
index 74cfcd3..496a1d5 100644 (file)
@@ -92,7 +92,7 @@
        "tee_addr=0x84000000\0" \
        "fdt_high=0xffffffff\0"   \
        "console=ttymxc0\0" \
-       "bootargs=console=ttymxc0,115200 ubi.mtd=4 "  \
+       "bootargs=console=ttymxc0,115200 ubi.mtd=nandrootfs "  \
                "root=ubi0:nandrootfs rootfstype=ubifs "                     \
                MFG_NAND_PARTITION \
                "\0" \