]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: exynos: odroid: Change autoboot script to use ${mmcbootdev}
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 17 Jan 2020 13:12:58 +0000 (14:12 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 28 Jan 2020 00:54:49 +0000 (09:54 +0900)
This fixes the default boot command for the SD-card boot case.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
include/configs/odroid.h

index 7989fb29d15828e7be33e3556a8814802bc1a40a..a7e2a3d9a233d5f7d895ac6a046447df4f36266e 100644 (file)
                "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 \