ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of hardcoded 0
authorLukasz Majewski <lukma@denx.de>
Wed, 1 Aug 2018 12:48:56 +0000 (14:48 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 6 Aug 2018 01:53:53 +0000 (10:53 +0900)
This commit adjusts the autoboot.cmd file to use ${mmcbootdev} instead of
hardcoded value 0.

This is necessary to allow booting this board from the SD card.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/common/bootscripts/autoboot.cmd

index 1faed8ba0c1a310688c6889e2069aedd246b9a05..11c724c4e0950a6cab8d713bbf2de2c8bd6f2e45 100644 (file)
@@ -74,15 +74,15 @@ setenv boot_img "
 
 #### Routine: autoboot - choose proper boot path
 setenv autoboot "
-if test -e mmc 0:${mmcbootpart} Image.itb; then
+if test -e mmc ${mmcbootdev}:${mmcbootpart} Image.itb; then
        echo Found kernel image: Image.itb;
        run setboot_fit;
        run boot_img;
-elif test -e mmc 0:${mmcbootpart} zImage; then
+elif test -e mmc ${mmcbootdev}:${mmcbootpart} zImage; then
        echo Found kernel image: zImage;
        run setboot_zimg;
        run boot_img;
-elif test -e mmc 0:${mmcbootpart} uImage; then
+elif test -e mmc ${mmcbootdev}:${mmcbootpart} uImage; then
        echo Found kernel image: uImage;
        run setboot_uimg;
        run boot_img;