fwupd/plugins/flashrom
Sean Rhodes 2e856d21e0 plugins/flashrom: Only backup BIOS region
As we are only writing to the BIOS region, we only need to backup the BIOS
region. The will avoid the error "failed to back up original firmware" if
regions such as the ME can't be read.
2021-09-03 12:04:20 +01:00
..
example trivial: correct parsing of sample flashrom xml file 2021-04-09 16:02:20 +01:00
flashrom.quirk trivial: Make the quirk style more consistent 2021-08-23 18:10:12 +01:00
fu-flashrom-device.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-flashrom-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-flashrom-internal-device.c plugins/flashrom: Only backup BIOS region 2021-09-03 12:04:20 +01:00
fu-flashrom-internal-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-plugin-flashrom.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
meson.build flashrom: remove PS175 support 2021-07-14 06:40:38 +01:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00

Flashrom

Introduction

This plugin uses flashrom to update the system firmware.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an unspecified binary file format, which is typically the raw input for an EEPROM programmer.

This plugin supports the following protocol ID:

  • org.flashrom

Coreboot Version String

The coreboot version string can have an optional prefix (see below). After the optional prefix the major, minor string follows and finally the build string, containing the exact commit and repository state, follows.

For example 4.10-989-gc8a4e4b9c5-dirty

Exception on Lenovo devices

The thinkpad_acpi kernel module requires a specific pattern in the DMI version string. To satisfy those requirements coreboot adds the CBETxxxx prefix to the DMI version string on all Lenovo devices.

For example CBET4000 4.10-989-gc8a4e4b9c5-dirty

The coreboot DMI version string always starts with CBET.

GUID Generation

Internal device uses hardware ID values which are derived from SMBIOS.

  • HardwareID-3
  • HardwareID-4
  • HardwareID-5
  • HardwareID-6
  • HardwareID-10

They should match the values provided by fwupdtool hwids or the ComputerHardwareIds.exe Windows utility.

Update Behavior

The firmware is deployed to the SPI chip when the machine is in normal runtime mode, but it is only used when the device is rebooted.

Vendor ID Security

The vendor ID is set from the BIOS vendor, for example DMI:Google

Quirk Use

This plugin uses the following plugin-specific quirks:

FlashromProgrammer

Used to specify the libflashrom programmer to be used.

Since: 1.5.9

External Interface Access

This plugin requires access to all interfaces that libflashrom has been compiled for. This typically is /sys/bus/spi but there may be other interfaces as well.