fix crc calculation with the new padding (#5143)

SVN-Revision: 15977
This commit is contained in:
Florian Fainelli 2009-05-22 07:49:23 +00:00
parent b7e3af28b1
commit ac7e89329b

View file

@ -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 */ /* Choose and compute the CRC32 that should be inserted in the tag */
/* and fill reserved tag following profile specification */ /* and fill reserved tag following profile specification */
if ( profile && (strcmp(profile, "alice") == 0)) { 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 */ /* Should fill alice_data and put them on reserved1 */
} }
else { else {