public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: edk2-devel@lists.01.org
Cc: leif.lindholm@linaro.org, alan@softiron.co.uk,
	naresh.bhat@linaro.org,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH 0/5] Platform/AMD/Overdrive: implement capsule support + some fixes
Date: Sun, 15 Oct 2017 10:54:48 +0100	[thread overview]
Message-ID: <20171015095453.4420-1-ard.biesheuvel@linaro.org> (raw)

This implements signed capsule update for AMD overdrive. Due to the lack of
support for warm reboot in the secure firmware, this only works from the
boot environment, not from the OS.

To update, build CapsuleApp [from MdeModulePkg] and issue the following command

FS0:> CapsuleApp STYXFIRMWAREUPDATECAPSULEFMPPKCS7.Cap

The update itself takes a minute or so, without producing any output.

>From the OS, fwupdate -l [as root] will give output like

{d34b3d29-0085-4ab3-8be8-84188cc50489} version 1 can be updated to any version above 0

but note that we will need to fix fwupdate to support non-persistent capsules.

The signing key is simply the test key from the EDK2 repo.

Patches #1 .. #3 are some unrelated fixes/improvements.

Patch #4 implements the PlatformFlashAccessLib instance that can be shared
across Styx platforms.

Patch #5 wires up all the bits and pieces for Overdrive. Doing the same for the
other Styx platforms is trivial, but should use different GUIDs to prevent the
capsules from being applied to the wrong platform.

Ard Biesheuvel (5):
  Platform/AMD/Overdrive: remove StatusCodeLib references
  Silicon/AMD/Styx: update SMMU id to MMU-401
  Silicon/Amd/Styx: fix flasher support
  Silicon/AMD/Styx: add PlatformFlashAccessLib implementation
  Platforms/AMD/Overdrive: add signed capsule update support

 Platform/AMD/OverdriveBoard/OverdriveBoard.dsc                                        |  45 ++++---
 Platform/AMD/OverdriveBoard/OverdriveBoard.fdf                                        |  83 +++++++++++++
 Platform/AMD/OverdriveBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptor.aslc    |  80 ++++++++++++
 Platform/AMD/OverdriveBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf     |  46 +++++++
 Platform/AMD/OverdriveBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptorPei.c    |  68 +++++++++++
 Platform/AMD/OverdriveBoard/SystemFirmwareUpdateConfig/SystemFirmwareUpdateConfig.ini |  25 ++++
 Platform/SoftIron/Overdrive1000Board/Overdrive1000Board.dsc                           |   2 +-
 Silicon/AMD/Styx/AcpiTables/Iort.c                                                    |   2 +-
 Silicon/AMD/Styx/Applications/StyxFlashUefi/StyxFlashUefi.inf                         |   2 +-
 Silicon/AMD/Styx/Library/StyxPlatformFlashAccessLib/StyxPlatformFlashAccessLib.c      | 128 ++++++++++++++++++++
 Silicon/AMD/Styx/Library/StyxPlatformFlashAccessLib/StyxPlatformFlashAccessLib.inf    |  47 +++++++
 11 files changed, 511 insertions(+), 17 deletions(-)
 create mode 100644 Platform/AMD/OverdriveBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptor.aslc
 create mode 100644 Platform/AMD/OverdriveBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf
 create mode 100644 Platform/AMD/OverdriveBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptorPei.c
 create mode 100644 Platform/AMD/OverdriveBoard/SystemFirmwareUpdateConfig/SystemFirmwareUpdateConfig.ini
 create mode 100644 Silicon/AMD/Styx/Library/StyxPlatformFlashAccessLib/StyxPlatformFlashAccessLib.c
 create mode 100644 Silicon/AMD/Styx/Library/StyxPlatformFlashAccessLib/StyxPlatformFlashAccessLib.inf

-- 
2.11.0



             reply	other threads:[~2017-10-15  9:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-15  9:54 Ard Biesheuvel [this message]
2017-10-15  9:54 ` [PATCH 1/5] Platform/AMD/Overdrive: remove StatusCodeLib references Ard Biesheuvel
2017-10-15  9:54 ` [PATCH 2/5] Silicon/AMD/Styx: update SMMU id to MMU-401 Ard Biesheuvel
2017-10-15  9:54 ` [PATCH 3/5] Silicon/Amd/Styx: fix flasher support Ard Biesheuvel
2017-10-15  9:54 ` [PATCH 4/5] Silicon/AMD/Styx: add PlatformFlashAccessLib implementation Ard Biesheuvel
2017-10-15  9:54 ` [PATCH 5/5] Platforms/AMD/Overdrive: add signed capsule update support Ard Biesheuvel
2017-10-15 19:10   ` Leif Lindholm
2017-10-15 22:29     ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171015095453.4420-1-ard.biesheuvel@linaro.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox