From: Leonard Crestez Date: Thu, 1 Feb 2018 16:07:29 +0000 (+0200) Subject: MLK-17493: imx8qm: Fix mmcargs variable missing terminator X-Git-Tag: rel_imx_4.9.88_2.0.0_ga~74 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=77130fcf86a602a5fea0eb842f22237fdfb46bea;p=u-boot.git MLK-17493: imx8qm: Fix mmcargs variable missing terminator 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 Reviewed-by: Ye Li --- diff --git a/include/configs/imx8qm_arm2.h b/include/configs/imx8qm_arm2.h index 71ed0533ea..ee17c178ce 100644 --- a/include/configs/imx8qm_arm2.h +++ b/include/configs/imx8qm_arm2.h @@ -176,7 +176,7 @@ "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" \ diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h index b83b366789..ab927b007e 100644 --- a/include/configs/imx8qm_mek.h +++ b/include/configs/imx8qm_mek.h @@ -137,7 +137,7 @@ "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" \