]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6slevk: Fix the boot device number
authorFabio Estevam <festevam@denx.de>
Mon, 26 Aug 2024 18:04:52 +0000 (15:04 -0300)
committerFabio Estevam <festevam@gmail.com>
Fri, 30 Aug 2024 18:50:36 +0000 (15:50 -0300)
The SD card is registered as mmc device 0.

Fix it accordingly so that the board can boot to Linux
from the SD card.

Signed-off-by: Fabio Estevam <festevam@denx.de>
configs/mx6slevk_defconfig
include/configs/mx6slevk.h

index a9d7435c0e8930d350a8856cafb52e0f34879331..071bcaebf5b8ecde61454f0357e0bd1207edaecf 100644 (file)
@@ -38,7 +38,6 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_SYS_MMC_ENV_DEV=1
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MXC=y
index 39c8ef060c7fac8db9957d2be3f0b38f096b97cb..490d9feb805bc822a6f0cd69809ef441e73c5e45 100644 (file)
@@ -25,9 +25,9 @@
        "fdt_addr=0x88000000\0" \
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \
-       "mmcdev=1\0" \
+       "mmcdev=0\0" \
        "mmcpart=1\0" \
-       "finduuid=part uuid mmc 1:2 uuid\0" \
+       "finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "root=PARTUUID=${uuid} rootwait rw\0" \
        "loadbootscript=" \