[U-Boot] [PATCH 1/1] cmd/bdinfo: sandbox: print the relocation offset

Bin Meng bmeng.cn at gmail.com
Mon Aug 12 04:07:47 UTC 2019


On Sat, Aug 10, 2019 at 5:35 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> On the sandbox provide the relocation offset. This value can be used for
> debugging with GDB using the `add-symbol-file u-boot <reloc off>' command.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  cmd/bdinfo.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
> index 86c17dc427..560c039d37 100644
> --- a/cmd/bdinfo.c
> +++ b/cmd/bdinfo.c
> @@ -395,6 +395,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>
>         print_bi_boot_params(bd);
>         print_bi_dram(bd);
> +       print_num("reloc off", (uintptr_t)(gd->reloc_off + gd->arch.ram_buf));

Shouldn't we print gd->relocaddr directly?

>         print_eth_ip_addr();
>
>  #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
> --

Regards,
Bin


More information about the U-Boot mailing list