From patchwork Tue Jul 25 08:57:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 706122 Delivered-To: patch@linaro.org Received: by 2002:a5d:464f:0:b0:317:2194:b2bc with SMTP id j15csp67975wrs; Tue, 25 Jul 2023 02:02:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGSACuVLkbatTcAIFWNG6G5c+O87bHYLds8lESAfU5hu6aYowcVNsxIzk26lFmKJwtqBcsG X-Received: by 2002:a5d:680c:0:b0:317:2574:c2b1 with SMTP id w12-20020a5d680c000000b003172574c2b1mr9223152wru.30.1690275736763; Tue, 25 Jul 2023 02:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690275736; cv=none; d=google.com; s=arc-20160816; b=yrBfASD7uczwSixXUde05hJpYmzFkeSjktKZRMBFJ6pnncT80ERyarha4craJZGMGl oqpIPby87mCn2d+nhHa21CO8skDJzLdCuJffREIRW+gW2k/dX4Cq7wG/BEuXfOFAKTR2 iG7MuSE1h62jTQbvum7lQzzljYQAPCkv/yUhiAul32+kS0Wi0oM7IgYAKYfXUosEzqwp LCEcX/zTtjIujyn0RaPPYDmZDt+wV7asTAeDwkOksfcyiDV+BdPpHPC+Walf+zF9NkSs FwKA7OtIp3aQefjyygjX2apgm1iTQefoo4gjN96mC7EHQpzFyYr868R2b1Ddid+htwu/ q+YA== 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:references:in-reply-to:message-id:date:subject:cc:to :from; bh=PLE0WI2uI5d7VwZc3bZCcnh1SSJ5VzaBUfQGaBT8TQ8=; fh=pvWoYJ8DnC9IyTD46q2s71hlWpPSBdE/YYp0/eyIYcc=; b=p9TSAe3KldnT4XIMq8I8nDKkjyLx/WlvWAj118/jubVUii8kVfbYGwhe00KirAYV67 ebUO8nw1J9Zcs3x2OEozOiIoE5doY63AuCVO1+7K8WSduXTbVjZnEGVHDMVEi40WZ7wT J9VRFsIeUHakKGoU/Ku3rx5OPrWpzxYCa+7KgIQttb89dLkqH2f0sREum+8Qv+WmIEJd eYF5EV/uZcG7IIjOQPO9a+x972BCwxYS9Ud/7CCyx+dXBzQRC0P6QFQNMASQnFPcEGZ4 PToDfIEwJGrqx3MXjP0wJESJv7Kh6A1lmgsyaTcek6Evp0NFqasBcYmHi0lWdMQw8Ep3 dwbg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 j22-20020a5d4536000000b003173a23396fsi4144503wra.191.2023.07.25.02.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 02:02:16 -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; 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=fail (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 18D0086841; Tue, 25 Jul 2023 11:02:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org 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 304038671A; Tue, 25 Jul 2023 10:59:46 +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=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id C32C586A51 for ; Tue, 25 Jul 2023 10:58:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 726D715DB; Tue, 25 Jul 2023 01:58:50 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.46.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7F7213F6C4; Tue, 25 Jul 2023 01:58:04 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Malte Schmidt , Michal Simek , Tom Rini , Sughosh Ganu Subject: [PATCH v5 04/12] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Tue, 25 Jul 2023 14:27:17 +0530 Message-Id: <20230725085725.350917-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725085725.350917-1-sughosh.ganu@linaro.org> References: <20230725085725.350917-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Update the document to specify how the EFI Signature List(ESL) file can be embedded into the platform's dtb as part of the u-boot build. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V4: None doc/develop/uefi/uefi.rst | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index a7a41f2fac..b2854b52a6 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -522,20 +522,16 @@ and used by the steps highlighted below. ... } -You can do step-4 manually with +You can perform step-4 by defining the Kconfig symbol +CONFIG_EFI_CAPSULE_ESL_FILE. Once this has been done, the signature +node can be added to the u-boot.dtsi file. For reference, check the +u-boot.dtsi file for the sandbox architecture. If this node has not +been added to the architecture's u-boot.dtsi file, this needs to be +done. The node has currently been added for the sandbox and arm +architectures' in the u-boot.dtsi file. Once the u-boot.dtsi file has +been added with the signature node, the esl file will automatically +get embedded into the platform's dtb as part of u-boot build. -.. code-block:: console - - $ dtc -@ -I dts -O dtb -o signature.dtbo signature.dts - $ fdtoverlay -i orig.dtb -o new.dtb -v signature.dtbo - -where signature.dts looks like:: - - &{/} { - signature { - capsule-key = /incbin/("CRT.esl"); - }; - }; Anti-rollback Protection ************************