projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b99dfc7
)
Fix image generation (sn9)
author
Florian Fainelli
<florian@openwrt.org>
Sun, 1 Apr 2007 11:08:26 +0000
(11:08 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Sun, 1 Apr 2007 11:08:26 +0000
(11:08 +0000)
SVN-Revision: 6781
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 aae68ebede4a2702598ddb0f6fa57af75a1345d2..5a396f357f91f683e7d5a546fe6f5322c99d7da5 100644
(file)
--- a/
tools/firmware-utils/src/airlink.c
+++ b/
tools/firmware-utils/src/airlink.c
@@
-102,7
+102,7
@@
u32 header[] = {
0x00000000, 0x00000005, 0x00000000, 0x00000000
};
-static int JFFS2 = 0
x20
;
+static int JFFS2 = 0;
int generate_image(char *kname, char *fsname, char *fname, int EHDR)
{
@@
-136,6
+136,7
@@
int generate_image(char *kname, char *fsname, char *fname, int EHDR)
else
write(ffd, header + 2, 0x20);
write(ffd, bk, lenk);
+ if (!JFFS2) JFFS2 = 0x20;
printf("Padding header+kernel - 0x%x + 0x%x = 0x%x\n",
lenk, ((lenk - 1 + JFFS2) / JFFS2) * JFFS2 - lenk,
((lenk - 1 + JFFS2) / JFFS2) * JFFS2);