summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-09-01 13:46:35 +0200
committerLuka Perkov <luka.perkov@sartura.hr>2015-10-21 02:25:01 +0200
commit9b163d8c4e27137f4a51025f9cc52a132a697909 (patch)
tree70eb0b8e259ad3d1c97395d3f0929155a16c47b4 /tools
parentef5cd33064f83db6f6cfe774ecdb36e32ac1d232 (diff)
downloadu-boot-9b163d8c4e27137f4a51025f9cc52a132a697909.tar.gz
u-boot-9b163d8c4e27137f4a51025f9cc52a132a697909.tar.bz2
u-boot-9b163d8c4e27137f4a51025f9cc52a132a697909.zip
kwbimage: Align payload size to 4 bytes
The MVEBU BootROM does not allow non word aligned payloads. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'tools')
-rw-r--r--tools/kwbimage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 5e62d08a80..d33f1b6974 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -681,6 +681,9 @@ static void kwbimage_set_header(void *ptr, struct stat *sbuf, int ifd,
exit(EXIT_FAILURE);
}
+ /* The MVEBU BootROM does not allow non word aligned payloads */
+ sbuf->st_size = ALIGN_SUP(sbuf->st_size, 4);
+
version = image_get_version();
switch (version) {
/*