From patchwork Sat Aug 5 11:34:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 710649 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp502273rwb; Sat, 5 Aug 2023 04:36:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlmSsc2AKZ59LHXQWoCO7aDHaBS7KiY8YHY+r5ZXUIvGTT2gKmcYogGolqWZyCvaf6l+2i X-Received: by 2002:a7b:ce09:0:b0:3fe:2219:9052 with SMTP id m9-20020a7bce09000000b003fe22199052mr3094495wmc.18.1691235382874; Sat, 05 Aug 2023 04:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691235382; cv=none; d=google.com; s=arc-20160816; b=aT8I9CO3RvcF41TmN7P4bzb6zfUxgKJfgTtCDIPh54kizOviDoX5GTJwWSFG0xuCok 9EfFqqwx5zSQOLPXMSNNHZ9Pb68gVcb5xXfyYhsh9l7ZbfZcX5YWF4Z21xbv2GS/XU2T 5PqWXuB/3FxRqD8o5YlxjEZDNeuC5MVOd7XEFP+eav3a2I174qE8sncwnNi9Yz68oBlc Iwdfh/h5jAVMCss1ZBdAepvE4FyD9JwrwwQoowsMfnOhVoX7gynqxZEEQzGYW6BWvFuR lXy43/k0ZqNlkvaC8p71N3yKgvtw3UqEFcCsPEelTTpU75GopWWrx2lLmdpGo8V4FRlt bCbQ== 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=fH4sV6S00k+MbMvGSyGKa6mF8SZFnF9FKF4CWhfQ9VQ=; fh=pvWoYJ8DnC9IyTD46q2s71hlWpPSBdE/YYp0/eyIYcc=; b=Ao9lFRLW+liEkj7S9UFE8whN4OovR1rlkvxEgc4msFE/u6WoAyef0+v+1HuGkSP/Qb 1b25MkfpVv0GXgXcUc5u0R/6QQVMf5eGhzQAO4eXHOzAfO+F385+GVA/xyiyVaMGrQTQ 7I6sp1jGZs7iB7ULXFa3ezpHSDnNr4bgsnuhrnyyNOuosVkt9ynMhkCqDqBWtRpZhUIz d62XpvPXTR5a6vEi8WZy8yyO2g/Z7NWa4xJnX3w5RU9p+mcjhHLS7qLkDBi3GKGgGHkl e1XF+k6RmRhdY0ArCXEzZfG1+uRi7LOJ1qhvAwqwWVsL6tSFRwXBYzZ+GU/+QfIgNUDY G2mg== 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 y32-20020a05600c342000b003fc1bc4dd2dsi2184918wmp.111.2023.08.05.04.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Aug 2023 04:36:22 -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 0716E867C9; Sat, 5 Aug 2023 13:35:43 +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 A5D3286854; Sat, 5 Aug 2023 13:35:41 +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 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 58EF3867D8 for ; Sat, 5 Aug 2023 13:35:39 +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 1F3901007; Sat, 5 Aug 2023 04:36:21 -0700 (PDT) Received: from a076522.blr.arm.com (unknown [10.162.46.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 97D173F5A1; Sat, 5 Aug 2023 04:35:35 -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 v7 05/11] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Sat, 5 Aug 2023 17:04:52 +0530 Message-Id: <20230805113458.1430239-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230805113458.1430239-1-sughosh.ganu@linaro.org> References: <20230805113458.1430239-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 V6: 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 ************************