From patchwork Sun Jul 9 13:33:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 700803 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp4732400wrs; Sun, 9 Jul 2023 06:34:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1WgTNajztr//NN8ZR5DJXPSxWcxXlhSIv/Og+UMLWWsIxq7BxOgmi0WWixVchKOg9F6Za X-Received: by 2002:a92:4b08:0:b0:33b:dcbf:e711 with SMTP id m8-20020a924b08000000b0033bdcbfe711mr11460768ilg.8.1688909651057; Sun, 09 Jul 2023 06:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688909651; cv=none; d=google.com; s=arc-20160816; b=VDcMv2AIqO9mAXZiyoUtPUdd0fXoMnsfR3Av1oDUI/uUq7pLG30F9GwGUSk8PkMzxj 2PhihJ52Sv7Afqx0NbXD4O4EtqfNzUSPmMI3IeleOvqbCAhPUz6VVWbxxs65GNFy+Tm9 c5oNUpwxi7OZ56+VMF8HjaRaMIoziUT1xfln7aD1bk6XTWcpcTkFosfNjiAcFpSow7Ls MdG71Rok4ewQro6gUuDYRb31rEFEodKuQ8AGoLa1x0oH905W3JLGdEftUFO1OHEuIfNO oOFjn1lM3c988yefk8ReavS05mTSUFOgR+2mHco9J81k7JHt9tv7rboa2L7HXJSSQ6D1 hKtA== 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=XNMBHKvHVhjKrCegO4LDSipUwY3M765jzqEn1bm1PQM=; fh=5yufCDEpV5fWA8r3jJ0mHshq3zHArlCzbvaufLK2jtI=; b=Uc272z8t7Uj4rGsobLDeT6otPD4KQDfqjAY638EZGo2Au0y7eKtwsmB0Vbelh31Zva ffP96SQfwceVoMSRM3o/PHKYjGpIa6WIo5pftgflN4o8TsQOdK/qYWO6FdWF1/yY6Usm nBkbHgaL/lI/rReEO+InYLDGSrYjat4zP3bfyaKYMnjarKWYJ+haNky/vy9oNSTApt1o HhG9mPxNcMlobN0ZU4gEHvW7ztHRDSccmddMPB1s8OYI1ndOIO9Xnf3hHdgxllHOGhV5 6yXRSp7grSjb3T+Mre52mbFrEOS53WGNYkTqoC+XoB/Xg4E+bHrJQ976LGBbxD1iSA1a 2ZBg== 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 v16-20020a92d250000000b0034600f05130si2968815ilg.1.2023.07.09.06.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jul 2023 06:34:11 -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 5A9C385F50; Sun, 9 Jul 2023 15:33:56 +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 5CCA7846C2; Sun, 9 Jul 2023 15:33:55 +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 1EBA785990 for ; Sun, 9 Jul 2023 15:33:53 +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 7E8DA1063; Sun, 9 Jul 2023 06:34:34 -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 0A8103F762; Sun, 9 Jul 2023 06:33:49 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Malte Schmidt , Tom Rini , Sughosh Ganu Subject: [PATCH v3 03/11] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Sun, 9 Jul 2023 19:03:18 +0530 Message-Id: <20230709133326.1015483-4-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230709133326.1015483-1-sughosh.ganu@linaro.org> References: <20230709133326.1015483-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 V2: * Highlight the need to use the u-boot.dtsi file for embedding the public key ESL into the DTB. 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 ffe25ca231..c04e62f3a5 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -495,20 +495,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"); - }; - }; Executing the boot manager ~~~~~~~~~~~~~~~~~~~~~~~~~~