diff mbox series

[U-Boot,v1,4/9] ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of hardcoded 0

Message ID 20180725222552.3450-5-lukma@denx.de
State Superseded
Delegated to: Tom Rini
Headers show
Series ARM: Odroid XU3: Enable DM_MMC support which is necessary for CONFIG_BLK | expand

Commit Message

Lukasz Majewski July 25, 2018, 10:25 p.m. UTC
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>
---

 board/samsung/common/bootscripts/autoboot.cmd | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Anand Moon July 27, 2018, 3:09 a.m. UTC | #1
Hi Lukasz

On 26 July 2018 at 03:55, Lukasz Majewski <lukma@denx.de> wrote:
> 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>
> ---
>
>  board/samsung/common/bootscripts/autoboot.cmd | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/samsung/common/bootscripts/autoboot.cmd b/board/samsung/common/bootscripts/autoboot.cmd
> index 1faed8ba0c1a..11c724c4e095 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;
> --
> 2.11.0
>

Please add my.
Tested-by: Anand Moon <linux.amoon@gmail.com>

Best Regards
-Anand
diff mbox series

Patch

diff --git a/board/samsung/common/bootscripts/autoboot.cmd b/board/samsung/common/bootscripts/autoboot.cmd
index 1faed8ba0c1a..11c724c4e095 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;