<font size="2"><div><font size="2">Hi</font></div><div><font size="2"><br></font></div><div><font size="2">I am trying to mass update the BIOS on </font>MB899 Intel ® CoreTM 2 Duo/CoreTM Duo/ Solo 945GM Mini-ITX Motherboard. I did compile the flashrom by following two modifications as I was getting errors for the global declaration . </div>

<div><br></div><div><b>Compilation errors</b></div><div>programmer.h:567: warning: declaration of 'programmer' shadows a global declaration</div><div><br></div><div><div>board_enable.c: In function 'nvidia_mcp_gpio_set':</div>

<div>board_enable.c:892: error: too few arguments to function 'pci_get_dev'</div></div><div><br></div>
<div><b>Compilation success with following changes.</b></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; background-color: rgb(255, 255, 255); "><div align="left"><font size="2"><b>1. Makefile</b></font></div>

<div align="left"><font size="2"><div align="left">CFLAGS  ?= -Os -Wall</div><div align="left">#CFLAGS  ?= -Os -Wall -Wshadow</div><div><br></div><div><b>2. board_enable.c</b></div></font></div><div align="left"><font size="2"><div align="left">

    dev = pci_get_dev(pacc, dev->domain, dev->bus, dev->dev, 1);</div><div align="left">/*    dev = pci_get_dev(pacc, dev->bus, dev->dev, 1);*/</div><div><br></div></font></div></span></div><div> </div><div>

Flash image he76.052008 was taken from another machine with proper BIOS using "flashrom -r he76.052008" command.</div><div><br></div><div>[root@ME2000 /tmp]$ flashrom -w he76.052008</div><div><font size="2"><div>

flashrom v0.9.4-r1395 on Linux 2.6.18.6-2g2g (i686), built with libpci 2.1.99-test8, GCC 4.0.2 20051125 (Red Hat 4.0.2-8), little endian</div>
<div>flashrom is free software, get the source code at <a href="http://www.flashrom.org" target="_blank">http://www.flashrom.org</a></div><div><br></div><div>Calibrating delay loop... OK.</div><div>Found chipset "Intel ICH7M". Enabling flash write... OK.</div>


<div>This chipset supports the following protocols: FWH.</div><div>Found SST flash chip "SST49LF004A/B" (512 kB, FWH) at physical address 0xfff80000.</div><div>Flash image seems to be a legacy BIOS. Disabling coreboot-related checks.</div>


<div>Reading old flash chip contents... done.</div><div>Erasing and writing flash chip... ERASE FAILED at 0x00000000! Expected=0xff, Read=0x49, failed byte count from 0x00000000-0x00000fff: 0x3f7</div><div>ERASE FAILED!</div>


<div>Reading current flash chip contents... done. ERASE FAILED at 0x00000000! Expected=0xff, Read=0x49, failed byte count from 0x00000000-0x0000ffff: 0xbea</div><div>ERASE FAILED!</div><div>FAILED!</div><div>Uh oh. Erase/write failed. Checking if anything changed.</div>


<div>Good. It seems nothing was changed.</div><div>Writing to the flash chip apparently didn't do anything.</div><div>This means we have to add special support for your board, programmer or flash chip.</div><div>Please report this on IRC at <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> (channel #flashrom) or</div>


<div>mail <a href="mailto:flashrom@flashrom.org" target="_blank">flashrom@flashrom.org</a>!</div><div>-------------------------------------------------------------------------------</div><div>You may now reboot or simply leave the machine running.</div>


<div><br></div></font></div><div><font size="2"><br></font></div><div>I would really appreciate if you could guide me on rectifying these errors.</div><br clear="all"></font><div align="left"><font size="2" face="Arial">With regards</font></div>

<div align="left"><font size="2" face="Arial"><br></font></div>
<div align="left"><font size="2" face="Arial">Rohit Vijapure</font></div>
<div align="left"><font size="2" face="Arial">Motorola Mobility.</font></div>
<div align="left"><font class="Apple-style-span" face="Arial">USA</font></div><br>