[PATCH] lx2160: Correct sd_boot environment variable

meenakshi.aggarwal at nxp.com meenakshi.aggarwal at nxp.com
Tue Sep 1 09:26:28 CEST 2020


From: Meenakshi Aggarwal <meenakshi.aggarwal at nxp.com>

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal at nxp.com>
---
 include/configs/lx2160aqds.h | 2 +-
 include/configs/lx2160ardb.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/configs/lx2160aqds.h b/include/configs/lx2160aqds.h
index 3dd071f..1cc015c 100644
--- a/include/configs/lx2160aqds.h
+++ b/include/configs/lx2160aqds.h
@@ -131,7 +131,7 @@ u8 qixis_esdhc_detect_quirk(void);
 		"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
 		" bootm $load_addr#$BOARD\0"			\
 	"sd_bootcmd=echo Trying load from sd card..;"		\
-		"mmcinfo; mmc read $load_addr "			\
+		"mmc dev 0; mmcinfo; mmc read $load_addr "			\
 		"$kernel_addr_sd $kernel_size_sd ;"		\
 		"env exists secureboot && mmc read $kernelheader_addr_r "\
 		"$kernelhdr_addr_sd $kernelhdr_size_sd "	\
diff --git a/include/configs/lx2160ardb.h b/include/configs/lx2160ardb.h
index f54edf3..a51987e 100644
--- a/include/configs/lx2160ardb.h
+++ b/include/configs/lx2160ardb.h
@@ -101,7 +101,7 @@
 		"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
 		" bootm $load_addr#$BOARD\0"			\
 	"sd_bootcmd=echo Trying load from sd card..;"		\
-		"mmcinfo; mmc read $load_addr "			\
+		"mmc dev 0; mmcinfo; mmc read $load_addr "			\
 		"$kernel_addr_sd $kernel_size_sd ;"		\
 		"env exists secureboot && mmc read $kernelheader_addr_r "\
 		"$kernelhdr_addr_sd $kernelhdr_size_sd "	\
-- 
2.7.4



More information about the U-Boot mailing list