aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-04-02 09:57:00 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-04-02 09:57:00 +0000
commit11a791a318a5c25552e230e8e6e472c2320a976b (patch)
treef9abff62b501fa48a9b048a73212127f5ae1f6fc /tools/firmware-utils/src
parent241b3d5d407e95c9aa99ef604b30c08676939b74 (diff)
downloadupstream-11a791a318a5c25552e230e8e6e472c2320a976b.tar.gz
upstream-11a791a318a5c25552e230e8e6e472c2320a976b.tar.bz2
upstream-11a791a318a5c25552e230e8e6e472c2320a976b.zip
compute rootfs crc32 required for brcm63xx web upgrades
SVN-Revision: 15081
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r--tools/firmware-utils/src/imagetag.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c
index af37992fae..f5d0cdca32 100644
--- 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);
}