fwupd/plugins/uefi-capsule
Richard Hughes 5eabab90f4 trivial: Don't set a device ID if setting a physical ID
This isn't actually doing anything as setting a physical ID invalides
the manually-set ID.
2021-07-09 14:08:12 +01:00
..
tests uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fu-plugin-uefi-capsule.c Allow adding and removing custom flags on devices 2021-06-23 07:59:15 +01:00
fu-self-test.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-ucs2.c uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fu-ucs2.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fu-uefi-backend-freebsd.c trivial: Don't set a device ID if setting a physical ID 2021-07-09 14:08:12 +01:00
fu-uefi-backend-linux.c trivial: Don't set a device ID if setting a physical ID 2021-07-09 14:08:12 +01:00
fu-uefi-backend.h trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-bgrt.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-bgrt.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fu-uefi-bootmgr.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-bootmgr.h trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-common.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-common.h trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-device.c Standardize some of the device summary text 2021-07-09 07:07:07 +01:00
fu-uefi-device.h Allow adding and removing custom flags on devices 2021-06-23 07:59:15 +01:00
fu-uefi-devpath.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-devpath.h Only include the start year in the copyright header 2021-01-07 14:48:16 +00:00
fu-uefi-pcrs.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-pcrs.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fu-uefi-tool.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-update-info.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-uefi-update-info.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwupdate.1 Do not use help2man to build manual pages 2021-04-11 13:42:04 +01:00
make-images.py trivial: update python black style to 21.6b0 2021-06-16 06:41:46 -05:00
meson.build Depend on libefivar in uefi-capsule 2021-06-15 17:25:16 +01:00
README.md trivial: Codespell fixes 2021-04-26 10:29:39 +01:00
uefi_capsule.conf rename config section in uefi_capsule.conf to plugin name 2021-01-12 17:53:26 +00:00
uefi-capsule.quirk Simplify the quirk file format 2021-03-03 08:30:34 +00:00

UEFI Capsule Support

Introduction

The Unified Extensible Firmware Interface (UEFI) is a specification that defines the software interface between an OS and platform firmware. With the UpdateCapsule boot service it can be used to update system firmware.

If you don't want or need this functionality you can use the -Dplugin_uefi_capsule=false option.

When this plugin is enabled, the companion UEFI binary may also be built from the fwupd-efi project if not already present on the filesystem. This behavior can be overridden using the meson option -Defi_binary=false.

For this companion binary to work with secure boot, it will need to be signed by an authority trusted with shim and/or the host environment.

Lenovo Specific Behavior

On Lenovo hardware only the boot label is set to Linux-Firmware-Updater rather than "Linux Firmware Updater" (with spaces) due to long-fixed EFI boot manager bugs. Many users will have these old BIOS versions installed and so we use the use-legacy-bootmgr-desc quirk to use the safe name.

On some Lenovo hardware only one capsule is installable due to possible problems with the UpdateCapsule coalesce operation. As soon as one UEFI device has been scheduled for update the other UEFI devices found in the ESRT will be marked as updatable-hidden rather than updatable. Rebooting will restore them so they can be updated on next OS boot.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in EFI capsule file format.

See the UEFI specification for details.

This plugin supports the following protocol ID:

  • org.uefi.capsule

Update Behavior

The firmware is deployed when the OS is running, but it is only written when the system has been restarted and the fwupd*.efi binary has been run. To achieve this fwupd sets up the EFI BootNext variable, creating the new boot entry if required.

GUID Generation

These devices use the UEFI GUID as provided in the ESRT. Additionally, for the system device the main-system-firmware GUID is also added.

For compatibility with Windows 10, the plugin also adds GUIDs of the form UEFI\RES_{$(esrt)}.

Vendor ID Security

The vendor ID is set from the BIOS vendor, for example DMI:LENOVO for all devices that are not marked as supporting Firmware Management Protocol. For FMP device no vendor ID is set.

UEFI Unlock Support

On some Dell systems it is possible to turn on and off UEFI capsule support from within the BIOS. This functionality can also be adjusted from within the OS by fwupd. This requires compiling with libsmbios support.

When fwupd has been compiled with this support you will be able to enable UEFI support on the device by using the unlock command.

Custom EFI System Partition

Since version 1.1.0 fwupd will autodetect the ESP when it is mounted on /boot/efi, /boot, or /efi. A custom EFI system partition location can be used by modifying OverrideESPMountPoint in /etc/fwupd/uefi_capsule.conf.

Setting an invalid directory will disable the fwupd plugin.

External interface access

This plugin requires:

  • read/write access to the EFI system partition.
  • read access to /sys/firmware/efi/esrt/
  • read access to /sys/firmware/efi/fw_platform_size
  • read/write access to /sys/firmware/efi/efivars