diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-05-22 07:49:23 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-05-22 07:49:23 +0000 |
commit | f106876772067dc2ca8825a4ffdac3febe7dd7cb (patch) | |
tree | 19fd689becdbb0c5c8b1e7b05bf5798cb46357cd | |
parent | c2df3469a8065d500141f10337b27ac2da6d745b (diff) |
[tools] fix crc calculation with the new padding (#5143)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15977 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 31ba9b9c0..b392cab5f 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 { |