diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-05-22 07:49:23 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-05-22 07:49:23 +0000 |
commit | ac7e89329bac84699b3cacc517362e517f58a717 (patch) | |
tree | 2a5033b9222ae2d230dde67b353930d6d62d2055 | |
parent | b7e3af28b12545f8cffd156ba82507ca5ddfc61b (diff) | |
download | upstream-ac7e89329bac84699b3cacc517362e517f58a717.tar.gz upstream-ac7e89329bac84699b3cacc517362e517f58a717.tar.bz2 upstream-ac7e89329bac84699b3cacc517362e517f58a717.zip |
fix crc calculation with the new padding (#5143)
SVN-Revision: 15977
-rw-r--r-- | tools/firmware-utils/src/imagetag.c | 2 |
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 { |