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
commit1e9385317f979e7635fd80ae289d6f14c85c10d4 (patch)
tree0a07bba3484f4767355da5615167418fd6496bbd /tools/firmware-utils/src
parent07865377fead5950259fa0d69d57e66ffbd072fc (diff)
downloadmaster-187ad058-1e9385317f979e7635fd80ae289d6f14c85c10d4.tar.gz
master-187ad058-1e9385317f979e7635fd80ae289d6f14c85c10d4.tar.bz2
master-187ad058-1e9385317f979e7635fd80ae289d6f14c85c10d4.zip
[tools] compute rootfs crc32 required for brcm63xx web upgrades
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15081 3c298f89-4303-0410-b956-a3cf2f4a3e73
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);
}