Re: [PATCH 2/8] firmware: Sigma: Skip header during CRC generation

From: Lars-Peter Clausen
Date: Fri Nov 25 2011 - 03:54:47 EST


On 11/24/2011 06:21 PM, Mike Frysinger wrote:
> On Thursday 24 November 2011 07:48:21 Lars-Peter Clausen wrote:
>> The firmware header is not part of the CRC, so skip it. Otherwise the
>> firmware will be rejected due to non-matching CRCs.
>
> that's because you didn't compare to the right value ;). include the CRC ->
> compare to 0. omit the CRC -> compare to the CRC value.

Does this really work if the CRC is inserted somewhere in the middle of the
bytestream?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/