From 06df64fc2f41647d6d4cb06f4db42263a2cb7ff5 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 22 May 2009 07:49:23 +0000 Subject: [PATCH] fix crc calculation with the new padding (#5143) SVN-Revision: 15977 --- src/imagetag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imagetag.c b/src/imagetag.c index 31ba9b9..b392cab 100644 --- a/src/imagetag.c +++ b/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 { -- 2.30.2