ARM: i.MX: external NAND boot: use image size from image header
When compiling with multiimage support ld_var(_barebox_image_size) only
contains the length of the PBL image, but not including the appended
compressed data. With this patch the image size is read from the barebox
header instead which contains the correct size, either from the linker
or from the fix_size tool.
This makes the external_nand_boot compatible with multiimage support.

Tested on Phytec phyCARD-i.MX27 with and without PBL.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent bf6846c commit 3711a1d8e7022925b6e4e83836bd957691f52ae0
@Sascha Hauer Sascha Hauer authored on 28 Jan 2014
Showing 1 changed file
View
arch/arm/mach-imx/external-nand-boot.c