MLK-17493: imx8qm: Fix mmcargs variable missing terminator
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 1 Feb 2018 16:07:29 +0000 (18:07 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Fri, 2 Feb 2018 12:58:02 +0000 (14:58 +0200)
Missing the '\0' means the value of the mmcargs value includes the
declaration of loadbootscript below.

Fixes: 432e5b434784 ("MLK-17205-3 video: imx: hdp: Adding configs for HDP firmware loading")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
include/configs/imx8qm_arm2.h
include/configs/imx8qm_mek.h

index 71ed053..ee17c17 100644 (file)
        "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
        "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
        "mmcautodetect=yes\0" \
-       "mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} " \
+       "mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}\0 " \
        "loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
        "bootscript=echo Running bootscript from mmc ...; " \
                "source\0" \
index b83b366..ab927b0 100644 (file)
        "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
        "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
        "mmcautodetect=yes\0" \
-       "mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} " \
+       "mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}\0 " \
        "loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
        "bootscript=echo Running bootscript from mmc ...; " \
                "source\0" \