[U-Boot] [PATCH v2 0/12] SPL: Port SPL framework to powerpc
Stefan Roese
sr at denx.de
Mon Aug 27 12:50:55 CEST 2012
This patchset ports the SPL framework to powerpc. Its based on the
SPL generalization lately done by Tom Rini. The patches can be applied
on top of his 4th version located here:
http://github.com/trini/u-boot WIP/spl-improvements
Additionally, a new MPC5200 board port is included, the a3m071 board
port. This board port uses this SPL framework mainly to speed up
booting into the OS (Linux of course). Detection of Linux vs. U-Boot
booting is done here by checking the environment variable "boot_os".
If "boot_os" is set to "yes", then the OS (Linux) is booted. Otherwise
the "real" U-Boot is booted. For this env checking in the SPL, a small
restructuring of the env code has been done.
Comments welcome!
Note: I switched to using patman with this 2nd patchset version.
Hopefully I didn't screw too much up with this.
Tom, I would prefer, if you could merge some of those patches into
your SPL rework series. Perhaps those first 6 patches once we agree
on them?
SPL: Fix build problems on ARM with new SPL framework
SPL: Use image_get_xxx() functions to access header values
SPL: Add option to skip copying of the mkimage header
SPL: Add NOR flash booting support
powerpc: Extract EPAPR_MAGIC constants into processor.h
SPL: Port SPL framework to powerpc
What do you think?
Thanks,
Stefan
Changes in v2:
- Add option to skip copying of the mkimage header
- Rebased on Tom's SPL framework patches v4
- a3m071 build: Concat SPL binary and u-boot.img directly (no padding)
Stefan Roese (12):
SPL: Fix build problems on ARM with new SPL framework
SPL: Use image_get_xxx() functions to access header values
SPL: Add option to skip copying of the mkimage header
SPL: Add NOR flash booting support
powerpc: Extract EPAPR_MAGIC constants into processor.h
SPL: Port SPL framework to powerpc
env: Extract getenv_f() into separate source file
mpc5200: Add SPL support
mpc5200: Add a3m071 board support
fdt: cmd_fdt: Call fdt_chosen() from "fdt boardsetup"
Makefile: Add possibility to set entry-point for u-boot.img
Makefile: Add target for combined spl/u-boot.bin & u-boot.img
MAINTAINERS | 2 +
Makefile | 14 +-
arch/arm/lib/spl.c | 2 +
arch/powerpc/cpu/mpc5xxx/Makefile | 4 +
arch/powerpc/cpu/mpc5xxx/spl_boot.c | 81 +++++++
arch/powerpc/cpu/mpc5xxx/start.S | 22 ++
arch/powerpc/cpu/mpc5xxx/u-boot-spl.lds | 57 +++++
arch/powerpc/include/asm/processor.h | 6 +
arch/powerpc/include/asm/spl.h | 28 +++
arch/powerpc/lib/Makefile | 5 +
arch/powerpc/lib/bootm.c | 6 -
arch/powerpc/lib/spl.c | 42 ++++
board/a3m071/Makefile | 36 +++
board/a3m071/README | 79 +++++++
board/a3m071/a3m071.c | 335 ++++++++++++++++++++++++++++
board/a3m071/mt46v16m16-75.h | 32 +++
boards.cfg | 1 +
common/Makefile | 4 +
common/cmd_fdt.c | 4 +-
common/cmd_nvedit.c | 58 -----
common/env_getenv_f.c | 82 +++++++
common/spl/Makefile | 1 +
common/spl/spl.c | 50 ++++-
common/spl/spl_nor.c | 71 ++++++
include/configs/a3m071.h | 383 ++++++++++++++++++++++++++++++++
include/spl.h | 6 +
26 files changed, 1334 insertions(+), 77 deletions(-)
create mode 100644 arch/powerpc/cpu/mpc5xxx/spl_boot.c
create mode 100644 arch/powerpc/cpu/mpc5xxx/u-boot-spl.lds
create mode 100644 arch/powerpc/include/asm/spl.h
create mode 100644 arch/powerpc/lib/spl.c
create mode 100644 board/a3m071/Makefile
create mode 100644 board/a3m071/README
create mode 100644 board/a3m071/a3m071.c
create mode 100644 board/a3m071/mt46v16m16-75.h
create mode 100644 common/env_getenv_f.c
create mode 100644 common/spl/spl_nor.c
create mode 100644 include/configs/a3m071.h
--
1.7.12
More information about the U-Boot
mailing list