All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] qemu: arm64: Add support for uefi capsule update on qemu arm64 platform
@ 2020-11-26 18:40 Sughosh Ganu
  2020-11-26 18:40 ` [PATCH 01/14] qemu: arm: Use the generated DTB only when CONGIG_OF_BOARD is defined Sughosh Ganu
                   ` (13 more replies)
  0 siblings, 14 replies; 49+ messages in thread
From: Sughosh Ganu @ 2020-11-26 18:40 UTC (permalink / raw)
  To: u-boot


The following series adds support for the uefi capsule update feature
on the qemu arm64 platform, along with adding support for the capsule
authentication feature.

The capsule update feature is supported on a platform configuration
booting in a non-secure mode, i.e with -machine virt,secure=off option
set. This results in the platform booting u-boot directly without
the presence of trusted firmware(tf-a). Steps that need to be followed
for using this feature have been provided as part of the documentation.

Support has also been added for enabling the capsule authentication
feature. Capsule authentication, as defined by the uefi
specification is very much on similar lines to the logic used for
variable authentication. As a result, most of the signature
verification code already in use for variable authentication has been
used for capsule authentication.

Storage of the public key certificate, needed for the signature
verification process is in form of the efi signature list(esl)
structure.  This public key is stored on the platform's device tree
blob. The public key esl file can be embedded into the dtb using the
mkeficapsule utility that has been added as part of the capsule update
support series[1]. Steps needed for enabling capsule authentication
have been provided as part of the documentation.

This patch series needs to be applied on top of the capsule update
support patch series from Takahiro Akashi[1]


[1] -
https://patchwork.ozlabs.org/project/uboot/cover/20201117002805.13902-1-takahiro.akashi at linaro.org/


Sughosh Ganu (14):
  qemu: arm: Use the generated DTB only when CONGIG_OF_BOARD is defined
  mkeficapsule: Add support for embedding public key in a dtb
  qemu: arm: Scan the pci bus in board_init
  crypto: Fix the logic to calculate hash with authattributes set
  qemu: arm64: Add support for dynamic mtdparts for the platform
  qemu: arm64: Set dfu_alt_info variable for the platform
  efi_loader: Add config option to indicate fmp header presence
  dfu_mtd: Add provision to unlock mtd device
  efi_loader: Make the pkcs7 header parsing function an extern
  efi_loader: Re-factor code to build the signature store from efi
    signature list
  efi: capsule: Add support for uefi capsule authentication
  efi_loader: Enable uefi capsule authentication
  efidebug: capsule: Add a command to update capsule on disk
  qemu: arm64: Add documentation for capsule update

 board/emulation/qemu-arm/qemu-arm.c | 170 ++++++++++++++++++++++++
 cmd/efidebug.c                      |  14 ++
 doc/board/emulation/qemu-arm.rst    | 157 ++++++++++++++++++++++
 drivers/dfu/dfu_mtd.c               |  20 ++-
 include/configs/qemu-arm.h          |   8 ++
 include/efi_api.h                   |  18 +++
 include/efi_loader.h                |  12 ++
 lib/crypto/pkcs7_verify.c           |  37 ++++--
 lib/efi_loader/Kconfig              |  24 ++++
 lib/efi_loader/efi_capsule.c        | 122 +++++++++++++++++
 lib/efi_loader/efi_firmware.c       |  49 ++++++-
 lib/efi_loader/efi_signature.c      | 192 ++++++++++++++++++++-------
 lib/efi_loader/efi_variable.c       |  93 +------------
 tools/Makefile                      |   1 +
 tools/mkeficapsule.c                | 198 ++++++++++++++++++++++++++--
 15 files changed, 954 insertions(+), 161 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2020-12-15 15:35 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 18:40 [PATCH 00/14] qemu: arm64: Add support for uefi capsule update on qemu arm64 platform Sughosh Ganu
2020-11-26 18:40 ` [PATCH 01/14] qemu: arm: Use the generated DTB only when CONGIG_OF_BOARD is defined Sughosh Ganu
2020-12-05  9:31   ` Heinrich Schuchardt
2020-12-07  5:15     ` Sughosh Ganu
2020-12-07 12:50       ` Heinrich Schuchardt
2020-12-07 17:58         ` Heinrich Schuchardt
2020-12-08  5:28           ` Sughosh Ganu
2020-12-08  9:02             ` Heinrich Schuchardt
2020-12-08  9:19               ` Sughosh Ganu
2020-12-08 21:54                 ` Heinrich Schuchardt
2020-12-09  5:25                   ` Sughosh Ganu
2020-12-09  7:26                     ` Heinrich Schuchardt
2020-12-09  8:26                       ` Sughosh Ganu
2020-12-15 11:10                   ` Sughosh Ganu
2020-12-15 12:55                     ` Heinrich Schuchardt
2020-12-15 15:35                       ` Sughosh Ganu
2020-11-26 18:40 ` [PATCH 02/14] mkeficapsule: Add support for embedding public key in a dtb Sughosh Ganu
2020-11-26 18:40 ` [PATCH 03/14] qemu: arm: Scan the pci bus in board_init Sughosh Ganu
2020-12-05  9:45   ` Heinrich Schuchardt
2020-12-07  5:16     ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 04/14] crypto: Fix the logic to calculate hash with authattributes set Sughosh Ganu
2020-12-05 10:21   ` Heinrich Schuchardt
2020-11-26 18:41 ` [PATCH 05/14] qemu: arm64: Add support for dynamic mtdparts for the platform Sughosh Ganu
2020-12-05 10:29   ` Heinrich Schuchardt
2020-12-07  5:30     ` Sughosh Ganu
2020-12-07 18:44     ` Tom Rini
2020-12-08  5:12       ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 06/14] qemu: arm64: Set dfu_alt_info variable " Sughosh Ganu
2020-12-05 10:31   ` Heinrich Schuchardt
2020-12-07  5:42     ` Sughosh Ganu
2020-12-07  6:56       ` Heinrich Schuchardt
2020-12-07  7:45         ` Sughosh Ganu
2020-12-07 18:47     ` Tom Rini
2020-12-08  5:18       ` Sughosh Ganu
2020-12-08 12:20         ` Tom Rini
2020-12-08 17:03           ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 07/14] efi_loader: Add config option to indicate fmp header presence Sughosh Ganu
2020-12-05 10:34   ` Heinrich Schuchardt
2020-12-07  6:02     ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 08/14] dfu_mtd: Add provision to unlock mtd device Sughosh Ganu
2020-11-26 18:41 ` [PATCH 09/14] efi_loader: Make the pkcs7 header parsing function an extern Sughosh Ganu
2020-12-05 10:40   ` Heinrich Schuchardt
2020-11-26 18:41 ` [PATCH 10/14] efi_loader: Re-factor code to build the signature store from efi signature list Sughosh Ganu
2020-11-26 18:41 ` [PATCH 11/14] efi: capsule: Add support for uefi capsule authentication Sughosh Ganu
2020-11-26 18:41 ` [PATCH 12/14] efi_loader: Enable " Sughosh Ganu
2020-12-05 10:47   ` Heinrich Schuchardt
2020-11-26 18:41 ` [PATCH 13/14] efidebug: capsule: Add a command to update capsule on disk Sughosh Ganu
2020-11-26 18:41 ` [PATCH 14/14] qemu: arm64: Add documentation for capsule update Sughosh Ganu
2020-12-05 10:16   ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.