The following is the GNU All-permissive License as recommended in https://www.gnu.org/licenses/license-recommendations.en.html
Copyright (C) 2024 Free Software Foundation sysadmin@fsf.org
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 https://savannah.gnu.org/maintenance/fsf/.
Useful for testing option roms for ryf
Based on https://notabug.org/libreboot/libreboot/issues/467
sudo flashrom -p internal -r rom
sudo chown $USER:$USER rom
cp rom $HOSTNAME.libreboot.rom
wget https://mirror.splentity.com/libreboot/stable/20160907/rom/seabios/libreboot_r20160907_seabios_d945gclf.tar.xz
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