↓ Skip to main content

Intel Flash Descriptor Explained: SPI Flash Regions and Boundaries

Intel Flash Descriptor Explained: SPI Flash Regions and Boundaries

Desolder an SPI Flash chip from a motherboard, connect it to a programmer, and read its contents. On a typical board, you might obtain a 16 MB .bin file.

Open that file in a hex editor, and the contents may look like little more than a sea of FF bytes interrupted by scattered blocks of seemingly meaningless data.

Open the same image in UEFITool or inspect it with ifdtool, however, and a much clearer structure appears. You can identify where the BIOS resides, where Intel Management Engine (ME) firmware is stored, where the Gigabit Ethernet firmware lives, and which components are permitted to access each region.

The information defining this layout is stored in the first 4 KB of the SPI Flash image.

That area is the Intel Flash Descriptor (IFD). It acts as the master layout and access-control definition for the SPI Flash device.

Understanding the IFD helps explain several common firmware engineering problems:

  • Why does a motherboard fail to boot after flashing only the BIOS?
  • Why can replacing the ME firmware leave a system unable to start?
  • Why can expanding the BIOS region unexpectedly brick a board?

The answers begin with understanding how the IFD divides SPI Flash into four regions and defines their boundaries.

🗺️ 01. Four Regions, Four Separate Territories
#

On a typical 16 MB SPI Flash device, the Intel Flash Descriptor defines four primary regions:

Region Address Range Approximate Size Contents
Flash Descriptor (IFD) 0x000000–0x000FFF 4 KB Descriptor structures and PCH strap configurations
GbE 0x001000–0x002FFF 8 KB NIC MAC address and PXE boot image
ME 0x003000–0x5FFFFF ~6 MB Intel Management Engine firmware
BIOS 0x600000–0xFFFFFF ~10 MB UEFI firmware, ACPI tables, CPU microcode, and NVRAM

These four regions occupy separate address ranges within the same physical SPI Flash chip.

One particularly important distinction is frequently overlooked:

A BIOS.bin generated by a firmware build system usually represents only the BIOS Region, not the complete SPI Flash image.

This matters when programming a blank SPI Flash chip.

A complete image must contain the appropriate Descriptor, GbE, ME, and BIOS data, placed at the offsets defined by their respective region boundaries. Intel’s Flash Image Tool (FIT) is commonly used to assemble these components into a complete SPI image.

Simply writing BIOS.bin to the beginning of the chip does not produce a valid full-flash image. It can overwrite the Descriptor area while leaving the ME and GbE regions uninitialized or incorrectly positioned.

On platforms where ME initialization is required for the boot process, missing or incompatible ME firmware can prevent the system from reaching normal CPU execution. The result may be a completely unresponsive board with no visible POST output.

The important lesson is that the BIOS image and the complete SPI Flash image are not interchangeable.

📐 02. How the IFD Defines Region Boundaries
#

The boundaries between SPI Flash regions are not arbitrary byte offsets. They are defined using 4 KB address units.

Inside the IFD’s Region Descriptor table, each region is represented by a 32-bit value. Two fields determine its physical address range:

  • Base (Bit[14:0]): The starting 4 KB sector of the region.
  • Limit (Bit[29:16]): The ending 4 KB sector of the region.
  • Reserved bits: The remaining bits are reserved.

Both Base and Limit are expressed in units of 0x1000 bytes, rather than individual bytes.

The address calculations are therefore:

Region start address:

\[ \text{Start Address} = \text{Base} \times 0x1000 \]

Region end address:

\[ \text{End Address} = \text{Limit} \times 0x1000 + 0xFFF \]

Region size:

\[ \text{Region Size} = (\text{Limit} - \text{Base} + 1) \times 0x1000 \]

A Practical BIOS Region Example
#

Suppose the BIOS Region has the following descriptor values:

Base  = 0x800
Limit = 0xE00

The resulting address range is:

Starting address:

\[ 0x800 \times 0x1000 = 0x800000 \]

Ending address:

\[ 0xE00 \times 0x1000 + 0xFFF = 0xE00FFF \]

Total size:

\[ (0xE00 - 0x800 + 1) \times 0x1000 = 0x601000 \]

That gives a region slightly larger than 6 MB.

This is how the IFD defines the physical boundaries of each region: every region has its own Base and Limit values, and both are measured in 4 KB units.

A particularly important detail when inspecting firmware images is that Base must not exceed Limit for a normal non-empty region. If UEFITool displays a region with Base > Limit, it may indicate an invalid or incorrectly configured descriptor rather than a harmless display issue.

The consequences of such a configuration are discussed later.

⚙️ 03. Intel ME: The Component That Starts Before the BIOS
#

Many people assume that the BIOS is the first firmware code executed when a PC powers on.

On Intel platforms, that is not the complete picture.

