[U-Boot] [PATCH v1 1/2] ppc: Make ppc4xx ready for CONFIG_SYS_GENERIC_BOARD

Stefan Roese sr at denx.de
Thu Jul 24 18:40:15 CEST 2014


On 30.06.2014 13:05, dirk.eibach at gdsys.cc wrote:
> From: Dirk Eibach <dirk.eibach at gdsys.cc>
> 
> The generic board  infrastructure assumes that gd is set by
> arch code.
> 
> Signed-off-by: Dirk Eibach <dirk.eibach at gdsys.cc>
> ---
> 
>   arch/powerpc/cpu/ppc4xx/cpu_init.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/arch/powerpc/cpu/ppc4xx/cpu_init.c b/arch/powerpc/cpu/ppc4xx/cpu_init.c
> index d465dcd..86891c1 100644
> --- a/arch/powerpc/cpu/ppc4xx/cpu_init.c
> +++ b/arch/powerpc/cpu/ppc4xx/cpu_init.c
> @@ -451,6 +451,8 @@ cpu_init_f (void)
>   	mtdcr(PLB4A1_ACR, (mfdcr(PLB4A1_ACR) & ~PLB4Ax_ACR_RDP_MASK) |
>   	      PLB4Ax_ACR_RDP_4DEEP);
>   #endif /* CONFIG_440SP/SPE || CONFIG_460EX/GT || CONFIG_405EX */
> +
> +	gd = (gd_t *)(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
>   }

After applying both patches I get this:

Configuring for intip - Board: intip, Options: INTIB
arch/powerpc/cpu/ppc4xx/cpu_init.c:455:2: error: 'gd' undeclared (first use in this function)
make[1]: *** [arch/powerpc/cpu/ppc4xx/cpu_init.o] Error 1
make: *** [arch/powerpc/cpu/ppc4xx] Error 2
powerpc-linux-size: './u-boot': No such file
arch/powerpc/cpu/ppc4xx/cpu_init.c: In function 'cpu_init_f':
arch/powerpc/cpu/ppc4xx/cpu_init.c:455:2: error: 'gd' undeclared (first use in this function)
arch/powerpc/cpu/ppc4xx/cpu_init.c:455:2: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/powerpc/cpu/ppc4xx/cpu_init.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [arch/powerpc/cpu/ppc4xx] Error 2
make: *** Waiting for unfinished jobs....


Please fix and resubmit. And sorry for the delay.

Thanks,
Stefan



More information about the U-Boot mailing list