From 2ad468e22f83f70b812f614e12bdbe0c465ae9ba Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 3 Aug 2007 08:06:06 +0000 Subject: [PATCH] Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich) SVN-Revision: 8329 --- src/airlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/airlink.c b/src/airlink.c index 4699af3..63bd518 100644 --- a/src/airlink.c +++ b/src/airlink.c @@ -135,6 +135,7 @@ int generate_image(char *kname, char *fsname, char *fname, int EHDR) else write(ffd, header + 2, 0x20); write(ffd, bk, lenk); + lenk += 0x20; if (!JFFS2) JFFS2 = 0x20; printf("Padding header+kernel - 0x%x + 0x%x = 0x%x\n", lenk, ((lenk - 1 + JFFS2) / JFFS2) * JFFS2 - lenk, -- 2.30.2