Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1088BC433FE for ; Fri, 22 Oct 2021 22:20:44 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC42A61205 for ; Fri, 22 Oct 2021 22:20:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EC42A61205 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FC338352A; Sat, 23 Oct 2021 00:20:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 8D7178352D; Sat, 23 Oct 2021 00:20:06 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F20C483461 for ; Sat, 23 Oct 2021 00:19:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.cardiotech.int ([194.191.235.54]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1M7rp8-1mZ54N0u94-004ySm; Sat, 23 Oct 2021 00:19:37 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Michael Walle , Marcel Ziswiler , Alex Marginean , Frieder Schrempf , Priyanka Jain , Rick Chen , Simon Glass , Yangbo Lu Subject: [PATCH v4 3/5] board: sl28: enable EFI UpdateCapsule support Date: Sat, 23 Oct 2021 00:19:22 +0200 Message-Id: <20211022221924.1226010-4-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211022221924.1226010-1-marcel@ziswiler.com> References: <20211022221924.1226010-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:Vokvkz+1kmv0EtAYfuh2flJdDN5UkC45EZpbDnRM+0AurA8qy/o nXIcZqU4sWALmXRsMbSwax0IRZfc47NYttnBaLPj7HOC7cQVGTpfe2yin+xkunF304VElrX DTNVncqOU14XGyoWPBNnZgAdIHscmslAakmseeK2Z344dk5hzgn5MCtD4bVCGTyrjqJ9xKi U+J+IdjTJeOSRrm3WrZWg== X-UI-Out-Filterresults: notjunk:1;V03:K0:IUm6TdakjC8=:qS4o4BJbMtsg2YTYGPTVP0 VfH9z2mHBVIA/pUsi4aTJXF94YaSFwl7mqfQL4dg4s4VPe1SuPIneKcbNNv3kHCprI3k/1Wa0 btIZN6GWQ9ZbCMCnDc6cRt5VP2N+flAbxPSfmvizBnfTvhO7Vy/pNfNL29rdo/72MKSsTIdHu 3uUp/NlhGX2RR+WwpI3jDNesrLV67Wwq6mZcElrAfpURy0j8d9hkpaKdjTGHXBqJoW27vf807 kpJ8FlwbdRUoB4HT9jPb+jWgLpvIln3E9wxpxZgN8fbpLDenI7NgBl6w4eZBN14CIVidFsQM+ Z8Qb6d5mwil5L+erAzkOy2YkQULrNsVVbN6bg9s5pCArHbk1DHlVrTxLbLdbogn4m/GE4ze0f k4KWF2jPbz/j3/f9K4Q3QjcmsCn0PjdpvhdBFfgcC3hFTONssxKsPt9QG8TdXVNXz98ZYR3e2 AeGbH38ARzFXibIGXxwO2TEXLzwCxDhZ6++qJY2dgUN+0avDsHTmXrHGWxtgu8JpTqbuZY7qh IpeTexw37BQAMViT+buw1wv/q7gUBS54mY1xjRMCv+CA7aWP8dnOZViWZR56CtwGa3eHdBAR1 a0Zgrq+0keXQ+gvnPTTZ3FNUQfUuJjm8Tdxsv/h16+BiNoT17DN6oiEKHZz1QSjWLP8tIJBRz YVIrjMu6li/Bs/GGrTugNhy8xKElzTRu25KPRn+PoxZfl4rpnNMdIp6BOGfGhwqSp8/0= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Michael Walle 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 Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-based on top of imx/master. Changes in v3: - use CONFIG_EFI_CAPSULE_FIRMWARE_FIT instead of CONFIG_EFI_CAPSULE_FIRMWARE_RAW Changes in v2: - 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 e066fe87771..accd1b04006 100644 --- a/configs/kontron_sl28_defconfig +++ b/configs/kontron_sl28_defconfig @@ -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 diff --git a/include/configs/kontron_sl28.h b/include/configs/kontron_sl28.h index 6769592101d..4152851ba41 100644 --- a/include/configs/kontron_sl28.h +++ b/include/configs/kontron_sl28.h @@ -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 -- 2.26.2