X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Ffirmware-utils%2Fsrc%2Fimagetag.c;fp=tools%2Ffirmware-utils%2Fsrc%2Fimagetag.c;h=b392cab5f80100918465faed84cc5a9dbdc75e45;hb=f106876772067dc2ca8825a4ffdac3febe7dd7cb;hp=31ba9b9c08c32b87c54b682f127688bc0221c496;hpb=c2df3469a8065d500141f10337b27ac2da6d745b;p=openwrt-10.03%2F.git 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 {