[PATCH 1/2] scripts: imx-image: Do not pad image
Sascha Hauer
s.hauer at pengutronix.de
Tue Jul 14 23:02:02 PDT 2015
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 at 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
More information about the barebox
mailing list