diff mbox series

[v2,3/5] board: sl28: enable EFI UpdateCapsule support

Message ID 20210913152240.2747594-3-michael@walle.cc
State Superseded
Delegated to: Priyanka Jain
Headers show
Series [v2,1/5] board: sl28: enable EFI_SET_TIME support | expand

Commit Message

Michael Walle Sept. 13, 2021, 3:22 p.m. UTC
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>
---
changes since v1:
 - new patch

 configs/kontron_sl28_defconfig | 6 ++++++
 include/configs/kontron_sl28.h | 2 ++
 2 files changed, 8 insertions(+)

Comments

Michael Walle Sept. 25, 2021, 6:59 a.m. UTC | #1
Am 13. September 2021 17:22:38 MESZ schrieb Michael Walle <michael@walle.cc>:
>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>
>---
>changes since v1:
> - new patch
>
> configs/kontron_sl28_defconfig | 6 ++++++
> include/configs/kontron_sl28.h | 2 ++
> 2 files changed, 8 insertions(+)
>
>diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig
>index 8bd7d5be4b..20b4a8c40d 100644
>--- a/configs/kontron_sl28_defconfig
>+++ b/configs/kontron_sl28_defconfig
>@@ -60,6 +60,8 @@ CONFIG_SCSI_AHCI=y
> CONFIG_SATA_CEVA=y
> CONFIG_FSL_CAAM=y
> CONFIG_SYS_FSL_DDR3=y
>+CONFIG_DFU_MMC=y
>+CONFIG_DFU_SF=y
> CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
> CONFIG_I2C_DEFAULT_BUS_NUMBER=0
> CONFIG_I2C_MUX=y
>@@ -93,3 +95,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_RAW=y

Mh this is wrong and it should have the fit support enabled. Something must have gone wrong while saving the defconfig. 

please disregard this patch, I'll send a new version of it once I have access to a computer again. 

thanks, 
-michael
diff mbox series

Patch

diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig
index 8bd7d5be4b..20b4a8c40d 100644
--- a/configs/kontron_sl28_defconfig
+++ b/configs/kontron_sl28_defconfig
@@ -60,6 +60,8 @@  CONFIG_SCSI_AHCI=y
 CONFIG_SATA_CEVA=y
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_FSL_DDR3=y
+CONFIG_DFU_MMC=y
+CONFIG_DFU_SF=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_DEFAULT_BUS_NUMBER=0
 CONFIG_I2C_MUX=y
@@ -93,3 +95,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_RAW=y
diff --git a/include/configs/kontron_sl28.h b/include/configs/kontron_sl28.h
index bfb4e67c8f..a02b8ce2b1 100644
--- a/include/configs/kontron_sl28.h
+++ b/include/configs/kontron_sl28.h
@@ -96,6 +96,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