An Option ROM is a block of firmware stored on an expansion device, such as a graphics card, storage controller or network adapter, that the platform firmware locates and executes during startup to initialize the device before the operating system loads. In the Boot & firmware stage of operating systems, it lets add-in hardware provide its own display output, disk access or network boot capability without the motherboard firmware needing built-in support for it.
Option ROMs exist in two main forms: legacy x86 real-mode images used by BIOS and the Compatibility Support Module, and UEFI driver images in EFI Byte Code or native machine code. Because they run with full firmware privilege before any operating system protection exists, they are also a significant security concern.
How the firmware discovers and runs an Option ROM
The firmware discovers an Option ROM through the PCI expansion ROM base address register of each device. During enumeration, it maps the ROM into memory, checks for the signature bytes 0x55 0xAA at the start of each image, and reads a PCI data structure that identifies the vendor, device, code type and image length.
A single ROM can contain several images in sequence, for example a legacy image and a UEFI image, so that the same card works on old and new platforms. The firmware selects the image whose code type matches its execution environment and ignores the rest.
The table lists the main steps the firmware performs, from device enumeration to handing control to the bootloader.
| Stage | Firmware action | Result |
|---|---|---|
| Enumeration | Scans PCI and PCIe devices for expansion ROMs | Candidate images identified |
| Validation | Checks signature, checksum and code type | Compatible image selected |
| Authentication | Verifies signature when Secure Boot is active | Image allowed or rejected |
| Execution | Copies and runs the image or loads the driver | Device initialized |
| Service registration | Installs interrupt vectors or UEFI protocols | Device usable by bootloader |
Legacy and UEFI Option ROM types
The two Option ROM types differ in execution model, size limits and the interfaces they expose. Legacy images run in 16-bit real mode and hook BIOS software interrupts, while UEFI images are drivers that follow the UEFI driver model and publish protocols.
| Property | Legacy Option ROM | UEFI Option ROM |
|---|---|---|
| Code format | 16-bit x86 real-mode code | PE/COFF image, native or EFI Byte Code |
| Runtime space | About 128 KB shadow area shared by all ROMs | Normal UEFI memory allocation |
| Interface | Software interrupts such as INT 10h and INT 13h | Protocols such as Graphics Output Protocol |
| Required support | BIOS or CSM | Native UEFI firmware |
| Secure Boot | Cannot be verified | Signature can be verified |
The shared legacy shadow area is a frequent source of trouble. In systems with several RAID controllers or network cards, the combined legacy images can exhaust the available space, and the firmware then skips some devices, typically with an error about insufficient Option ROM memory.
Common devices that carry Option ROMs
Option ROMs appear on devices that must work before an operating system driver is available. Without one, a discrete graphics card would show no picture during setup, and a hardware RAID volume would be invisible to the bootloader.
| Device | Option ROM function | Visible effect |
|---|---|---|
| Graphics card | Video BIOS or GOP driver | Display output during POST and boot menu |
| RAID or SAS controller | Disk enumeration and array access | Configuration utility and bootable volumes |
| Network adapter | PXE or HTTP boot client | Network boot entry in boot order |
| NVMe adapter (older platforms) | NVMe boot driver | Boot from NVMe without native support |
| Storage HBA for SAN | Fibre Channel or iSCSI boot | Boot from remote storage |
Many servers allow administrators to enable or disable Option ROM execution per slot in the BIOS setup utility. Disabling unused ROMs shortens POST, frees legacy space and reduces the attack surface.
Option ROMs and Secure Boot
Option ROMs are a classic pre-boot attack vector because their code runs before the operating system and with full access to memory and devices. A malicious or tampered ROM could install a persistent implant that survives operating system reinstallation, an idea demonstrated publicly in research on firmware-level rootkits.
UEFI Secure Boot addresses this by requiring UEFI Option ROMs to be signed with a key trusted in the signature database. Most PCs ship with the Microsoft third-party UEFI certificate authority in that database specifically to allow signed add-in card drivers. Measured boot complements this by recording a hash of each Option ROM in TPM PCR 2, so remote attestation can detect unexpected changes.
Some hardened configurations go further and remove the third-party certificate from the database, which blocks all add-in card ROMs. This improves security but can leave a system with no display output or no boot device if it depends on those ROMs, so the change must be tested carefully.
Troubleshooting and practical considerations
Most Option ROM problems surface as missing devices, blank screens or slow startup. The cause is usually a mismatch between the firmware mode and the image types present on the card.
- Black screen with CSM disabled. The graphics card has only a legacy video BIOS; update the card firmware to add a GOP driver or enable CSM.
- Boot device missing from the menu. The controller’s Option ROM is disabled in setup or blocked by Secure Boot.
- Long POST times. Several network or storage ROMs each scan for devices; disable those that are not needed for booting.
- Legacy ROM space errors. Too many legacy images; switch to UEFI mode or disable unused ROMs.
Updating an Option ROM is usually done with the device vendor’s flashing tool, separately from the motherboard firmware update. A failed flash can leave the card unusable for booting, so a recovery path or a second boot device should be available.
Stripped to the essentials
When a computer starts, its built-in firmware does not know how to drive every possible add-on card. An Option ROM is a small instruction manual stored on the card itself. The computer reads it at startup, follows it, and the card is ready to use.
This is why a graphics card can show a picture before Windows or Linux loads, and why a network card can start the computer from a server. Because that code runs so early and with so much power, modern computers check its digital signature before trusting it.
Where it is applied
A data center team deploys new rack servers that must install their operating system over the network and boot from a hardware RAID 10 volume. The network adapter’s Option ROM provides a PXE and HTTP boot client, and the RAID controller’s Option ROM exposes the array to the firmware so the installer can see it.
On the first test, the team enables Secure Boot and disables CSM. The RAID controller works because its UEFI image is signed, but an older network card shows no boot entry because it carries only a legacy image. After the vendor’s firmware tool adds a signed UEFI driver to that card, every server boots from the network, installs automatically and then starts from the RAID volume. The team also disables Option ROMs on unused slots, which cuts POST time by roughly 40 seconds per server.