Skip to contentSkip to conversation

bdinfo: print fdt_blob

PATCH In review Heiko Schocher 4 participants 4 messages Jun 21, 2017 – Jun 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bdinfo: print fdt_blob

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

---

 cmd/bdinfo.c | 2 ++
 1 file changed, 2 insertions(+)
cmd/bdinfo.c +2 -0
index ff3cce0..ef11e72 100644
@@ -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;
 }
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 bdinfo: print fdt_blob

Quoted 5 lines · Heiko Schocher

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

---

Nice.

Thanks and regards,
Lokesh

Quoted 18 lines
 cmd/bdinfo.c | 2 ++
 1 file changed, 2 insertions(+)
cmd/bdinfo.c +2 -0
index ff3cce0..ef11e72 100644
@@ -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 lore raw
In reply to Heiko Schocher
Quoted 5 lines · Heiko Schocher

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

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170624/da4819af/attachment.sig>