[U-Boot] [PATCH 5/6] Print ramdisk load address if it is in use

Otavio Salvador otavio at ossystems.com.br
Mon Jun 16 02:46:52 CEST 2014


When debugging initramfs failures it is quite useful to known where it
is being loaded from.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---

 common/image.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/common/image.c b/common/image.c
index fa4864d..84e115f 100644
--- a/common/image.c
+++ b/common/image.c
@@ -1050,12 +1050,13 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len,
 #endif
 			puts("OK\n");
 		}
+
+		printf("   ramdisk load start = 0x%08lx, ramdisk load end = 0x%08lx\n",
+			   *initrd_start, *initrd_end);
 	} else {
 		*initrd_start = 0;
 		*initrd_end = 0;
 	}
-	debug("   ramdisk load start = 0x%08lx, ramdisk load end = 0x%08lx\n",
-			*initrd_start, *initrd_end);
 
 	return 0;
 
-- 
2.0.0



More information about the U-Boot mailing list