aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-05-22 07:49:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-05-22 07:49:23 +0000
commit8e8024fce21a81df1c873fa239741fe4234c3cf3 (patch)
tree19fd689becdbb0c5c8b1e7b05bf5798cb46357cd /tools
parent895cc55cde2e66dc7e13e49604278606220182e4 (diff)
downloadupstream-8e8024fce21a81df1c873fa239741fe4234c3cf3.tar.gz
upstream-8e8024fce21a81df1c873fa239741fe4234c3cf3.tar.bz2
upstream-8e8024fce21a81df1c873fa239741fe4234c3cf3.zip
[tools] fix crc calculation with the new padding (#5143)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15977 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/imagetag.c2
1 files changed, 1 insertions, 1 deletions
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 {