aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-03 08:06:06 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-03 08:06:06 +0000
commit6dcd8081a34936c82f53a94ba10467bb7aec2587 (patch)
tree43ae9e07db38bda2f72f8884b9e78f264f08b62d /tools/firmware-utils/src
parent0250efa1eaa2929f8ec35de6fd2ae0e29cf41450 (diff)
downloadupstream-6dcd8081a34936c82f53a94ba10467bb7aec2587.tar.gz
upstream-6dcd8081a34936c82f53a94ba10467bb7aec2587.tar.bz2
upstream-6dcd8081a34936c82f53a94ba10467bb7aec2587.zip
Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich)
SVN-Revision: 8329
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r--tools/firmware-utils/src/airlink.c1
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,