[U-Boot] [PATCH] Improve output of bootm command

Andrew Murray amurray at theiet.org
Sat Sep 10 16:57:47 CEST 2011


It's common for the bootm command to move a provided image in memory
prior to it's execution - this move can contribute to increased boot
times. This move is often seen in poorly configured devices which
boot from NAND.

This patch improves the output of the bootm command such that when
a move occurs it is made clear to the user.

Signed-off-by: Andrew Murray <amurray at theiet.org>
---
 common/cmd_bootm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 147e8de..b5f28b0 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -346,8 +346,8 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
 	case IH_COMP_NONE:
 		if (load == blob_start || load == image_start) {
 			printf ("   XIP %s ... ", type_name);
-		} else {
-			printf ("   Loading %s ... ", type_name);
+		} else if (load != image_start) {
+			printf ("   Moving %s ... ", type_name);
 			memmove_wd ((void *)load, (void *)image_start,
 					image_len, CHUNKSZ);
 		}
-- 
1.7.4.1



More information about the U-Boot mailing list