]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/bdinfo: print relocation info on X86
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 24 Jan 2018 18:52:29 +0000 (19:52 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 30 Jan 2018 14:34:38 +0000 (22:34 +0800)
For debugging U-Boot in qemu-x86 the relocation address is needed.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
cmd/bdinfo.c

index c7ebad17d1751a831915ad88fb736229bc4164ae..de6fc48987793b4ffe6a93541f36095d861e99bc 100644 (file)
@@ -377,6 +377,8 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        print_bi_dram(bd);
 
+       print_num("relocaddr", gd->relocaddr);
+       print_num("reloc off", gd->reloc_off);
 #if defined(CONFIG_CMD_NET)
        print_eth_ip_addr();
        print_mhz("ethspeed",       bd->bi_ethspeed);