Skip to contentSkip to conversation

arm: exynos: odroid: Change autoboot script to use ${mmcbootdev}

PATCH New Marek Szyprowski 2 participants 2 messages Jan 17, 2020 – Jan 28, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20200117131312eucas1p1be21a501ee3ee628ecfd3a4b6a8db149@eucas1p1.samsung.com

#1 lore raw

PATCH 1/1 arm: exynos: odroid: Change autoboot script to use ${mmcbootdev}

This fixes the default boot command for the SD-card boot case.

---
This is the continuation of the fixes from this patchset:
https://patchwork.ozlabs.org/cover/1224290/

---
 include/configs/odroid.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/configs/odroid.h +4 -4
index 7989fb29d1..a7e2a3d9a2 100644
@@ -146,13 +146,13 @@
 		"run kernel_args;" \
 		"bootz ${kernel_addr_r} ${initrd_addr} ${fdt_addr};\0" \
 	"autoboot=" \
-		"if test -e mmc 0 boot.scr; then; " \
+		"if test -e mmc ${mmcbootdev} boot.scr; then; " \
 			"run boot_script; " \
-		"elif test -e mmc 0 Image.itb; then; " \
+		"elif test -e mmc ${mmcbootdev} Image.itb; then; " \
 			"run boot_fit;" \
-		"elif test -e mmc 0 zImage; then; " \
+		"elif test -e mmc ${mmcbootdev} zImage; then; " \
 			"run boot_zimg;" \
-		"elif test -e mmc 0 uImage; then; " \
+		"elif test -e mmc ${mmcbootdev} uImage; then; " \
 			"run boot_uimg;" \
 		"fi;\0" \
 	"console=" CONFIG_DEFAULT_CONSOLE \
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 arm: exynos: odroid: Change autoboot script to use ${mmcbootdev}

Quoted 23 lines · Marek Szyprowski

This fixes the default boot command for the SD-card boot case.

---
This is the continuation of the fixes from this patchset:
https://patchwork.ozlabs.org/cover/1224290/

---
 include/configs/odroid.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/configs/odroid.h +1 -2
index 7989fb29d1..a7e2a3d9a2 100644
@@ -146,13 +146,13 @@
 		"run kernel_args;" \
 		"bootz ${kernel_addr_r} ${initrd_addr} ${fdt_addr};\0" \
 	"autoboot=" \
-		"if test -e mmc 0 boot.scr; then; " \
+		"if test -e mmc ${mmcbootdev} boot.scr; then; " \
 			"run boot_script; " \
-		"elif test -e mmc 0 Image.itb; then; " \

include/configs/odroid.h line 158

Quoted 10 lines
include/configs/odroid.h +3 -2
+		"elif test -e mmc ${mmcbootdev} Image.itb; then; " \
 			"run boot_fit;" \
-		"elif test -e mmc 0 zImage; then; " \
+		"elif test -e mmc ${mmcbootdev} zImage; then; " \
 			"run boot_zimg;" \
-		"elif test -e mmc 0 uImage; then; " \
+		"elif test -e mmc ${mmcbootdev} uImage; then; " \
 			"run boot_uimg;" \
 		"fi;\0" \
 	"console=" CONFIG_DEFAULT_CONSOLE \

applied to u-boot-samsung.

Thanks,
Minkyu Kang.