[PATCH 05/10] imx-image: mx35: increase load image size, due to dobule header
Marc Kleine-Budde
mkl at pengutronix.de
Wed Apr 1 09:14:10 PDT 2015
Since commit:
690e39202747 imx-image: handle i.MX35 special case
the IVT+DCD header is placed both at 0x0 and 0x1000, this patch reflects this
change and increases the load image size accordingly.
Cc: Eric Bénard <eric at eukrea.com>
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
scripts/imx/imx-image.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index 89cb8240e40d..fd78a86198d6 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -742,6 +742,9 @@ int main(int argc, char *argv[])
*/
load_size = ((image_size + HEADER_LEN) + 0xfff) & ~0xfff;
+ if (cpu_type == 35)
+ load_size += HEADER_LEN;
+
switch (header_version) {
case 1:
add_header_v1(buf, image_dcd_offset, image_load_addr, load_size);
--
2.1.4
More information about the barebox
mailing list