projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
241b3d5
)
compute rootfs crc32 required for brcm63xx web upgrades
author
Florian Fainelli
<florian@openwrt.org>
Thu, 2 Apr 2009 09:57:00 +0000
(09:57 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Thu, 2 Apr 2009 09:57:00 +0000
(09:57 +0000)
SVN-Revision: 15081
tools/firmware-utils/src/imagetag.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/imagetag.c
b/tools/firmware-utils/src/imagetag.c
index af37992fae803de94ceffea1e721d5a82d93bbdf..f5d0cdca3279f842f88843e868c352c94e4c503d 100644
(file)
--- a/
tools/firmware-utils/src/imagetag.c
+++ b/
tools/firmware-utils/src/imagetag.c
@@
-191,10
+191,7
@@
int tagfile(const char *kernel, const char *rootfs, const char *bin,
fseek(binfile, rootfsoff - fwaddr, SEEK_SET);
while (rootfsfile && !feof(rootfsfile) && !ferror(rootfsfile)) {
read = fread(readbuf, sizeof(uint8_t), sizeof(readbuf), rootfsfile);
- /*
- * TODO: Is this necessary ?
- * crc = crc32(crc, readbuf, read);
- */
+ crc = crc32(crc, readbuf, read);
fwrite(readbuf, sizeof(uint8_t), read, binfile);
}