Padding ROMs

From 15h.org
Jump to navigation Jump to search

ROM images can be padded to match the flash chip you have. This can be done with either OEM or coreboot ROM images. Simply concatenate your image until you reach the desired size.

For example, to pad a 2MB ROM into a 16MB ROM:

cat image_2MB.rom > image_16MB.rom
cat image_2MB.rom >> image_16MB.rom
cat image_2MB.rom >> image_16MB.rom
cat image_2MB.rom >> image_16MB.rom
cat image_2MB.rom >> image_16MB.rom
cat image_2MB.rom >> image_16MB.rom
cat image_2MB.rom >> image_16MB.rom
cat image_2MB.rom >> image_16MB.rom

This is useful if you want to test an OEM or coreboot ROM but do not have the corresponding flash chip size. If you want to actually utilize the extra space on the flash chip with a coreboot ROM, you will need to compile your own.