From 11a791a318a5c25552e230e8e6e472c2320a976b Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 2 Apr 2009 09:57:00 +0000 Subject: [PATCH] compute rootfs crc32 required for brcm63xx web upgrades SVN-Revision: 15081 --- tools/firmware-utils/src/imagetag.c | 5 +---- 1 file changed, 1 insertion(+), 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); } -- 2.34.1