From patchwork Wed May 19 05:46:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 442371 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp986162jac; Tue, 18 May 2021 22:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX/6jQz3lnGyHi8OqCpvHDvwqESh/Li29dAIkgZrKCkJvVllJrzh0rIycHVI4K5S+3qKZp X-Received: by 2002:a17:906:5210:: with SMTP id g16mr10745779ejm.116.1621403260406; Tue, 18 May 2021 22:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621403260; cv=none; d=google.com; s=arc-20160816; b=y7qwYik0DMCoRwVt1Bd9+8V+EC+UzR+U9CePauzVU/PoWQiilmfBCY11Kk4EHe77/5 WqxI5D1z1Tx4q+Rb+2BZuyebyCPUGkjG+WYMNW/1IaKzWhZOTKcn7oT+6xzZyOYiClre 0Z0rybfVngupRKscy1snZqlekoNUoui6dc1You59y327fAeWIm4QNXAipBfGPEyxB4/L 7vPgiZ8QsPxjMGy6eEMetMkSgeobQ/nnOJcdoPdkMm1o+Py5xoXTtmVeI/fzKf82aa8F e8EuAMwyokT6CHwMBgA2iUJOarLiUYImhWYeXcTuyZ/oZb5u0U8d05/N30MuhH+BEhT1 KTXA== 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=CYeYCeHyKFwJBdhVr9099ZOAoE7hm3/U8jwPo14WHPc=; b=VoO5UWf7MeDBb2sXmP5SQ1ImRjDjZ0/3veOtvqPBWeQKyeQTlewrat8J+mB5s3yor2 s+JEqyQcguy5CX2z+YJIlNebK9DziILJz6vC7yI9TvBuqxVx2edHnumjMb4iuuhLktLl wvgXlSKHPM7Qt34z6ucoFDiT+MPEJq033aySZqxFVX68wJ3bYP/lbkc+VGVRLwdmlJF4 F4cqtklyRfvd6epjnbZMTpAeCwcp4uIr0ct2s+2I76nzdAct+y7LXXtD+5rLRzWYo7H2 U2wOpuNhOLaQMdLNZNo9DSc+JAvVxdGbP+oyPGT2JsJ8d4wPwG9fvi1wIDtLoRVOwIz/ owkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ShsaekZb; 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 n10si23558295ejk.556.2021.05.18.22.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 22:47:40 -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=ShsaekZb; 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 BCA6582D69; Wed, 19 May 2021 07:47:07 +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="ShsaekZb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 07C8082D5F; Wed, 19 May 2021 07:47:06 +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-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (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 6DA3282D5F for ; Wed, 19 May 2021 07:47:02 +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-x1029.google.com with SMTP id ep16-20020a17090ae650b029015d00f578a8so2838368pjb.2 for ; Tue, 18 May 2021 22:47:02 -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=CYeYCeHyKFwJBdhVr9099ZOAoE7hm3/U8jwPo14WHPc=; b=ShsaekZb5IbJawkpuhVS2eot0bQ2XUYhnPjA0ATq0X61IgY1r5bcuxBcFO29UNKQX0 PTBTqk1yBL6Lhs6iaSZWQcK8ibH7EBaQwYcBiIdzpHenSbDAKJdBmXAqeSXT2/vpzUoc 8MDnDM0DQP/n22j9jtIm2Hq0y2whMZhi6N9HUJhAWoUACk9bBAtuyz6XBWhTmfU+Hlca 5WTwG4PXP9oMsS19OgcVN4gKcp6ovX6TgefqowihQVYXEsv2RRAGn5pbdca/FEzb3FO6 uXyydAW3vsUAa3V43YfIOPIskoRZGKmEZdEJGRPxDTT+wqj5/hh09sTzCEW3jmX9pzGI aj3Q== 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=CYeYCeHyKFwJBdhVr9099ZOAoE7hm3/U8jwPo14WHPc=; b=qA+gcYK5llB1BfK8DMoDf/IkG4m8tMpH/Vq2zVTWB0U9kf/zta4wLIuZ5qCe8KmzOc AG4FJKn1GYy8YTd9Y7unDdWGaQC49FvdV3QglVJd5/OxkYKgP4F62NK6gQdFDBK8f1t6 bi14qWCN/a6enBMwxQKDi5nVsHU9iZNkm1732N1UoZvDfxNbznURJc5GVCJqqumxPj7A cMjQYk9q9PjcyDixKiJRjTmz5+YbvBKq0P+UJDvT+XL3jMHad8zKN1514DnXlHIkyAVZ 3jvIvERQwlfl81iGOM9WbIxVPNfY1dl3oobhzPPeS05kdsSpUJlHUGtqPKUUcv+td3NP Uq0A== X-Gm-Message-State: AOAM531d8BxY4C7Qxjb6aQvM5WVUdP69FZx6t0mnxNexKWVtxmu0z0RJ oZFlBAkal+pparZD82HDlQVQ/A== X-Received: by 2002:a17:90a:29c4:: with SMTP id h62mr10176434pjd.177.1621403221002; Tue, 18 May 2021 22:47:01 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id bb18sm3277636pjb.44.2021.05.18.22.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 22:47:00 -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 v4 14/14] configs: synquacer: Enable EFI capsule update support Date: Wed, 19 May 2021 14:46:55 +0900 Message-Id: <162140321559.47256.7606820078942627778.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162140306116.47256.6799058439792039400.stgit@localhost> References: <162140306116.47256.6799058439792039400.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 2875fcd794..487755f444 100644 --- a/configs/synquacer_developerbox_defconfig +++ b/configs/synquacer_developerbox_defconfig @@ -112,3 +112,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 */