]> git.sur5r.net Git - u-boot/commitdiff
env: ti: boot: Extract command for eMMC Linux boot
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 21 Sep 2017 19:37:58 +0000 (22:37 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 29 Sep 2017 18:07:58 +0000 (14:07 -0400)
Extract commands for booting Linux from eMMC to separate command. It
seems more logical that way, and allows us to run the whole command set
from U-Boot shell with only one command.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/environment/ti/boot.h

index 5b1b97bafef2433dfd58e6cddf891f46e40f1946..2306d3cdf0dddc6b816481d9ee9657bb2d47d775 100644 (file)
        "partitions=" PARTS_DEFAULT "\0" \
        "optargs=\0" \
        "dofastboot=0\0" \
+       "emmc_linux_boot=" \
+               "setenv mmcdev 1; " \
+               "setenv bootpart 1:2; " \
+               "setenv mmcroot /dev/mmcblk0p2 rw; " \
+               "run mmcboot;\0" \
        "emmc_android_boot=" \
                "setenv eval_bootargs setenv bootargs $bootargs; " \
                "run eval_bootargs; " \
        "run findfdt; " \
        "run envboot; " \
        "run mmcboot;" \
-       "setenv mmcdev 1; " \
-       "setenv bootpart 1:2; " \
-       "setenv mmcroot /dev/mmcblk0p2 rw; " \
-       "run mmcboot;" \
+       "run emmc_linux_boot; " \
        "run emmc_android_boot; " \
        ""