The Intel Management Engine (ME) has its own independent processor core, dedicated SRAM, and firmware stored in the ME Region of SPI Flash.

During the early platform startup sequence, ME performs initialization before the host CPU begins executing BIOS instructions.

A simplified sequence looks like this:

  1. PCH receives power: The Platform Controller Hub powers up while the host CPU remains held in reset.
  2. ME firmware loads: The Management Engine loads its firmware from the ME Region in SPI Flash.
  3. ME initializes: It performs internal initialization and self-tests, participates in platform security operations such as Boot Guard verification, initializes supported out-of-band management functionality such as AMT, and coordinates relevant platform power and clock operations.
  4. CPU reset is released: Once the required platform initialization conditions are satisfied, the host CPU is allowed to begin execution.
  5. BIOS execution begins: The CPU fetches and executes its initial firmware instructions from the BIOS Region.

In other words, by the time the host CPU starts executing BIOS code, ME has already performed its own early initialization.

This independent execution architecture explains why the ME Region is so important when modifying SPI Flash contents.

BIOS Communicates With ME Through HECI
#

The relationship between BIOS and ME does not end once the host CPU starts executing.

BIOS firmware may need to communicate with the Management Engine for various platform-management operations. One important interface is HECI (Host Embedded Controller Interface), exposed through an Intel platform device commonly located at PCI address 00:16.0.

The host software sends requests through this interface. ME processes those requests according to its own firmware logic, security policies, and permitted operations.

It is not simply another BIOS module that the host CPU can freely overwrite or control.

This architectural separation is the reason ME firmware replacement and downgrade operations require particular care. A system may fail to initialize if the firmware image, platform configuration, or security state does not match what the hardware expects.

The IFD therefore does more than divide storage. It establishes a dedicated region for a component with independent execution and access-control requirements.

🔐 04. The Second Boundary: Flash Region Access Permissions
#

Physical address boundaries determine where each region begins and ends. They do not, by themselves, determine which components are allowed to access those regions.

For that, the Intel Flash Descriptor provides another important structure: Flash Region Access Permissions (FRAP).

FRAP defines read and write permissions for different bus masters, including:

  • Host CPU
  • Intel Management Engine
  • Gigabit Ethernet controller

These permissions apply to the regions defined in the IFD.

In a typical production configuration, the Host CPU may have permission to read the Flash Descriptor and read or write the BIOS Region, while its permissions for the ME and GbE regions may be disabled.

A simplified access matrix might look like this:

Bus Master Descriptor BIOS ME GbE
Host CPU Read Read/Write Restricted Restricted
ME Platform-dependent Platform-dependent Read/Write Platform-dependent
GbE Platform-dependent Platform-dependent Platform-dependent Read/Write

The exact permissions depend on the platform and descriptor configuration. The important point is that access is controlled independently for each region and bus master.

Why Intel FPT May Return Error 26
#

This access-control mechanism explains a common firmware engineering problem.

An engineer attempts to update the ME Region using Intel Flash Programming Tool (FPT), but the operation fails with:

Error 26

One possible cause is that the Host CPU does not have the required read or write permission for the target region in the FRAP configuration.

Even if the ME firmware image is valid, the SPI controller may reject the operation because the requesting bus master is not authorized to access that region.

Additional Hardware Protection Mechanisms
#

FRAP is not the only protection mechanism involved in SPI Flash access.

Intel platforms may also use additional hardware controls, including:

  • FLOCKDN (Flash Configuration Lock-Down): Locks selected flash configuration settings after initialization.
  • PRx (SPI Protected Range) registers: Define protected address ranges and associated access restrictions.
  • HAP bit: A platform configuration mechanism associated with disabling selected ME functionality, subject to platform generation and firmware support.
  • SVN (Security Version Number): Supports anti-rollback protection by preventing firmware with an older security version from being accepted in applicable configurations.

These mechanisms create multiple layers of protection around firmware regions.

Consequently, an attempted firmware modification can fail for reasons beyond the physical address layout. The descriptor permissions, hardware locks, firmware validation, and platform security state may all affect the result.

Understanding these controls is more useful than attempting to bypass them outside validated manufacturing or debugging environments, where an incorrect operation can leave a motherboard unbootable.

⚠️ 05. What Happens When Base and Limit Are Reversed?
#

One common low-level configuration mistake is assigning an invalid Base and Limit combination.

Consider two examples.

Valid configuration:

Base  = 0x800
Limit = 0xE00

The region has a positive size of approximately 6 MB.

Invalid inverted configuration:

Base  = 0xE00
Limit = 0x800

Using the region-size formula:

\[ \text{Size} = (0x800 - 0xE00 + 1) \times 0x1000 \]

The result is negative before any hardware-specific interpretation or implementation behavior is applied.

The SPI controller cannot treat this as a normal, valid region. Depending on the platform’s descriptor interpretation, the region may be treated as invalid or unavailable.

