[LinuxBIOS] [PATCH] pci_rom.c checksum extension rom

Alex Beregszaszi alex at rtfs.hu
Fri Sep 7 12:54:34 CEST 2007


Hi,

On Wed, 2007-09-05 at 04:29 +0200, Stefan Reinauer wrote:
> * Alex Beregszaszi <alex at rtfs.hu> [070904 13:17]:
> > Hi,
> > 
> > the attached patch adds code to checksum the pci extension rom and stop
> > if the stored and calculated checksum differ.
> 
> Is this checksum reliably correct? I am hesitating to add new
> restrictions that might break otherwise working cards.

You are right, attached is a correct method. There is no fixed checksum
byte, instead the whole should sum to zero.

--
Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: optionrom-checksum.diff
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070907/1bc9856e/attachment.diff>


More information about the coreboot mailing list