projects
/
openwrt
/
staging
/
kaloz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7e3af2
)
fix crc calculation with the new padding (#5143)
author
Florian Fainelli
<florian@openwrt.org>
Fri, 22 May 2009 07:49:23 +0000
(07:49 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Fri, 22 May 2009 07:49:23 +0000
(07:49 +0000)
SVN-Revision: 15977
tools/firmware-utils/src/imagetag.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/imagetag.c
b/tools/firmware-utils/src/imagetag.c
index 31ba9b9c08c32b87c54b682f127688bc0221c496..b392cab5f80100918465faed84cc5a9dbdc75e45 100644
(file)
--- 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 {