]> git.baikalelectronics.ru Git - uboot.git/commitdiff
configs: synquacer: Enable EFI capsule update support
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Fri, 4 Jun 2021 09:45:31 +0000 (18:45 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 6 Jul 2021 18:11:50 +0000 (14:11 -0400)
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>
configs/synquacer_developerbox_defconfig
include/configs/synquacer.h

index cbc09d3225bb14bc96f845d37466094d2c04c856..d42db9a1d69821ce0e8a997670a87647181917cc 100644 (file)
@@ -110,3 +110,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
index 0dab4de1f18c226bc700b8087b0799fe6e2c057a..8fe10d7485365fa8280f46acbf86325e25586a43 100644 (file)
 /* 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
        "ramdisk_addr_r=0xa0000000\0"           \
        "scriptaddr=0x88000000\0"               \
        "pxefile_addr_r=0x88100000\0"           \
+       DEFAULT_DFU_ALT_INFO                    \
        BOOTENV
 
 #endif /* __CONFIG_H */