Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require FMP and "on disk" OsIndicationsSupported bits when supported #137

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions source/chapter2-uefi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Variables as found in :UEFI:`3.3`.
- Method for OS to request features from firmware.
* - `OsIndicationsSupported`
- Variable for firmware to indicate which features can be enabled.
See section :ref:`section-in-band-fw-update` for additional requirements.

.. _section-required-vars-for-on-disk:

Expand Down Expand Up @@ -615,13 +616,15 @@ secure platforms.
EBBR platforms are required to implement either an in-band or an out-of-band
firmware update mechanism.

.. _section-in-band-fw-update:

In-band firmware update
^^^^^^^^^^^^^^^^^^^^^^^

If firmware update is performed in-band (firmware on the application processor
updates itself), then the firmware shall implement the `UpdateCapsule()` runtime
service and accept only authenticated updates in the "Firmware Management
Protocol Data Capsule Structure" format as described in :UEFI:`23.3`, with
service and accept only authenticated updates in the Firmware Management
Copy link
Contributor

@xypron xypron Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UpdateCapsule() expects a scatter list. From that scatter list a capsule can be reconstructed as described in "23.3.2 DEFINED FIRMWARE MANAGEMENT PROTOCOL DATA CAPSULE STRUCTURE". The capsule consists of a EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER and a capsule body. The body starts with an EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER.

The term "Firmware Management Protocol Format" would not catch the existence of a scatter list and an EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER.

Protocol (FMP) format as described in :UEFI:`23.3`, with
`IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED` set. [#FMPNote]_
`UpdateCapsule()` is only required before `ExitBootServices()` is called.

Expand Down Expand Up @@ -650,6 +653,11 @@ Firmware must support the delivery of capsules via file on mass storage device
.. [#VarNote] Some Variables are required to support capsule "on disk".
See section :ref:`section-required-vars-for-on-disk`.

The `OsIndicationsSupported` Variable bits
`EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED` and
`EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED` must be set to indicate
support of capsules in FMP format and "on disk" delivery.

.. note::
It is recommended that firmware implementing the `UpdateCapsule()` runtime
service and an ESRT also implement the `EFI_FIRMWARE_MANAGEMENT_PROTOCOL`
Expand Down