Skip to content
Snippets Groups Projects
Commit f4379cef authored by Ben Gardiner's avatar Ben Gardiner Committed by Wolfgang Denk
Browse files

README.arm-relocation: get relocated address from bdinfo


The bdinfo command prints the relocaddr on ARM as it does
on PPC.

Update the debugging instructions for arm relocation to
reflect this fact rather than requiring that the user
rebuild the u-boot image using -DDEBUG.

Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
CC: Wolfgang Denk <wd@denx.de>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
parent 5902e8f7
No related branches found
No related tags found
No related merge requests found
...@@ -106,13 +106,9 @@ TBC ...@@ -106,13 +106,9 @@ TBC
Debugging u-boot in RAM: Debugging u-boot in RAM:
(example on the qong board) (example on the qong board)
a) add in config.mk:
PLATFORM_CPPFLAGS += -DDEBUG
----------------- -----------------
b) start debugger a) start debugger
arm-linux-gdb u-boot arm-linux-gdb u-boot
...@@ -130,7 +126,7 @@ The target architecture is set automatically (currently arm) ...@@ -130,7 +126,7 @@ The target architecture is set automatically (currently arm)
----------------- -----------------
c) connect to target b) connect to target
target remote bdi10:2001 target remote bdi10:2001
...@@ -141,7 +137,7 @@ Remote debugging using bdi10:2001 ...@@ -141,7 +137,7 @@ Remote debugging using bdi10:2001
----------------- -----------------
d) discard symbol-file c) discard symbol-file
(gdb) symbol-file (gdb) symbol-file
Discard symbol table from `/home/hs/celf/u-boot/u-boot'? (y or n) y Discard symbol table from `/home/hs/celf/u-boot/u-boot'? (y or n) y
...@@ -150,7 +146,7 @@ No symbol file now. ...@@ -150,7 +146,7 @@ No symbol file now.
----------------- -----------------
e) load new symbol table: d) load new symbol table:
(gdb) add-symbol-file u-boot 0x8ff08000 (gdb) add-symbol-file u-boot 0x8ff08000
add symbol table from file "u-boot" at add symbol table from file "u-boot" at
...@@ -167,28 +163,23 @@ Program received signal SIGSTOP, Stopped (signal). ...@@ -167,28 +163,23 @@ Program received signal SIGSTOP, Stopped (signal).
add-symbol-file u-boot 0x8ff08000 add-symbol-file u-boot 0x8ff08000
^^^^^^^^^^ ^^^^^^^^^^
get this address from u-boot debug printfs get this address from u-boot bdinfo command
U-Boot 2010.06-rc2-00009-gf77b8b8-dirty (Jun 22 2010 - 09:43:46) => bdinfo
rch_number = XXXXXXXXXX
U-Boot code: A0000000 -> A0058BAC BSS: -> A0061F10 boot_params = XXXXXXXXXX
CPU: Freescale i.MX31 at 398 MHz DRAM bank = XXXXXXXXXX
Board: DAVE/DENX Qong -> start = XXXXXXXXXX
mon: FFFFFFFF gd->monLen: 00061F10 -> size = XXXXXXXXXX
Top of RAM usable for U-Boot at: 90000000 ethaddr = XXXXXXXXXX
LCD panel info: 640 x 480, 16 bit/pix ip_addr = XXXXXXXXXX
Reserving 600k for LCD Framebuffer at: 8ff6a000 baudrate = XXXXXXXXXX
Reserving 391k for U-Boot at: 8ff08000 TLB addr = XXXXXXXXXX
^^^^^^^^ relocaddr = 0x8ff08000
Reserving 1280k for malloc() at: 8fdc8000 ^^^^^^^^^^
Reserving 24 Bytes for Board Info at: 8fdc7fe8 reloc off = XXXXXXXXXX
Reserving 52 Bytes for Global Data at: 8fdc7fb4 irq_sp = XXXXXXXXXX
New Stack Pointer is: 8fdc7fb0 sp start = XXXXXXXXXX
RAM Configuration: FB base = XXXXXXXXXX
Bank #0: 80000000 256 MiB
relocation Offset is: eff08000
mon: 00058BAC gd->monLen: 00061F10
Now running in RAM - U-Boot at: 8ff08000
^^^^^^^^
Now you can use gdb as usual :-) Now you can use gdb as usual :-)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment