Hi

I am trying to mass update the BIOS on 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 . 

Compilation errors
programmer.h:567: warning: declaration of 'programmer' shadows a global declaration

board_enable.c: In function 'nvidia_mcp_gpio_set':
board_enable.c:892: error: too few arguments to function 'pci_get_dev'

Compilation success with following changes.
1. Makefile
CFLAGS  ?= -Os -Wall
#CFLAGS  ?= -Os -Wall -Wshadow

2. board_enable.c
    dev = pci_get_dev(pacc, dev->domain, dev->bus, dev->dev, 1);
/*    dev = pci_get_dev(pacc, dev->bus, dev->dev, 1);*/

 
Flash image he76.052008 was taken from another machine with proper BIOS using "flashrom -r he76.052008" command.

[root@ME2000 /tmp]$ flashrom -w he76.052008
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
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Found chipset "Intel ICH7M". Enabling flash write... OK.
This chipset supports the following protocols: FWH.
Found SST flash chip "SST49LF004A/B" (512 kB, FWH) at physical address 0xfff80000.
Flash image seems to be a legacy BIOS. Disabling coreboot-related checks.
Reading old flash chip contents... done.
Erasing and writing flash chip... ERASE FAILED at 0x00000000! Expected=0xff, Read=0x49, failed byte count from 0x00000000-0x00000fff: 0x3f7
ERASE FAILED!
Reading current flash chip contents... done. ERASE FAILED at 0x00000000! Expected=0xff, Read=0x49, failed byte count from 0x00000000-0x0000ffff: 0xbea
ERASE FAILED!
FAILED!
Uh oh. Erase/write failed. Checking if anything changed.
Good. It seems nothing was changed.
Writing to the flash chip apparently didn't do anything.
This means we have to add special support for your board, programmer or flash chip.
Please report this on IRC at irc.freenode.net (channel #flashrom) or
mail flashrom@flashrom.org!
-------------------------------------------------------------------------------
You may now reboot or simply leave the machine running.


I would really appreciate if you could guide me on rectifying these errors.

With regards

Rohit Vijapure
Motorola Mobility.
USA