The wiki is being retired!
Documentation is now handled by the same processes we use for code: Add something to the Documentation/ directory in the coreboot repo, and it will be rendered to https://doc.coreboot.org/. Contributions welcome!
The coreboot CBFS Specification was originally announced here.
See cbfs.txt for details.
CBFS master header
All values are big endian coded.
|0x00||magic = "ORBC"||version||romsize||bootblocksize|
The meaning of each member is as follows:
- magic is a 32 bit number that identifies the ROM as a CBFS type. The magic number is 0x4F524243, which is 'ORBC' in ASCII.
- version is a version number for CBFS header. cbfs_header structure may be different if version is not matched.
- romsize is the size of the ROM in bytes. Coreboot will subtract 'size' from 0xFFFFFFFF to locate the beginning of the ROM in memory.
- bootblocksize is the size of bootblock reserved in firmware image.
- align is the number of bytes that each component is aligned to within the ROM. This is used to make sure that each component is aligned correctly with regards to the erase block sizes on the ROM - allowing one to replace a component at runtime without disturbing the others.
- offset is the offset of the the first CBFS component (from the start of the ROM). This is to allow for arbitrary space to be left at the beginning of the ROM for things like embedded controller firmware.
- architecture describes which architecture (x86, arm, ...) this CBFS is created for.