From patchwork Mon May 10 06:33:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 433044 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2565979jao; Sun, 9 May 2021 23:34:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylQWK03g72Fuwa4djAykSlTHxdH9fZTBHDq/DfBxPQwk3cfFxh8xV7lLHkJ2ED8adgdfXG X-Received: by 2002:a50:fd0f:: with SMTP id i15mr17640061eds.278.1620628440983; Sun, 09 May 2021 23:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620628440; cv=none; d=google.com; s=arc-20160816; b=qFtb0m9IKsvQ9B/ZZ6+xG32DtRfUfjE2y0wy6uYVFv1rTV8Pcc8/K1VpmPT21RmpN2 6DvAM/tvdPfpKrh+CdE75CVy5yl5ZUzbfPZSq/8/i847j7Rq9HgCHsaQiTD7cbHExi3m uXr2F9bff7JEettEBLOAj6vqt8HY2V+lZx/qqxzRBx2rfSfPg+7Mz4e3UvwVYCISzb8z h21TU2q+YHbJQojbYanoWOKQUsfwPpURJN3AANQFnEGpBpuTQ9qO69KL4yx4bR7ktgrt myGVxCcBk2XVUvnXrv8PEiZM3QB9f80pDX6TVm2nN2EfickhQpPyctgA0ja/WT999d+I i/Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=cAXWaGrwmYfjtml6DWj4MSnYiSNrD9FNfF1JAJu88tA=; b=SuJHHNQgbpgR/Gu3Ff/Ng+nvLRscb1mApRGJNHFvZptc5ksgqE/VSMN+nggOeO7OsC cdAd5ZHXoM8DTkXVDWkwstAN0b9uNxBZS6Oo9kYSwXtaYc00mhR66rVrYXSmi8A6+AcV c2NJYyBcpIEOPwG40p0Yn2Dc0vWia1NhkppdlWrjYDBOusOFEJaD0BXP5xZfaU/cPwKG FC0x++d+Q4hHEFyqcnGaKAmE5xbyno5f7I8tXR/aDwQD96IhI9g0jF4EIZUS2DEppc8d aDDyRbhE/Oq1qjBjmcvemTD38EgflXABc0Xd/MMC0WCoowAa4/2jl70IUk5HVutm5Fzc f4RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ze2A6eEo; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id d18si12924432ede.25.2021.05.09.23.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ze2A6eEo; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8AD4882EDA; Mon, 10 May 2021 08:33:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Ze2A6eEo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA86382EF3; Mon, 10 May 2021 08:33:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BFD2382ED4 for ; Mon, 10 May 2021 08:33:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pj1-x102a.google.com with SMTP id t2-20020a17090a0242b0290155433387beso7710475pje.1 for ; Sun, 09 May 2021 23:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=cAXWaGrwmYfjtml6DWj4MSnYiSNrD9FNfF1JAJu88tA=; b=Ze2A6eEoyptOHcn8g81ImHO9FMCw5nn3CD8rr4W6X88pQcTZQcsg6AnYqMa/Jx4nYk X7F83ZCyGhf5o8YjoVbKaCYJd4/6nhFQLCHg6VhmlUPTQB/ZeIUrFXSNV7Ff7KDS4EmY l/h3bPqLIM3y3l+hr7XaEhab5Vzgx+/oE1ICoOfmQrjvGPnasOfkHMRBTUYGFilPqXQU +L5PZhGUksbs+8N1T8/rwm0M+xicd5vDgMGozdvKbR8TVSMB2++55/vnevt0bcMxbGvI kWLCXQaJbADTz84W4XgoQ2B37KzpbpMzbEtyufIvV6p/sG0oQ9/10C5blYdKLNhpdYYQ s/Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=cAXWaGrwmYfjtml6DWj4MSnYiSNrD9FNfF1JAJu88tA=; b=hVSQ9MdbTNbpdOUdbKRFpxfWaLVqDr7YLzvlqYw8nIUgQ1AlBSaHxBf0P3kMFqD+IY rGq38Gjnc9H0J6DsNbRTe5RRESn2QR2U4pKZj2TX6LR6Z0WnjzY6ttqXVj6rqkXmnqAl ISIMdB5Eo2O/peL6eew+VEtONY+x2up4UxOYZZfwHEEi15owAb0LsBOpBs2XA4hFDRMp 2UvJyx+SmhkF5/GPjtrkzHCZGQNVkbvahV2ekrK5TKD4EM9mqTcMplR69DerMqiQjbMD my/sEUxEBc19i140cQFxfSk7tXzVP1+cqrwdSbIUZlCPBoqVjbJUU7nUpdJiW4HvU+rQ DncA== X-Gm-Message-State: AOAM53045CqK3VPfLonH9mb3GC1PSN6RQrtAjpEOyn1irL+D3hr4YeQd 4RpAf6aMjVT2HEobeUd1hXwZrQ== X-Received: by 2002:a17:902:7b8e:b029:ec:f35a:918e with SMTP id w14-20020a1709027b8eb02900ecf35a918emr23523853pll.77.1620628409335; Sun, 09 May 2021 23:33:29 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id y13sm10380013pgs.93.2021.05.09.23.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:33:29 -0700 (PDT) From: Masami Hiramatsu To: Peng Fan , Simon Glass , Tom Rini , Heinrich Schuchardt , Alexander Graf , Jagan Teki , Vignesh R , Joe Hershberger , Ramon Fried , Sughosh Ganu Cc: Masami Hiramatsu , Jassi Brar , Ilias Apalodimas , Masahisa Kojima , Takahiro Akashi , Tim Harvey , Bin Meng , u-boot@lists.denx.de Subject: [PATCH v3 14/14] configs: synquacer: Enable EFI capsule update support Date: Mon, 10 May 2021 15:33:24 +0900 Message-Id: <162062840411.501222.16663129773006491967.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162062825393.501222.13616174511857694530.stgit@localhost> References: <162062825393.501222.13616174511857694530.stgit@localhost> User-Agent: StGit/0.19 MIME-Version: 1.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.102.4 at phobos.denx.de X-Virus-Status: Clean 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 --- Changes in v3: - Fix a typo in dfu_alt_info. --- configs/synquacer_developerbox_defconfig | 15 +++++++++++++++ include/configs/synquacer.h | 6 ++++++ 2 files changed, 21 insertions(+) diff --git a/configs/synquacer_developerbox_defconfig b/configs/synquacer_developerbox_defconfig index de12587775..428c66fa58 100644 --- a/configs/synquacer_developerbox_defconfig +++ b/configs/synquacer_developerbox_defconfig @@ -92,3 +92,18 @@ 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_RAW=y +CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y +CONFIG_CMD_EFIDEBUG=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_NVEDIT_EFI=y +CONFIG_CMD_ERASEENV=y diff --git a/include/configs/synquacer.h b/include/configs/synquacer.h index b2dd6d0f0f..f88fa21eff 100644 --- a/include/configs/synquacer.h +++ b/include/configs/synquacer.h @@ -58,6 +58,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 @@ -101,6 +106,7 @@ "ramdisk_addr_r=0xa0000000\0" \ "scriptaddr=0x88000000\0" \ "pxefile_addr_r=0x88100000\0" \ + DEFAULT_DFU_ALT_INFO \ BOOTENV #endif /* __CONFIG_H */