fwupd/plugins/flashrom
Richard Hughes 6fdae41ae0 flashrom: Simplify the plugin to remove the indirection
For a while we flirted with the idea of updating non-internal
libflashrom-derived devices but the impedance mismatch was just too
great.

We removed the extra unused subclasses of FuFlashromDevice, but never
removed the indirection we added for the writing.
Remove the unused code now that we agree on the longer term plan.
2022-03-09 08:13:13 +00:00
..
example trivial: correct parsing of sample flashrom xml file 2021-04-09 16:02:20 +01:00
flashrom.quirk plugin/flashrom: Add MaxSize quirk for Lite II and III (#4362) 2022-03-07 14:26:36 +00:00
fu-flashrom-cmos.c Fix build error when sys/io.h is not available 2021-10-06 20:38:43 +01:00
fu-flashrom-cmos.h plugins/flashrom: Add private flag to reset CMOS 2021-09-10 16:25:32 +01:00
fu-flashrom-device.c flashrom: Simplify the plugin to remove the indirection 2022-03-09 08:13:13 +00:00
fu-flashrom-device.h flashrom: Simplify the plugin to remove the indirection 2022-03-09 08:13:13 +00:00
fu-plugin-flashrom.c flashrom: Simplify the plugin to remove the indirection 2022-03-09 08:13:13 +00:00
meson.build flashrom: Simplify the plugin to remove the indirection 2022-03-09 08:13:13 +00:00
README.md flashrom: Simplify the plugin to remove the indirection 2022-03-09 08:13:13 +00: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

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.