fwupd/plugins/flashrom
Richard Hughes dfaae2e837 Move amdgpu safety check into the plugin
There are now multiple plugins using drm_dp_aux_dev interface which
may potentially be combined with an amdgpu. Prevent exercising this
interface with any plugin using DP aux unless a new enough kernel is
installed.
2021-07-04 17:49:36 +01:00
..
example trivial: correct parsing of sample flashrom xml file 2021-04-09 16:02:20 +01:00
flashrom.quirk flashrom: add lspcon-i2c-spi programmer support 2021-04-08 18:12:16 -06:00
fu-flashrom-device.c flashrom: Do not attempt to change the physical ID after setup() 2021-04-22 15:37:24 +01:00
fu-flashrom-device.h trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-flashrom-internal-device.c flashrom: make fu-flashrom-device derive from fu-udev-device 2021-04-08 18:12:16 -06:00
fu-flashrom-internal-device.h flashrom: make fu-flashrom-device a derivable type 2021-04-08 15:40:41 +01:00
fu-flashrom-lspcon-i2c-spi-device.c trivial: Use g_memdup2() on newer GLib versions 2021-04-23 13:59:28 -05:00
fu-flashrom-lspcon-i2c-spi-device.h flashrom: add lspcon-i2c-spi programmer support 2021-04-08 18:12:16 -06:00
fu-plugin-flashrom.c Move amdgpu safety check into the plugin 2021-07-04 17:49:36 +01:00
meson.build flashrom: add lspcon-i2c-spi programmer support 2021-04-08 18:12:16 -06:00
README.md flashrom: add lspcon-i2c-spi programmer support 2021-04-08 18:12:16 -06: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.

lspcon-i2c-spi devices use the customized DeviceInstanceId values, e.g.

  • FLASHROM-LSPCON-I2C-SPI\VEN_1AF8&DEV_0175

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:

Quirk Description Minimum fwupd version
FlashromProgrammer Used to specify the libflashrom programmer to be used. 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.