From: Florian Fainelli Date: Fri, 22 May 2009 07:49:23 +0000 (+0000) Subject: fix crc calculation with the new padding (#5143) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ac7e89329bac84699b3cacc517362e517f58a717;p=openwrt%2Fstaging%2Fansuel.git fix crc calculation with the new padding (#5143) SVN-Revision: 15977 --- diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c index 31ba9b9c08..b392cab5f8 100644 --- a/tools/firmware-utils/src/imagetag.c +++ b/tools/firmware-utils/src/imagetag.c @@ -233,7 +233,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, /* Choose and compute the CRC32 that should be inserted in the tag */ /* and fill reserved tag following profile specification */ if ( profile && (strcmp(profile, "alice") == 0)) { - crc = compute_crc32(crc, binfile, kerneloff - fwaddr, kernellen); + crc = compute_crc32(crc, binfile, kerneloff - fwaddr, kernellen + rootfsoffpadlen); /* Should fill alice_data and put them on reserved1 */ } else {