diff mbox series

[4/4] env: ti: boot: Show boot status information

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

Commit Message

Sam Protsenko Sept. 21, 2017, 7:37 p.m. UTC
Add tracing printings to Linux/Android boot commands, so that we can see
what's going on. Helps to trace possible bugs on early stages and
improves the output for user (which is especially useful, because we
have a bunch of boot commands executing one by one).

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 include/environment/ti/boot.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

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

> Add tracing printings to Linux/Android boot commands, so that we can see

> what's going on. Helps to trace possible bugs on early stages and

> improves the output for user (which is especially useful, because we

> have a bunch of boot commands executing one by one).

> 

> 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:59PM +0300, Sam Protsenko wrote:

> Add tracing printings to Linux/Android boot commands, so that we can see

> what's going on. Helps to trace possible bugs on early stages and

> improves the output for user (which is especially useful, because we

> have a bunch of boot commands executing one by one).

> 

> 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 2306d3cdf0..799d9840aa 100644
--- a/include/environment/ti/boot.h
+++ b/include/environment/ti/boot.h
@@ -30,11 +30,13 @@ 
 	"optargs=\0" \
 	"dofastboot=0\0" \
 	"emmc_linux_boot=" \
+		"echo Trying to boot Linux from eMMC ...; " \
 		"setenv mmcdev 1; " \
 		"setenv bootpart 1:2; " \
 		"setenv mmcroot /dev/mmcblk0p2 rw; " \
 		"run mmcboot;\0" \
 	"emmc_android_boot=" \
+		"echo Trying to boot Android from eMMC ...; " \
 		"setenv eval_bootargs setenv bootargs $bootargs; " \
 		"run eval_bootargs; " \
 		"setenv mmcdev 1; " \
@@ -49,7 +51,6 @@ 
 		"part size mmc ${mmcdev} ${boot_part} boot_size; " \
 		"mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \
 		"mmc read ${loadaddr} ${boot_start} ${boot_size}; " \
-		"echo Booting from eMMC ...; " \
 		"bootm $loadaddr $loadaddr $fdtaddr;\0"
 
 #ifdef CONFIG_OMAP54XX