The payload filo

See the documentation about coreboot, and why it needs a payload. So far I have only used filo.

Copy your /boot/grub directory to /boot/filo. This stops any interaction between grub and filo. Your future BIOS will boot according to /boot/filo/menu.lst, and the hard disk will boot according to /boot/grub/menu.lst.
Get and compile filo-0.5. Here is my configuration file

The only ones that I changed are the MULTIBOOT_IMAGE-1. This makes filo build a bootable filo.elf

And MENULIST_FILE = "hda1:/filo/menu.lst", you set up this file above; this is what will be used when you use coreboot. Note that /boot is the first partition on my disk.

If boot is a directory in the root partition and suppose this is the third partition, then this would become MENULIST_FILE = "hda3:/boot/filo/menu.lst"

Build your filo.elf and copy it into /boot. Boot it via the grub command line and make sure it works.

Null Modem Cable

If you have two machines you can see the output from coreboot. Get a good quality Null Modem cable and test it by running minicom on both machines. The only change that I made was to use ttyS0, instead of minicom's default of ttyS1.

You can now take a copy of the factory BIOS. First read the factory BIOS into a file

sudo flashrom -V -c Pm49FL004 -r -o factory

And then verify it

sudo flashrom -V -c Pm49FL004 -v factory

You now have a verified copy of the factory BIOS, ready to reprogram new chips.
.

The next step is to use that file to flash a brand new chip. To hot swap the BIOS chip I found it best to lay the machine on its back so you can put the chip out vertically. So gently extract the BIOS chip and put it into an anti-static bag. Get one of you new chips and locate it very carefully into position, note the bevel on one corner. Gentle pressure will now push the chip home. Put the computer back onto its feet, and check that the chip is there.

You can now reboot the machine and check that it works. You will need to interrupt the BIOS, read the optimized setting, reset the boot order, then write the settings back.

Repeat this procedure until you have two backup copies, then put those two copies away somewhere safe. You now have an emergency recovery procedure.

You may like to repeat this so that you have a spare factory BIOS chip to keep near the machine,

Coreboot

You can now build coreboot, check that the payloads are your working filo.elf, and just follow the build instructions. Set minicom working on the second machine, you might like to capture the data into a file. Write the coreboot image to the flash chip, after erasing first, then verify it.