From: Stefan Roese Date: Thu, 3 Sep 2015 15:08:54 +0200 Subject: [U-Boot] [PATCH 1/7] kwbimage: Align payload size to 4 bytes Message-ID: <1441285740-23686-1-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The MVEBU BootROM does not allow non word aligned payloads. Signed-off-by: Stefan Roese Cc: Luka Perkov --- tools/kwbimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 3fa90d3..886682d 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -775,6 +775,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) { /* -- 2.5.1