projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0250efa
)
Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich)
author
Florian Fainelli
<florian@openwrt.org>
Fri, 3 Aug 2007 08:06:06 +0000
(08:06 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Fri, 3 Aug 2007 08:06:06 +0000
(08:06 +0000)
SVN-Revision: 8329
tools/firmware-utils/src/airlink.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/airlink.c
b/tools/firmware-utils/src/airlink.c
index 4699af3739380f993a0f8bdca4b33a9ace9efa74..63bd51835b871b7339a2f17472944d68eeada38a 100644
(file)
--- 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,