mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] scripts: imx-image: Do not pad image
@ 2015-07-15  6:02 Sascha Hauer
  2015-07-15  6:02 ` [PATCH 2/2] scripts: imx-image: Make in-place capable Sascha Hauer
  2015-07-15 11:10 ` [PATCH 1/2] scripts: imx-image: Do not pad image Marc Kleine-Budde
  0 siblings, 2 replies; 6+ messages in thread
From: Sascha Hauer @ 2015-07-15  6:02 UTC (permalink / raw)
  To: Barebox List

We have to pad the load size to the next 4k boundary, but we don't
need to pad the image itself since we do not care what data the ROM
actually loads.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 scripts/imx/imx-image.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index e765c1d..a588882 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -823,18 +823,6 @@ int main(int argc, char *argv[])
 		image_size -= now;
 	}
 
-	/* pad until next 4k boundary */
-	now = 4096 - now;
-	if (now) {
-		memset(buf, 0x5a, now);
-
-		ret = xwrite(outfd, buf, now);
-		if (ret) {
-			perror("write");
-			exit(1);
-		}
-	}
-
 	ret = close(outfd);
 	if (ret) {
 		perror("close");
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v2]: imx-image changes
@ 2015-07-16  7:48 Sascha Hauer
  2015-07-16  7:48 ` [PATCH 1/2] scripts: imx-image: Do not pad image Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Sascha Hauer @ 2015-07-16  7:48 UTC (permalink / raw)
  To: Barebox List

This is the second version of the imx-image changes which keep the
padding for the HABv4 case this time.

Sascha

----------------------------------------------------------------
Sascha Hauer (2):
      scripts: imx-image: Do not pad image
      scripts: imx-image: Make in-place capable

 scripts/imx/imx-image.c | 49 +++++++++++++++++++++++++------------------------
 1 file changed, 25 insertions(+), 24 deletions(-)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-16  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15  6:02 [PATCH 1/2] scripts: imx-image: Do not pad image Sascha Hauer
2015-07-15  6:02 ` [PATCH 2/2] scripts: imx-image: Make in-place capable Sascha Hauer
2015-07-15 11:10 ` [PATCH 1/2] scripts: imx-image: Do not pad image Marc Kleine-Budde
2015-07-15 12:06   ` Sascha Hauer
2015-07-15 12:09     ` Marc Kleine-Budde
2015-07-16  7:48 [PATCH v2]: imx-image changes Sascha Hauer
2015-07-16  7:48 ` [PATCH 1/2] scripts: imx-image: Do not pad image Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox