From patchwork Fri Jun 4 09:45:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 454016 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp259261jae; Fri, 4 Jun 2021 02:46:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx98LPTY+kqs1j8KKmEysmDtFuMYEZoMFO5u/m/l2OvTMJtA1LpUaMM1uI5zk9NPSvS0vq5 X-Received: by 2002:a17:906:3109:: with SMTP id 9mr3249987ejx.339.1622799972529; Fri, 04 Jun 2021 02:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622799972; cv=none; d=google.com; s=arc-20160816; b=LRIucFt1vsZjlkW28WclmstHT44lYZA+o99wKvDFOHvBFocGOH1UwNr8MvkaP7MQSJ 2HnMrmKXe+jbFpd2nKg2th3zLPUBPaM+OUlz+DTalzZact+c1PRKD2qzGZUcM/d484/w auS6P/6CL8CP3JhL81dqyOJOP/9w41YyiGB8SMBFEyjTIFKlnQbXtXnriuQWOA4Er0eL ZoDEJaJoyp8WS7HqRBwJL3DzxBXUipygDQU8HvDIFNGWyd5zDg/YdqvJ0w70J2unuzBE TGhDLYwETl3mYG2XLf1G4oZy+X2HXaJa/OasmqCxSKyw56y00IaG04gFayvP++XL6AzF O+jw== 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=Qabeva/Bv8f0c11dEYC47QYTzvCynULNva1+kpuokL8=; b=hJGY39SYngmENhbPEcd/S+sLo6M6q1iPlzb6b6bLL8EezNYyn1DGii3gYVG2VXXlSA AATA/eB0RSYmrnzAmm7+OoMoZJfXWak7BXaHch+7WkF5OaN8qpW7pMMYfSt0D1V2s3s+ qxNx0Qdle/i6/3VPJWP3tnNEYjFiWQdYf3Yk3fBxdnv2LXd/WHKEAy9dEkJFPGtWyqf4 QJFbrCEqJBhwKcEmWRx77N9iUQfcMMxs0WZitAwz7SZJqZIEpzlFDuECwYsntr9z43YF yJjLvyD7N5hiG0Um95NA6vnkcc2X9I160XqPE+KgaCq2cg4oNEmWVaVjI4dVHv0l5+nL SvsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pC5Yb+iP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id n9si4107909edd.98.2021.06.04.02.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 02:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pC5Yb+iP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 3693E82F1B; Fri, 4 Jun 2021 11:45:46 +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="pC5Yb+iP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F32B682F09; Fri, 4 Jun 2021 11:45:43 +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-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (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 64AC982F18 for ; Fri, 4 Jun 2021 11:45:38 +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-x102b.google.com with SMTP id o17-20020a17090a9f91b029015cef5b3c50so7113922pjp.4 for ; Fri, 04 Jun 2021 02:45:38 -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=Qabeva/Bv8f0c11dEYC47QYTzvCynULNva1+kpuokL8=; b=pC5Yb+iPBya8fNds66jnxKnuuvHzarxiVvm6xVdazZ/8tA7VXFYRranVDJNc6ygapp dVqhp7UQUc7IE0FvMmU4QouSTB5hWEJt/IZkNFqYJAojCNMP9y72Ck9nK4mhgwsdfC4V t9u7kJlfvyxEi69NhJUQJpoBq7ovtMtkLAbvPlL1pNy4h7Sv3jL8Uprsa+yz21KQmSRZ y07+ObO/8rXYShoX9X9GxqpiuFuiXe96Ji+bvuMq1mzLxottdhZhQ5f72slqyZh+azAh +l2jhO6TyomYWJwOSloXCCjVG1+KNhBJWeWhhkxKiD0s0DUm8ehzjszv8XW/X8NQvnNq gcRA== 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=Qabeva/Bv8f0c11dEYC47QYTzvCynULNva1+kpuokL8=; b=KeTOpJyQfLSMBizwnQY3wrMY+vBjvChIgGNEXGp2PlWK+lq+WAjpoSM3TQI+fs7GB1 qDNPlsbpNvmZVu+2jOoGEQaTyx3XOc5HOjlKz9r37+1T14ob5gcyBjGWCTQRWLAbMLZi B1SqPnyO1a8At7+lLp7kfzhAUmWDPRUZv0uRai76/I/v+ssLQYWsqASRASrCyGLbw2ff UZu7j+I6vGQAKuklG8h5M5/dr21PxIyOZh9NeXXLXnvzCla6kxnVl8KfeF2HLRnPEAix 7vy5ZwreIURFD4Xin6YPLpH2csYNFlaLwZ810zPytHLgzNTeL8LqXzioTZhOPRSWz+nz xRUA== X-Gm-Message-State: AOAM531/qRH7mwSHbAR9oOhdPLRKHwXJHUY21Wz2mJm9IHX6+OJcw21d X0gP8wCaHF+t9SHXqrZFZPZ+vQ== X-Received: by 2002:a17:90a:4490:: with SMTP id t16mr4100237pjg.193.1622799936991; Fri, 04 Jun 2021 02:45:36 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id e9sm1351901pfv.87.2021.06.04.02.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 02:45:36 -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, Jaehoon Chung Subject: [PATCH v5 13/13] configs: synquacer: Enable EFI capsule update support Date: Fri, 4 Jun 2021 18:45:31 +0900 Message-Id: <162279993154.518877.15450042409453998202.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162279979193.518877.11119025270138617301.stgit@localhost> References: <162279979193.518877.11119025270138617301.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 v4: - Add some config options for EBBR. Changes in v3: - Fix a typo in dfu_alt_info. --- configs/synquacer_developerbox_defconfig | 17 +++++++++++++++++ include/configs/synquacer.h | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/configs/synquacer_developerbox_defconfig b/configs/synquacer_developerbox_defconfig index cbc09d3225..d42db9a1d6 100644 --- a/configs/synquacer_developerbox_defconfig +++ b/configs/synquacer_developerbox_defconfig @@ -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 diff --git a/include/configs/synquacer.h b/include/configs/synquacer.h index 0dab4de1f1..8fe10d7485 100644 --- a/include/configs/synquacer.h +++ b/include/configs/synquacer.h @@ -61,6 +61,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 @@ -104,6 +109,7 @@ "ramdisk_addr_r=0xa0000000\0" \ "scriptaddr=0x88000000\0" \ "pxefile_addr_r=0x88100000\0" \ + DEFAULT_DFU_ALT_INFO \ BOOTENV #endif /* __CONFIG_H */