mx6: tqma6: add rootfsmode environment for mmc / sd
authorMarkus Niebel <Markus.Niebel@tq-group.com>
Fri, 3 Feb 2017 15:14:01 +0000 (16:14 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 19 Feb 2017 16:16:51 +0000 (17:16 +0100)
Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
include/configs/tqma6.h

index 874b44b..311221d 100644 (file)
        "cma_size="__stringify(TQMA6_CMA_SIZE)"\0"                             \
        "fdt_high=0xffffffff\0"                                                \
        "initrd_high=0xffffffff\0"                                             \
+       "rootfsmode=ro\0"                                                      \
        "addcma=setenv bootargs ${bootargs} cma=${cma_size}\0"                 \
        "addtty=setenv bootargs ${bootargs} console=${console},${baudrate}\0"  \
        "addfb=setenv bootargs ${bootargs} "                                   \
        "mmcblkdev=0\0"                                                        \
        "mmcargs=run addmmc addtty addfb addcma\0"                             \
        "addmmc=setenv bootargs ${bootargs} "                                  \
-               "root=/dev/mmcblk${mmcblkdev}p${mmcpart} rw rootwait\0"        \
+               "root=/dev/mmcblk${mmcblkdev}p${mmcpart} ${rootfsmode} "       \
+               "rootwait\0"                                                   \
        "mmcboot=echo Booting from mmc ...; "                                  \
                "setenv bootargs; "                                            \
                "run mmcargs; "                                                \