[U-Boot] [PATCH] DEBUG 8xxx cpu_numcores

Kumar Gala galak at kernel.crashing.org
Tue Dec 15 15:49:12 CET 2009


On Dec 15, 2009, at 1:07 AM, Ed Swarthout wrote:

> The following debug patch shows that gd->cpu is not being relocated to
> ddr.  Linux may not be able to boot due to "fdt board" crashing if
> flash has been erased or changed.
> 
> On mpc8572ds:
> 
> => fdt board
> fdt board
> cpu_numcores gd=3fe6df68 cpu=effed578 n=2
> cpu_numcores gd=3fe6df68 cpu=effed578 n=2
> cpu_numcores gd=3fe6df68 cpu=effed578 n=2
> cpu_numcores gd=3fe6df68 cpu=effed578 n=2
> 
> Signed-off-by: Ed Swarthout <Ed.Swarthout at freescale.com>
> ---
> cpu/mpc8xxx/cpu.c |    4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)

I agree w/Ed that we broke the relocation of gd->cpu with commit:

commit a0e2066f392782730f0398095e583c87812d97f2
Author: Peter Tyser <ptyser at xes-inc.com>
Date:   Mon Sep 21 11:20:27 2009 -0500

    ppc: Remove board.c relocation fixups
    
    Signed-off-by: Peter Tyser <ptyser at xes-inc.com>

...

-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
-       gd->cpu += gd->reloc_off;
-#endif

Peter, Joakim,

any suggestions on how to properly fix this?

- k


More information about the U-Boot mailing list