aboutsummaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2018-08-01 14:48:56 +0200
committerMinkyu Kang <mk7.kang@samsung.com>2018-08-06 10:53:53 +0900
commit30373ef0a1e15415451bf2e0c5cb9bf796023fe1 (patch)
tree5ecc770c40ab0887063923c0090d164d64209f5b /board/samsung
parent44601dbd896dfabeb8c296674e33499cb7d937a0 (diff)
downloadu-boot-30373ef0a1e15415451bf2e0c5cb9bf796023fe1.zip
u-boot-30373ef0a1e15415451bf2e0c5cb9bf796023fe1.tar.gz
u-boot-30373ef0a1e15415451bf2e0c5cb9bf796023fe1.tar.bz2
ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of hardcoded 0
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>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/common/bootscripts/autoboot.cmd6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/samsung/common/bootscripts/autoboot.cmd b/board/samsung/common/bootscripts/autoboot.cmd
index 1faed8b..11c724c 100644
--- a/board/samsung/common/bootscripts/autoboot.cmd
+++ b/board/samsung/common/bootscripts/autoboot.cmd
@@ -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;