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

Message ID 20200117131258.15330-1-m.szyprowski@samsung.com
State Accepted
Commit 51521e43603d37e6be2ffd1ad2607361650500e9
Delegated to: Minkyu Kang
Headers show
Series
  • arm: exynos: odroid: Change autoboot script to use ${mmcbootdev}
Related show

Commit Message

Marek Szyprowski Jan. 17, 2020, 1:12 p.m. UTC
This fixes the default boot command for the SD-card boot case.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
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(-)

Comments

Minkyu Kang Jan. 28, 2020, 9:14 a.m. UTC | #1
On 17/01/2020 22:12, Marek Szyprowski wrote:
> This fixes the default boot command for the SD-card boot case.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> 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(-)
> 
> diff --git a/include/configs/odroid.h b/include/configs/odroid.h
> index 7989fb29d1..a7e2a3d9a2 100644
> --- a/include/configs/odroid.h
> +++ b/include/configs/odroid.h
> @@ -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 \
> 

applied to u-boot-samsung.

Thanks,
Minkyu Kang.

Patch
diff mbox series

diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 7989fb29d1..a7e2a3d9a2 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -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 \