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

Add FMP GUIDs and generate capsules #499

Closed
wants to merge 2 commits into from
Closed

Add FMP GUIDs and generate capsules #499

wants to merge 2 commits into from

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Nov 2, 2023

Ref: #225
Ref: #434

TODO

For this change:

  • Generate GUIDs based on PCI IDs like fwupd
  • Firmware versioning compatible with UEFI
  • edk2: Enable capsule updates
  • edk2: Write FMP libraries/drivers (FmpDevicePkg)

For later:

  • Generate cabinets for fwupd
    • Create LVFS MetaInfo

These are just version 4 (random) UUIDs to use as FMP GUIDs.

This change was generated with the following command:

    find models/ -name edk2.config -exec bash -c 'echo -e "\n# FMP UUIDs for ESRT\nSYSTEM_FMP_UUID=$(uuidgen -r)\nEC_FMP_UUID=$(uuidgen -r)" >> {}' \;

And then staged for everything except QEMU.

Signed-off-by: Tim Crawford <[email protected]>
UEFI capsules require versions be represented as a u32, so our current
versioning scheme is not usable. Hard-code the versions to 1 for now.

fwupd can represent this u32 in multiple ways depending on the
`VersionFormat` specified in the MetaInfo or a quirk.

Ref: https://github.com/fwupd/fwupd/blob/1.8.12/plugins/uefi-capsule/README.md#version-format
Signed-off-by: Tim Crawford <[email protected]>
@crawfxrd crawfxrd closed this Apr 13, 2024
@crawfxrd crawfxrd deleted the dev/capsules branch December 9, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant