]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - security-integration-tree/security-ti-u-boot.git/commitdiff
ARM: am335x: env: Fix mmcboot settings
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 18 Dec 2015 10:12:44 +0000 (15:42 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 11 Jan 2016 05:45:29 +0000 (11:15 +0530)
Remove an extra fi command in mmcboot which is not used.
Also add envboot to mmcboot so that uEnv.txt can be loaded from
both SD and emmc.

Reported-by: Craig McQueen <craig.mcqueen@innerrange.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
include/configs/am335x_evm.h

index ec0494965f8dedfc32671fa4cdd7043bf0bf25cc..8dccefa269eee3c5b6cb4574a3845b6c6a51d8a8 100644 (file)
        "mmcboot=mmc dev ${mmcdev}; " \
                "if mmc rescan; then " \
                        "echo SD/MMC found on device ${mmcdev};" \
-                               "if run loadimage; then " \
-                                       "run mmcloados;" \
-                               "fi;" \
-                       "fi ;" \
+                       "run envboot; " \
+                       "if run loadimage; then " \
+                               "run mmcloados;" \
+                       "fi;" \
                "fi;\0" \
        "spiboot=echo Booting from spi ...; " \
                "run spiargs; " \
 
 #define CONFIG_BOOTCOMMAND \
        "run findfdt; " \
-       "run envboot; " \
        "run mmcboot;" \
        "setenv mmcdev 1; " \
        "setenv bootpart 1:2; " \