ARM: images: use piggydata
The way we assemble the multi images on ARM is rather complicated and
error prone. We currently cat the compressed barebox image behind the
PBL executable and need some magic to obtain the size of the payload and
also have to do tricks to reliably get a pointer to the compressed
image.

This patch switches over to compile the compressed payload into the PBL
image itself which has proven to work for the single PBL case and for
the ARM Linux Kernel aswell.

The goal is to unify the single PBL and the multi PBL cases together in
the future to get an easier startup path for ARM.

This patch has been tested on the i.MX53 QSB, i.MX53 Vincell, Beaglebone
black (both MLO and 2nd stage) and a Phytec phyFLEX i.MX6 board.

SoCFPGA Arria10 has also be changed slightly with this patch. We used to
generate a single image (barebox-socfpga-achilles.img) which was
used as xload image and full image. We now instead generate two images:
barebox-socfpga-achilles-xload.img and barebox-socfpga-achilles.img, the
former loaded by the ROM and the latter loaded by the xload image.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4cd2237 commit 5a1a5ed2537d7d12f851f3778707681d6c08d6e8
@Sascha Hauer Sascha Hauer authored on 9 Oct 2018
Showing 20 changed files
View
arch/arm/boards/reflex-achilles/lowlevel.c
View
arch/arm/cpu/sections.c
View
arch/arm/cpu/uncompress.c
View
arch/arm/include/asm/sections.h
View
arch/arm/lib/pbl.lds.S
View
arch/arm/mach-imx/xload-common.c
View
images/.gitignore
View
images/Makefile
View
images/Makefile.am33xx
View
images/Makefile.at91
View
images/Makefile.bcm283x
View
images/Makefile.imx
View
images/Makefile.mvebu
View
images/Makefile.mxs
View
images/Makefile.omap3
View
images/Makefile.rockchip
View
images/Makefile.socfpga
View
images/Makefile.tegra
View
images/Makefile.vexpress
View
images/piggy.S 0 → 100644