If the BIOS Region is effectively unavailable, the system cannot retrieve valid BIOS instructions from the expected address range. The host CPU may never reach normal firmware execution, resulting in a black screen and no conventional POST output.

A More Subtle Problem: Expanding the BIOS Region
#

Not every firmware layout failure comes from an obviously inverted Base and Limit value.

A more subtle problem occurs when an engineer manually expands the BIOS Region but fails to update all corresponding firmware build settings.

For example:

  1. The engineer enlarges the BIOS Region in the SPI Flash layout.
  2. The PEI Firmware Volume (FV) is moved backward by 3 MB in the Flash Map (FMap).
  3. The corresponding FV base-address PCD values in the firmware build configuration remain unchanged.
  4. The modified SPI image is programmed onto the motherboard.

The result can be a system that begins executing PEI code but fails when the firmware attempts to locate the PEI Firmware Volume.

One possible failure point is the code responsible for installing FvInfoPpi. If it still references the old FV base address, the PEI Core may be unable to locate the volume at its new physical location.

This illustrates an important distinction: changing the SPI Flash region layout does not automatically update the internal address references used by the firmware.

The IFD, Flash Map, firmware volumes, and build-time PCD settings must remain consistent.

🛠️ 06. How to Inspect SPI Flash Region Boundaries
#

You do not need to manually decode every IFD bitfield to inspect a complete SPI Flash image.

Three commonly used tools can help identify the region layout and verify the image configuration.

1. ifdtool
#

ifdtool, included in the coreboot toolchain, can parse the Flash Descriptor and display the region layout.

For example:

# Parse the region layout of a complete SPI Flash dump
ifdtool -f rom.layout backup.rom

A typical layout file might contain:

00000000:00000fff fd
00001000:00002fff gbe
00003000:005fffff me
00600000:00ffffff bios

Each line describes a region’s starting address, ending address, and region name.

This makes it easy to check whether the four regions occupy the expected address ranges.

2. UEFITool
#

Dell Latitude 5540 BIOS - BIOS Modding Requests

UEFITool provides a graphical way to inspect firmware images.

When opening a complete SPI Flash dump, it can display the Flash Descriptor and its associated regions, making it easier to identify:

  • Region boundaries
  • BIOS and ME placement
  • GbE region configuration
  • Invalid or suspicious Base and Limit combinations

For engineers who regularly inspect firmware images, the graphical representation can be more convenient than manually interpreting hexadecimal descriptor values.

3. Intel Flash Image Tool (FIT)
#

FIT (Intel Flash Image Tool) is used to configure and assemble complete SPI Flash images.

It allows BIOS engineers to work with the Descriptor, ME, GbE, and BIOS components and configure their placement within the flash layout.

However, the tool itself is also a potential source of configuration mistakes.

For example, when upgrading a platform from an 8 MB SPI Flash chip to a 16 MB device, an engineer must ensure that the Flash Size configuration in FIT matches the intended hardware.

If the image is generated using an incorrect flash-size setting, the resulting image may be truncated or fail verification.

Always Preserve a Known-Good Flash Backup
#

Before changing any SPI Flash contents, make a complete backup of the original chip.

A reliable procedure is:

  1. Read the entire SPI Flash chip using a hardware programmer or an appropriate FPT operation.
  2. Save at least two independent copies of the dump.
  3. Calculate the hash of each backup.
  4. Verify that the hashes match.
  5. Keep the original image untouched before beginning modifications.

For example, on Linux:

sha256sum backup1.bin backup2.bin

Matching hashes provide evidence that the two saved files contain identical data.

A complete, verified backup is essential when working with firmware layouts. Recovering from an incorrect BIOS image is much easier when the original Descriptor, ME, GbE, and BIOS regions are available.

📌 07. Three Principles to Remember About SPI Flash
#

The Intel Flash Descriptor defines much more than a collection of storage offsets. It establishes the physical organization and access-control structure of the platform’s SPI Flash.

Three principles summarize the architecture:

1. Four regions define the flash layout.

The Descriptor, BIOS, ME, and GbE regions occupy separate address ranges. Their locations are defined by the Region Descriptor table inside the IFD.

2. There are two distinct layers of boundaries.

Physical boundaries are defined by the Base and Limit fields, measured in 4 KB units. Access boundaries are controlled by FRAP, which determines which bus masters can read or write each region.

3. Intel ME initializes independently of the host BIOS.

ME has its own processor core, firmware region, and access permissions. Its early initialization takes place before the host CPU begins executing BIOS instructions.

Once these three principles are understood, many otherwise confusing SPI Flash failures become easier to diagnose. A motherboard that refuses to boot after a firmware update may not have a broken BIOS alone—the problem could be an incorrect Descriptor, a missing ME image, an access-control restriction, or an inconsistency between the flash layout and the firmware’s internal memory map.

Related