summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-04-01 18:14:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-03 15:45:26 +0200
commit5e5ced60738baacd5c8dc21a731d2ae20e6394e2 (patch)
treef7d29d276b199509e9382a1967cbee44866a784c /scripts
parent8acb4e65ce7ebdf9da6528d89d0675f6958b7892 (diff)
downloadbarebox-5e5ced60738baacd5c8dc21a731d2ae20e6394e2.tar.gz
barebox-5e5ced60738baacd5c8dc21a731d2ae20e6394e2.tar.xz
imx-image: mx35: increase load image size, due to dobule header
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@eukrea.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/imx/imx-image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index 56aec7dabe..9928f40d05 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -741,6 +741,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);