All of lore.kernel.org
 help / color / mirror / Atom feed
* [v2 0/6] Add Vendor Authorized Boot (VAB) support
@ 2021-01-07 10:03 Siew Chin Lim
  2021-01-07 10:03 ` [v2 1/6] arm: socfpga: Move Stratix10 and Agilex to use TARGET_SOCFPGA_SOC64 Siew Chin Lim
                   ` (5 more replies)
  0 siblings, 6 replies; 27+ messages in thread
From: Siew Chin Lim @ 2021-01-07 10:03 UTC (permalink / raw)
  To: u-boot

This is the 2nd version of patchset to add Vendor Authorized Boot (VAB)
support for Intel Agilex SoC device.

Vendor Authorized Boot is a security feature for authenticating
the images such as U-Boot, ARM trusted Firmware, Linux kernel,
device tree blob and etc loaded from FIT. After those images are
loaded from FIT, the VAB certificate and signature block appended
at the end of each image are sent to Secure Device Manager (SDM)
for authentication. U-Boot will validate the SHA384 of the image
against the SHA384 hash stored in the VAB certificate before
sending the image to SDM for authentication.

Patch status:
Have changes: Patch 1, 2, 5, 6
Other patches unchanged.

Detail changelog can find in commit message.

v1->v2:
--------
Patch 1:
-  Create common macro TARGET_SOCFPGA_SOC64 for Stratix10 and Agilex.
   This is new patch in 2nd version of VAB series. This is code clean up
   without functionality change.

Patch 2:
- Renamed CONFIG_SECURE_VAB_AUTH* to CONFIG_SOCFPGA_SECURE_VAB_AUTH*
- Changes in secure_vab.c
  - Changed to use SZ_1K for 1024
  - Updated comment in secure_vab.c of "... the certificate for T"
  - The code will report error before end of the function if reach
    maximum retry.
  - In board_prep_linux function, only execute linux_qspi_enable
    command if it exists in enviroment variable. It is optional.

Patch 5:
- Move CONFIG_BOOTCOMMAND to defconfig.
   This is new patch in 2nd version of VAB series. This is code clean up
   without functionality change.

Patch 6:
- Renamed CONFIG_SECURE_VAB_AUTH to CONFIG_SOCFPGA_SECURE_VAB_AUTH
- Add CONFIG_BOOTCOMMAND in defconfig

History:
--------
[v1]: https://patchwork.ozlabs.org/project/uboot/cover/20201110070505.26935-1-elly.siew.chin.lim at intel.com/

These patchsets have dependency on:
--------
Enable ARM Trusted Firmware for U-Boot
https://patchwork.ozlabs.org/project/uboot/cover/20201224102113.32972-1-elly.siew.chin.lim at intel.com/

Siew Chin Lim (6):
  arm: socfpga: Move Stratix10 and Agilex to use TARGET_SOCFPGA_SOC64
  arm: socfpga: soc64: Support Vendor Authorized Boot (VAB)
  arm: socfpga: cmd: Support 'vab' command
  arm: socfpga: dts: soc64: Update filename in binman node of FIT image
    with VAB support
  configs: socfpga: soc64: Move CONFIG_BOOTCOMMAND to defconfig
  configs: socfpga: Add defconfig for Agilex with VAB support

 arch/arm/Kconfig                                   |   6 +-
 arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi         |  22 +++
 arch/arm/mach-socfpga/Kconfig                      |  20 +++
 arch/arm/mach-socfpga/Makefile                     |   3 +
 arch/arm/mach-socfpga/include/mach/mailbox_s10.h   |   1 +
 arch/arm/mach-socfpga/include/mach/reset_manager.h |   3 +-
 arch/arm/mach-socfpga/include/mach/secure_vab.h    |  63 +++++++
 .../arm/mach-socfpga/include/mach/system_manager.h |   3 +-
 arch/arm/mach-socfpga/secure_vab.c                 | 193 +++++++++++++++++++++
 arch/arm/mach-socfpga/vab.c                        |  37 ++++
 common/Kconfig.boot                                |   2 +-
 configs/socfpga_agilex_atf_defconfig               |   2 +
 configs/socfpga_agilex_defconfig                   |   2 +
 ..._atf_defconfig => socfpga_agilex_vab_defconfig} |   5 +-
 configs/socfpga_stratix10_atf_defconfig            |   2 +
 configs/socfpga_stratix10_defconfig                |   2 +
 drivers/ddr/altera/Kconfig                         |   6 +-
 drivers/fpga/Kconfig                               |   2 +-
 drivers/sysreset/Kconfig                           |   2 +-
 include/configs/socfpga_soc64_common.h             |   9 +-
 20 files changed, 363 insertions(+), 22 deletions(-)
 create mode 100644 arch/arm/mach-socfpga/include/mach/secure_vab.h
 create mode 100644 arch/arm/mach-socfpga/secure_vab.c
 create mode 100644 arch/arm/mach-socfpga/vab.c
 copy configs/{socfpga_agilex_atf_defconfig => socfpga_agilex_vab_defconfig} (91%)

-- 
2.13.0

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

end of thread, other threads:[~2021-01-18  8:50 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07 10:03 [v2 0/6] Add Vendor Authorized Boot (VAB) support Siew Chin Lim
2021-01-07 10:03 ` [v2 1/6] arm: socfpga: Move Stratix10 and Agilex to use TARGET_SOCFPGA_SOC64 Siew Chin Lim
2021-01-18  6:21   ` Tan, Ley Foon
2021-01-07 10:03 ` [v2 2/6] arm: socfpga: soc64: Support Vendor Authorized Boot (VAB) Siew Chin Lim
2021-01-07 12:36   ` Simon Glass
2021-01-08  1:11     ` Lim, Elly Siew Chin
2021-01-08  3:23       ` Simon Glass
2021-01-08  5:17         ` Lim, Elly Siew Chin
2021-01-18  7:29   ` Tan, Ley Foon
2021-01-18  8:03     ` Lim, Elly Siew Chin
2021-01-18  8:50       ` Tan, Ley Foon
2021-01-07 10:03 ` [v2 3/6] arm: socfpga: cmd: Support 'vab' command Siew Chin Lim
2021-01-07 12:36   ` Simon Glass
2021-01-07 10:03 ` [v2 4/6] arm: socfpga: dts: soc64: Update filename in binman node of FIT image with VAB support Siew Chin Lim
2021-01-07 12:36   ` Simon Glass
2021-01-07 14:13     ` Lim, Elly Siew Chin
2021-01-07 16:21       ` Simon Glass
2021-01-08  0:57         ` Lim, Elly Siew Chin
2021-01-08  3:23           ` Simon Glass
2021-01-08  5:19             ` Lim, Elly Siew Chin
2021-01-08 16:48               ` Simon Glass
2021-01-07 10:03 ` [v2 5/6] configs: socfpga: soc64: Move CONFIG_BOOTCOMMAND to defconfig Siew Chin Lim
2021-01-18  7:31   ` Tan, Ley Foon
2021-01-07 10:03 ` [v2 6/6] configs: socfpga: Add defconfig for Agilex with VAB support Siew Chin Lim
2021-01-18  7:34   ` Tan, Ley Foon
2021-01-18  8:06     ` Lim, Elly Siew Chin
2021-01-18  8:45       ` Tan, Ley Foon

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.