[PATCH 05/10] imx-image: mx35: increase load image size, due to dobule header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
---
 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
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux