9
0
Fork 0

imx-image: mx35: increase load image size, due to dobule header

Since commit:

    690e392027 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>
This commit is contained in:
Marc Kleine-Budde 2015-04-01 18:14:10 +02:00 committed by Sascha Hauer
parent 8acb4e65ce
commit 5e5ced6073
1 changed files with 3 additions and 0 deletions

View File

@ -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);