The following is the GNU All-permissive License as recommended in

Copyright (C) 2024 Free Software Foundation

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Contributions are welcome. See

Useful for testing option roms for ryf

Based on

sudo flashrom -p internal -r rom
sudo chown $USER:$USER rom
cp rom $HOSTNAME.libreboot.rom
dtrx libreboot_r20160907_seabios_d945gclf.tar.xz
cbfstool libreboot_r20160907_seabios_d945gclf/d945gclf_txtmode.rom extract -n vgaroms/vgabios.bin -f vgabios.bin
cbfstool rom add  -f vgabios.bin -n vgaroms/vgabios.bin -t raw
cbfstool rom remove -n bootorder
cbfstool rom remove -n etc/show-boot-menu
cbfstool rom add-int -i 2 -n etc/pci-optionrom-exec
sudo flashrom -p internal -w rom

Then backup $HOSTNAME.libreboot.rom to a different machine