9
0
Fork 0

scripts: imx-image: Fix image size in flash header for i.MX35

The i.MX35 needs additional 0x1000 byte. This quirk moved to the wrong
location during refactoring of imx-image for v2016.03.0.

Fixes: adade59759 ""scripts: imx: Allow to create signed images")
Signed-off-by: Daniel Krueger <daniel.krueger@systec-electronic.com>
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Stein 2016-04-13 09:36:05 +02:00 committed by Sascha Hauer
parent 97e553bc65
commit 78118046b5
1 changed files with 4 additions and 3 deletions

View File

@ -221,6 +221,10 @@ static int do_soc(struct config_data *data, int argc, char *argv[])
if (!strcmp(socs[i].name, soc)) {
data->header_version = socs[i].header_version;
data->cpu_type = socs[i].cpu_type;
if (data->cpu_type == 35)
data->load_size += HEADER_LEN;
return 0;
}
}
@ -230,9 +234,6 @@ static int do_soc(struct config_data *data, int argc, char *argv[])
fprintf(stderr, "%s ", socs[i].name);
fprintf(stderr, "\n");
if (data->cpu_type == 35)
data->load_size += HEADER_LEN;
return -EINVAL;
}