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 <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
---
 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


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to