[PATCH 17/19] bootwrapper: compatibility layer for old U-Boots (a.k.a. cuImage, cuboot)

Kumar Gala galak at kernel.crashing.org
Tue Mar 13 08:07:57 EST 2007


On Mar 12, 2007, at 3:42 PM, Scott Wood wrote:

> Add a bootwrapper platform (cuboot) that takes a bd_t from a legacy
> U-Boot, and inserts data from it into a device tree which has been
> compiled into the kernel.  This should help ease the transition to
> arch/powerpc in cases where U-Boot has not yet been updated to pass a
> device tree, or where upgrading firmware isn't practical.
>
> The device trees currently in the kernel tree must have
> /chosen/linux,stdout-path added to work with cuboot.

Why is linux,stdout-path needed by cuboot?

> The kernel command line, mac addresses, and various clocks will be  
> filled
> in based on the bd_t.
>
> Signed-off-by: Scott Wood <scottwood at freescale.com>
> ---
>  arch/powerpc/Kconfig                      |   16 ++++
>  arch/powerpc/Makefile                     |    2 +-
>  arch/powerpc/boot/.gitignore              |    3 +
>  arch/powerpc/boot/Makefile                |   20 ++++-
>  arch/powerpc/boot/cuboot-83xx.c           |    4 +
>  arch/powerpc/boot/cuboot-85xx.c           |    4 +
>  arch/powerpc/boot/cuboot-86xx.c           |    4 +
>  arch/powerpc/boot/cuboot.c                |  137 ++++++++++++++++++ 
> +++++++++++
>  arch/powerpc/boot/ppcboot.h               |  103 ++++++++++++++++++ 
> ++++
>  arch/powerpc/boot/wrapper                 |   46 ++++++++--
>  arch/powerpc/platforms/83xx/mpc834x_mds.c |    5 +-

the whitespace fixup in mpc834x_mds.c shouldn't be part of this.

- k



More information about the Linuxppc-dev mailing list