Project

General

Profile

Actions

Feature #587

open

Warnings about read-protected regions are shown for the area outside of what was requested with -i

Added by Anastasia Klimchuk 3 days ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Start date:
03/31/2025
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Description

With -i option, user can specify the regions they want to read.
flashrom reads whole flash and shows warnings for read-protected areas, even if those areas were not requested by -i

Example is with log attached, the command line is

flashrom -p internal -w <filename> --fmap -i EC -i COREBOOT -N >flashrom.log 2>&1

regions requested are EC and COREBOOT, in the logs there are 100+ warnings about "read_flash: cannot read inside Management Engine region" - but the user has not asked for ME region

The question is, should we show warnings for areas which are outside of what user requested?

Other notes:

  • warnings are not blocking, but there can be a lot of them
  • the option skip_unreadable_regions is not available from command line, but even if it would be available, this option impacts the reading from the whole flash regardless of what was requested by -i

This was raised from user experience of MrChromebox-flashrom, however this aspect seems the same for upstream too


Files

flashrom.log (11.7 KB) flashrom.log Anastasia Klimchuk, 03/31/2025 09:19 AM

No data to display

Actions

Also available in: Atom PDF