]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: AM43xx: Fix mmcboot command in EXTRA_ENV_SETTINGS
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 2 Jun 2014 05:15:38 +0000 (10:45 +0530)
committerTom Rini <trini@ti.com>
Fri, 6 Jun 2014 21:46:15 +0000 (17:46 -0400)
loadbootenv expects devtype variable to be set. This is missing in
mmcboot command. With this the following error comes:
U-Boot# run mmcboot
mmc0 is current device
SD/MMC found on device 0
** Bad device usb 0 **
** Bad device usb 0 **
Fixing this by setting devtype as mmc.

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
include/configs/am43xx_evm.h

index 8473b0bf5a40eea0abdab800d932685faa68847f..83596212474fc06e888fc767c6f38e078c8f5e24 100644 (file)
        "loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
        "mmcboot=mmc dev ${mmcdev}; " \
                "setenv devnum ${mmcdev}; " \
+               "setenv devtype mmc; " \
                "if mmc rescan; then " \
                        "echo SD/MMC found on device ${devnum};" \
                        "if run loadbootenv; then " \