[U-Boot] Debugging U-boot after relocation

Wolfgang Denk wd at denx.de
Thu Nov 26 23:15:15 CET 2009


Dear "Dunda, Matthias",

In message <569685F045B85741820D0265E0D2999D019CFD69 at tddhh01.hh.thales-naval.de> you wrote:
> 
> Then, I calculate the RAM address for the symbols as described in
> DULG-10.1.2.:
> 
> RAM is 512 MB  --> 0x2000 0000
> Monitor Len according to board specific file is 256k  --> 0x0004 0000
> This yields address 0x1FFC 0000.

As already explaine din PM this calculation is only valid in the
"usual" case - and MPC85xx uses not the usual mappings.

> On the other hand, calculating the address the other way yields
> 
> (gdb) print/x ((gd_t *)$r2)->reloc_off
> $4 = 0x1fff0000
> 
> adding this to TEXT_BASE which is
> 
> ./board/freescale/mpc8568mds/config.mk:TEXT_BASE = 0xfff80000
> 
> results in something above 32 bit.

...What's the problem? This is a 32 bit system, so addresses just wrap
around.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"A fractal is by definition a set for which the Hausdorff Besicovitch
dimension strictly exceeds the topological dimension."
- Mandelbrot, _The Fractal Geometry of Nature_


More information about the U-Boot mailing list