aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-04-22 15:01:31 +0200
committerTom Rini <trini@konsulko.com>2023-05-03 18:30:46 -0400
commit55922ed5fa03c3ce2ca6c1c504d86dcf2c80c5f7 (patch)
treec1d712c4771d06a08ceb323a36bcd2a4fd39e4b3 /cmd
parent5fd10846572cc76c6e6d0f9839ed54ff10537691 (diff)
downloadu-boot-55922ed5fa03c3ce2ca6c1c504d86dcf2c80c5f7.zip
u-boot-55922ed5fa03c3ce2ca6c1c504d86dcf2c80c5f7.tar.gz
u-boot-55922ed5fa03c3ce2ca6c1c504d86dcf2c80c5f7.tar.bz2
cmd: bdinfo: Map fdt_blob and new_fdt to sysmem
Map fdt_blob and new_fdt to sysmem, otherwise $fdtcontroladdr and bdinfo output do not match and the bdinfo output address is not a valid address accessible via sandbox memory accessors. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bdinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index f709904..78cb41f 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <env.h>
#include <lmb.h>
+#include <mapmem.h>
#include <net.h>
#include <video.h>
#include <vsprintf.h>
@@ -128,8 +129,8 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
print_eth(0);
printf("IP addr = %s\n", env_get("ipaddr"));
}
- bdinfo_print_num_l("fdt_blob", (ulong)gd->fdt_blob);
- bdinfo_print_num_l("new_fdt", (ulong)gd->new_fdt);
+ bdinfo_print_num_l("fdt_blob", (ulong)map_to_sysmem(gd->fdt_blob));
+ bdinfo_print_num_l("new_fdt", (ulong)map_to_sysmem(gd->new_fdt));
bdinfo_print_num_l("fdt_size", (ulong)gd->fdt_size);
if (IS_ENABLED(CONFIG_VIDEO))
show_video_info();