diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-12-05 09:29:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-05 11:31:07 +0100 |
commit | ba4ace811029e8a6406330667961443a0326a0bb (patch) | |
tree | 903977691c9934867d6cf810bcad4ea02942f628 /arch | |
parent | 30aad4a4ce952abd745cd409956d4976079d5482 (diff) | |
download | barebox-ba4ace811029e8a6406330667961443a0326a0bb.tar.gz barebox-ba4ace811029e8a6406330667961443a0326a0bb.tar.xz |
ARM: MXS: Add multiimage support
The Freescale MXS SoCs have a multi staged boot process which needs
different images composed out of different binaries. The ROM executes
a so called bootstream which contains multiple executables. The first
one is executed in SRAM and the purpose of this binary is to setup
the internal PMIC and the SDRAM. The second image is usually the
bootloader itself. In case of barebox the bootstream is composed
out of the self extracting barebox image (pblx) and the prepare
stage for setting up the SDRAM.
The bootstream image itself is useful for USB boot, but for booting from
SD cards or NAND a BCB header has to be prepended to the image. In case
of SD boot the image has the .mxssd file extension in barebox.
Since the bootstream images are encrypted they are not suitable for
2nd stage execution. For this purpose the 2nd stage images are generated.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mxs/mxs23img.cfg | 6 | ||||
-rw-r--r-- | arch/arm/mach-mxs/mxs28img.cfg | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/mxs23img.cfg b/arch/arm/mach-mxs/mxs23img.cfg new file mode 100644 index 0000000000..34e88483f0 --- /dev/null +++ b/arch/arm/mach-mxs/mxs23img.cfg @@ -0,0 +1,6 @@ +SECTION 0x0 BOOTABLE + TAG LAST + LOAD 0x1000 @PREP@ + CALL 0x1000 0x0 + LOAD 0x40002000 @BOOTLOADER@ + CALL 0x40002000 0x0 diff --git a/arch/arm/mach-mxs/mxs28img.cfg b/arch/arm/mach-mxs/mxs28img.cfg new file mode 100644 index 0000000000..0ff2c35dd5 --- /dev/null +++ b/arch/arm/mach-mxs/mxs28img.cfg @@ -0,0 +1,8 @@ +SECTION 0x0 BOOTABLE + TAG LAST + LOAD 0x1000 @PREP@ + LOAD IVT 0x8000 0x1000 + CALL HAB 0x8000 0x0 + LOAD 0x40002000 @BOOTLOADER@ + LOAD IVT 0x8000 0x40002000 + CALL HAB 0x8000 0x0 |