]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sl28: enable EFI UpdateCapsule support
authorMichael Walle <michael@walle.cc>
Tue, 9 Nov 2021 09:18:51 +0000 (14:48 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 09:19:01 +0000 (14:49 +0530)
Enable support for update over EFI UpdateCapsule mechanism. This board
doesn't support setting EFI variables after ExitBootservices().
Therefore, we are also enabling EFI_IGNORE_OSINDICATIONS.

Signed-off-by: Michael Walle <michael@walle.cc>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
configs/kontron_sl28_defconfig
include/configs/kontron_sl28.h

index f24051ac649c5331de7b785f3d1f63f7c4adb1e3..4689d44b684c23d3230433cce54221fd43945bd1 100644 (file)
@@ -64,6 +64,8 @@ CONFIG_FSL_CAAM=y
 CONFIG_SYS_FSL_DDR3=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
+CONFIG_DFU_MMC=y
+CONFIG_DFU_SF=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
 CONFIG_MMC_HS400_SUPPORT=y
@@ -95,3 +97,7 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_OF_LIBFDT_ASSUME_MASK=0x0
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_EFI_SET_TIME=y
+CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
+CONFIG_EFI_CAPSULE_ON_DISK=y
+CONFIG_EFI_IGNORE_OSINDICATIONS=y
+CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y
index 6769592101def84235a220416555695c07bb21df..4152851ba414d96631c583eddb6e10bfb12bc3ea 100644 (file)
@@ -88,6 +88,8 @@
        "envload=env import -d -b ${env_addr}\0" \
        "install_rcw=source 20200000\0" \
        "fdtfile=freescale/fsl-ls1028a-kontron-sl28.dtb\0" \
+       "dfu_alt_info=sf 0:0=u-boot-bin raw 0x210000 0x1d0000;" \
+                           "u-boot-env raw 0x3e0000 0x20000\0" \
        ENV_MEM_LAYOUT_SETTINGS \
        BOOTENV