From: Florian Fainelli Date: Fri, 3 Aug 2007 08:06:06 +0000 (+0000) Subject: Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich) X-Git-Tag: reboot~28426 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6dcd8081a34936c82f53a94ba10467bb7aec2587;p=openwrt%2Fstaging%2Fblogic.git Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich) SVN-Revision: 8329 --- diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c index 4699af373938..63bd51835b87 100644 --- a/tools/firmware-utils/src/airlink.c +++ b/tools/firmware-utils/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,