diff mbox series

[3/4] env: ti: boot: Extract command for eMMC Linux boot

Message ID 20170921193759.3914-4-semen.protsenko@linaro.org
State Accepted
Commit 2717c08485332efa6224fc9650fc36d06b8c6fe8
Headers show
Series arm: am57xx/dra7xx: Improve eMMC Linux boot | expand

Commit Message

Sam Protsenko Sept. 21, 2017, 7:37 p.m. UTC
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>
---
 include/environment/ti/boot.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Comments

Tom Rini Sept. 24, 2017, 2:40 p.m. UTC | #1
On Thu, Sep 21, 2017 at 10:37:58PM +0300, Sam Protsenko wrote:

> 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>


-- 
Tom
Tom Rini Sept. 29, 2017, 8:26 p.m. UTC | #2
On Thu, Sep 21, 2017 at 10:37:58PM +0300, Sam Protsenko wrote:

> 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>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h
index 5b1b97bafe..2306d3cdf0 100644
--- a/include/environment/ti/boot.h
+++ b/include/environment/ti/boot.h
@@ -29,6 +29,11 @@ 
 	"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; " \
@@ -93,10 +98,7 @@ 
 	"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; " \
 	""