[U-Boot] [PATCH] bdinfo: print fdt_blob

Heiko Schocher hs at denx.de
Wed Jun 21 04:22:41 UTC 2017


for debugging it is handy to know the fdt_blob
address. So print it in bdinfo.

Signed-off-by: Heiko Schocher <hs at denx.de>
---

 cmd/bdinfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index ff3cce0..ef11e72 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -376,6 +376,8 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,
 	printf("Early malloc usage: %lx / %x\n", gd->malloc_ptr,
 	       CONFIG_SYS_MALLOC_F_LEN);
 #endif
+	if (gd->fdt_blob)
+		printf("fdt_blob = %p\n", gd->fdt_blob);
 
 	return 0;
 }
-- 
2.7.4



More information about the U-Boot mailing list