From: Marek Vasut Date: Sat, 22 Apr 2023 13:01:31 +0000 (+0200) Subject: cmd: bdinfo: Map fdt_blob and new_fdt to sysmem X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=55922ed5fa03c3ce2ca6c1c504d86dcf2c80c5f7;p=u-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f709904c51..78cb41f076 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -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();