Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 3 Aug 2007 08:06:06 +0000 (08:06 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 3 Aug 2007 08:06:06 +0000 (08:06 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8329 3c298f89-4303-0410-b956-a3cf2f4a3e73

tools/firmware-utils/src/airlink.c

index 4699af3..63bd518 100644 (file)
@@ -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,
This page took 0.025416 seconds and 4 git commands to generate.