From: John Crispin Date: Wed, 3 Jun 2015 13:58:48 +0000 (+0000) Subject: tools/firmware-utils: Allow changing the CRC32 poly value in mkbrnimg X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5d3f0eea1c2ff9e72ba9c2a750e45e915e9bae52;p=openwrt%2Fstaging%2Fnbd.git tools/firmware-utils: Allow changing the CRC32 poly value in mkbrnimg VGV7519 is currently the only device with brnboot support. It seems to be happy with 0x2083b8ed as CRC32 poly. However, VGV7510KW22 fails to validate the checksum - it requires 0x04c11db7 instead. I have built an brnboot image manually on the command line, once with the old code and then with the new code but passing the old CRC32 poly value. Both resulted in a brnboot image with the same sha1sum. Signed-off-by: Martin Blumenstingl SVN-Revision: 45881 --- diff --git a/tools/firmware-utils/src/mkbrnimg.c b/tools/firmware-utils/src/mkbrnimg.c index fff92c4ef6..fde30b2ea5 100644 --- a/tools/firmware-utils/src/mkbrnimg.c +++ b/tools/firmware-utils/src/mkbrnimg.c @@ -32,9 +32,14 @@ static uint32_t crc32[1<