diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-08-03 08:06:06 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-08-03 08:06:06 +0000 |
commit | fdb3b8946ce68b39f004c29564e6cd712a9da0d3 (patch) | |
tree | 432870b4e90334b7c8612da095c3cff39f548cf1 /tools | |
parent | 82595e93885cbdf49193d148735198fc69147fb1 (diff) | |
download | upstream-fdb3b8946ce68b39f004c29564e6cd712a9da0d3.tar.gz upstream-fdb3b8946ce68b39f004c29564e6cd712a9da0d3.tar.bz2 upstream-fdb3b8946ce68b39f004c29564e6cd712a9da0d3.zip |
Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8329 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/firmware-utils/src/airlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c index 4699af3739..63bd51835b 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, |