Skip to contentSkip to conversation

tao3530: Fix usage of mmc rescan

PATCH New Jarkko Nikula 1 participant 2 messages Sep 29, 2019 – Sep 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tao3530: Fix usage of mmc rescan

Currently "bootcmd" does not work as intended but instead prints MMC usage information and goes directly to "nandboot".

Follow what the commit 669681104daa ("configs: Fix usage of mmc rescan") does for other boards prior to support for TechNexion TAO3530 SoM was added.

---
 include/configs/tao3530.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/tao3530.h +1 -1
index c34e785d9e55..5f75eed4c0e7 100644
@@ -114,7 +114,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev $(mmcdev); if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/1 tao3530: Fix usage of mmc rescan

Quoted 17 lines · Jarkko Nikula

Currently "bootcmd" does not work as intended but instead prints MMC usage information and goes directly to "nandboot".

Follow what the commit 669681104daa ("configs: Fix usage of mmc rescan") does for other boards prior to support for TechNexion TAO3530 SoM was added.

---
 include/configs/tao3530.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/tao3530.h +0 -0
index c34e785d9e55..5f75eed4c0e7 100644

include/configs/tao3530.h line 117

Quoted 5 lines
include/configs/tao3530.h +1 -1
@@ -114,7 +114,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev $(mmcdev); if mmc rescan; then " \

Please discard this, by some reason I managed to put round brackets here. Will resend.

Signature · 1 line
Jarkko