From: Florian Fainelli Date: Thu, 2 Apr 2009 09:57:00 +0000 (+0000) Subject: compute rootfs crc32 required for brcm63xx web upgrades X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1a9d191bd56cb0da6f95ee26e8903f6a4fffe0b3;p=project%2Ffirmware-utils.git compute rootfs crc32 required for brcm63xx web upgrades SVN-Revision: 15081 --- diff --git a/src/imagetag.c b/src/imagetag.c index af37992..f5d0cdc 100644 --- a/src/imagetag.c +++ b/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); }