Project

General

Profile

Actions

Bug #643

open
EB

internal programmer: BCR write enable failure causes flash write to fail on Intel Tiger Lake (regression since v1.5)

Bug #643: internal programmer: BCR write enable failure causes flash write to fail on Intel Tiger Lake (regression since v1.5)

Added by Emmanuel BRUNACHE 15 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Programmer
Target version:
Start date:
05/04/2026
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Intel Tiger Lake LP / Tiger Lake U Premium, GigaDevice GD25B128B/GD25Q128B (16384 kB)
Affected OS:
Linux 7.0.0-15-generic (x86_64), Ubuntu 26.04

Description

Summary

Since flashrom v1.5, writing to the internal flash fails on Intel Tiger Lake LP
platforms. The same operation succeeds with v1.4.0.

Symptoms

flashrom v1.5+ attempts to set BIOS Control Register (BCR) bit BIOSWE at 0xdc,
fails, and aborts with a transaction error:

Warning: Setting BIOS Control at 0xdc from 0x88 to 0x89 failed.
New value is 0x88.
SPI Configuration is locked down.
...
Transaction error between offset 0x00500000 and 0x00500000
Write Failed!

v1.4.0 behavior (working)

v1.4.0 detects the SPI lockdown, logs "OK" and proceeds using hardware
sequencing — the write succeeds:

SPI Configuration is locked down.
Enabling hardware sequencing because some important opcode is locked.
OK.
...
Verifying flash... VERIFIED.

Suspected cause

The regression likely originates from one or both changes introduced in v1.5:

  • ichspi: Change the opcode position for reprogramming on the fly 2->4
  • ichspi: Merge spi_master implementations for Intel ich
  • Possibly related to the ECAM transition (libpci >= 3.13.0) changing how
    PCI registers are accessed, affecting BCR read/write behavior.

Workaround

Using flashrom v1.4.0 compiled from source works correctly on the same system.

Steps to reproduce

sudo flashrom -p internal:laptop=this_is_not_a_laptop -w firmware.bin

No data to display

Actions

Also available in: PDF Atom