public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Masami Hiramatsu <masami.hiramatsu@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH v4 14/14] configs: synquacer: Enable EFI capsule update support
Date: Wed, 19 May 2021 14:46:55 +0900	[thread overview]
Message-ID: <162140321559.47256.7606820078942627778.stgit@localhost> (raw)
In-Reply-To: <162140306116.47256.6799058439792039400.stgit@localhost>

Enable EFI capsule update support. With the EFI capsule update,
you can update U-Boot, TF-A and OP-TEE. TF-A and OP-TEE are
usually combined as a FIP binary, but if the binary is bigger
than 480KB, you have to modify FIP header, split the OP-TEE
and stores the OP-TEE binary in the different place. This
configuration supports both cases.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
---
 Changes in v4:
   - Add some config options for EBBR.
 Changes in v3:
   - Fix a typo in dfu_alt_info.
---
 configs/synquacer_developerbox_defconfig |   17 +++++++++++++++++
 include/configs/synquacer.h              |    6 ++++++
 2 files changed, 23 insertions(+)

diff --git a/configs/synquacer_developerbox_defconfig b/configs/synquacer_developerbox_defconfig
index 2875fcd794..487755f444 100644
--- a/configs/synquacer_developerbox_defconfig
+++ b/configs/synquacer_developerbox_defconfig
@@ -112,3 +112,20 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
+CONFIG_EFI_CAPSULE_ON_DISK=y
+CONFIG_EFI_CAPSULE_FIRMWARE_MANAGEMENT=y
+CONFIG_EFI_CAPSULE_FIRMWARE=y
+CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
+CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y
+CONFIG_EFI_CAPSULE_FMP_HEADER=y
+CONFIG_FLASH_CFI_MTD=y
+CONFIG_CMD_DFU=y
+CONFIG_DFU_TFTP=y
+CONFIG_DFU_MTD=y
+CONFIG_DFU_RAM=y
+CONFIG_DFU_SF=y
+CONFIG_DFU_SF_PART=y
+CONFIG_FIT=y
+CONFIG_OF_LIBFDT=y
+CONFIG_CMD_ERASEENV=y
diff --git a/include/configs/synquacer.h b/include/configs/synquacer.h
index 0dab4de1f1..8fe10d7485 100644
--- a/include/configs/synquacer.h
+++ b/include/configs/synquacer.h
@@ -61,6 +61,11 @@
 /* Since U-Boot 64bit PCIe support is limited, disable 64bit MMIO support */
 /* #define CONFIG_SYS_PCI_64BIT		1 */
 
+#define DEFAULT_DFU_ALT_INFO "dfu_alt_info="				\
+			"mtd nor1=u-boot.bin raw 200000 100000;"	\
+			"fip.bin raw 180000 78000;"			\
+			"optee.bin raw 500000 100000\0"
+
 /* Distro boot settings */
 #ifndef CONFIG_SPL_BUILD
 #ifdef CONFIG_CMD_USB
@@ -104,6 +109,7 @@
 	"ramdisk_addr_r=0xa0000000\0"		\
 	"scriptaddr=0x88000000\0"		\
 	"pxefile_addr_r=0x88100000\0"		\
+	DEFAULT_DFU_ALT_INFO			\
 	BOOTENV
 
 #endif /* __CONFIG_H */

  parent reply	other threads:[~2021-05-19  5:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19  5:44 [PATCH v4 00/14] arm64: synquacer: Add SynQuacer/DeveloperBox support Masami Hiramatsu
2021-05-19  5:44 ` [PATCH v4 01/14] ata: ahci-pci: Use scsi_ops to initialize ops Masami Hiramatsu
2021-05-19  5:44 ` [PATCH v4 02/14] dm: pci: Skip setting VGA bridge bits if parent device is the host bus Masami Hiramatsu
2021-05-19  5:44 ` [PATCH v4 03/14] efi: Fix to use null handle to create new handle for efi_fmp_raw Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 04/14] gpio: Introduce CONFIG_GPIO_EXTRA_HEADER to cleanup #ifdefs Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 05/14] pci: synquacer: Add SynQuacer ECAM based PCIe driver Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 06/14] mmc: synquacer: Add SynQuacer F_SDH30 SDHCI driver Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 07/14] spi: synquacer: Add HSSPI SPI controller driver for SynQuacer Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 08/14] net: synquacer: Add netsec driver Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 09/14] i2c: synquacer: SNI Synquacer I2C controller Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 10/14] ARM: dts: synquacer: Add device trees for DeveloperBox Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 11/14] board: synquacer: Add DeveloperBox 96boards EE support Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 12/14] dfu_mtd: Ignore non-implemented lock device failure Masami Hiramatsu
2021-05-19  6:07   ` Sughosh Ganu
2021-05-19  6:34     ` Masami Hiramatsu
2021-05-28  8:50     ` Patrick DELAUNAY
2021-05-19  5:46 ` [PATCH v4 13/14] doc: qemu: arm64: Fix the documentation of capsule update Masami Hiramatsu
2021-05-19  5:46 ` Masami Hiramatsu [this message]
2021-05-23  8:07 ` [PATCH v4 00/14] arm64: synquacer: Add SynQuacer/DeveloperBox support Ilias Apalodimas
2021-05-24  0:54   ` Masami Hiramatsu

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-all 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=162140321559.47256.7606820078942627778.stgit@localhost \
    --to=masami.hiramatsu@linaro.org \
    --cc=u-boot@lists.denx.de \
    /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