From patchwork Tue Aug 22 17:40:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 715782 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp393778wrp; Tue, 22 Aug 2023 10:43:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1bMAxWVzR7Wqak0+fw11fsEWQlRC1AoQw5Hp3BOS3uS2S+QsXs0UYaRidX4HJc60RV//E X-Received: by 2002:a5d:4f0f:0:b0:31a:d266:3d62 with SMTP id c15-20020a5d4f0f000000b0031ad2663d62mr7489701wru.54.1692726202799; Tue, 22 Aug 2023 10:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692726202; cv=none; d=google.com; s=arc-20160816; b=qXWmNffE1vnzz04ytb6PnDvOoj9Mt75HgkiyyNScTYfW1kIGhTrX3soXPcnqg6po/O 1MFjTqAxDXMLZE9JafGE3xmRJkEsaeuqW8gAEA+4rEdKkD7wKwZnkpqj4LD/0fL532rO 8hQA3bOp5+vVcwFcpvVg9zsrzWCahwc0TshqHPRqbIaqjLzzfpsBfYGXvvGlmfhbgAOI l5q8auhU+u+ahe9utIzJuPWQcTBPme5OatyEoleOMIhl4AcI97ayOE+oAosop5wv4fsH XEEFuh/3jnX5PBoKi+HhAHv7xq4CyEWl8ZIXw8jMZJ8iNg3NVcRin5lwCFeT+PT0IfRX uv+g== 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=d/nMxw1ums9zr5698+0SOjyR1MHB9sjfmlea5z1tcDI=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=zd6TyYMDsueC2csrKv3EW+q8JOqkVvBj73g/52YIX+Rv4X6PIyruDSmrr4FrIeM9AP j5gtmidy5+00ShSX25NLvVa0dQb82IaZVDZygctY0rzpW32/d5wOdIqLsGxVpHFFaSFU dQZIhOw3ps6afBlQt3cSs9Oax4zhrB1nFjuHaIQdW4/M171YqZUH/zzpaWZPMe9fMQcu ne/byl+uzBxBoFG/dA6AkeqpRgyifET7e2uiD5Tb5v5lMfQPelu1VJ8wesHmfSs3le0L B/UvEPHP1bhq2UvFT0xJzM9hZRR1dYyKRn6dGZ6qM1CKYSqWrzQUZd0quNUm230GmI06 vP6w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 v12-20020a5d678c000000b00319818e92c0si5194874wru.26.2023.08.22.10.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 10:43:22 -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; 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=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 A50E58650A; Tue, 22 Aug 2023 19:41:20 +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 D38498650A; Tue, 22 Aug 2023 19:41:18 +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 3CD15864F7 for ; Tue, 22 Aug 2023 19:41:16 +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 9823E11FB; Tue, 22 Aug 2023 10:41:56 -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 81D243F762; Tue, 22 Aug 2023 10:41:13 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Tom Rini , Sughosh Ganu Subject: [PATCH v11 15/15] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Tue, 22 Aug 2023 23:10:08 +0530 Message-Id: <20230822174008.626239-16-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230822174008.626239-1-sughosh.ganu@linaro.org> References: <20230822174008.626239-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: Ilias Apalodimas --- Changes since V10: None doc/develop/uefi/uefi.rst | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index f27cabbcce..68f9b332d1 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -562,20 +562,11 @@ and used by the steps highlighted below. ... } -You can do step-4 manually with - -.. 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"); - }; - }; +You can perform step-4 through the Kconfig symbol +CONFIG_EFI_CAPSULE_ESL_FILE. This symbol points to the esl file +generated in step-2. Once the symbol has been populated with the path +to the esl file, it will automatically get embedded into the +platform's dtb as part of U-Boot build. Anti-rollback Protection ************************