[Openec] checksum of first 64k of updateme.bin not calculated correctly

Richard A. Smith richard at laptop.org
Mon Nov 1 01:06:17 EDT 2010


On 10/31/2010 12:47 PM, Frieder Ferlemann wrote:
> Hi everyone,
>
> nice to see some traffic on the list!
> And nice to see ec-1.75 source!)
>

Yeah. Hope your eyes don't bleed from some of the stuff I've pulled in 
from the original code base.

> A minor glitch: the 32 bit checksum at address 0xfffc
> currently is not calculated correctly.
>
> The commit moved the filling with 0xff after the
> calculation of the checksum
> http://dev.laptop.org/git/users/rsmith/ec-1.75/commit/?id=63661f603d030d783f391f4ad9192ea7d913401e
> so that the little_endian_checksum_negative checksum
> runs over undefined data.

Thanks.  I'll fix.  That was me trying to figure out how to make 
srec_cat generate a 128k file so I could test the dediprog with 
flashrom.  We currently don't do anything with the checksum but someday 
someone might.

I didn't realize you could use multiple -fill commands.

-- 
Richard A. Smith  <richard at laptop.org>
One Laptop per Child


More information about the Openec mailing list