From patchwork Tue Aug 15 16:26:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 713791 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp1875861wrp; Tue, 15 Aug 2023 09:27:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/U+JEAFNd3J4+kkWx+N9MgJKxGhB3yTkZV1W1+IwWrowoKfNqBCXXWT7fwd1c8SjUAJZ6 X-Received: by 2002:a05:600c:2482:b0:3fc:5bcc:a909 with SMTP id 2-20020a05600c248200b003fc5bcca909mr11031227wms.2.1692116850932; Tue, 15 Aug 2023 09:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692116850; cv=none; d=google.com; s=arc-20160816; b=DFOPsdwVUWcQ57FPZvBzI+aIqUT9X/F52GdZEnuVdNoFOJWGBsGHq/8GzFfhSwfYG7 QkDAuwzh1SanYw5Cp2R7rdSb2Y5thw6Qf4ifzUaaR1bKg3xp6daGcGn3QmWa0uDfmZbD s/K5ru9fS8KPjslZem3RaHZqxMxs920Wi7EhfIIe0Wq5m7DBm7ktOdUrVvXUArXlZ3Gg dOWgqaHIsVI8gq1HBXrPxjsZGDY+kN3S60hsuRByN9vFoXSuikb/NW+YK3mv8wA2i00n /Rt5q2442YXR4N5QvZ8lJoo2EePIUgPot80gbWiMpj8DCbJI1o8FBjWl6snIRuehTxlH WOcQ== 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=Ii5t9o5zIxshXwtW2xmG4jfNAnJdBt2YiOTDhCHemMQ=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=B+sKS23aPp0tcKreP2Flyx2AZjLks2aZX1WPR66puyHkCa6R3AapLMruZ7h+ZicLA2 Y1OC5QZBQzHjJ3Voxsh0jyCzTQXam9N1Ob0Vp3qf/U0DOm0rXm51jYFpEZ/Iqc/KvvFA zIjzzsvkjesu7wusWxYWAiM2gfuQnEFy9nBdvEWasZPgTUHJ6p2DxU66/YgXyAI1Z43h PYXWtiRDYd2fOxAPe00fIhR98Prwz6iZ/N4FIE+o8zt7pKWnPAwbBdiHrRcNqx194yXl v6QoOWIwZO0aY1DgYfOWEBzqeNw9eo0M2C22qrnGM5p+SamIZMNfLpLKupIsxbDMsmGK RCYA== 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 k35-20020a05600c1ca300b003fbd3547793si7387970wms.93.2023.08.15.09.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 09:27:30 -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 86F6E869AB; Tue, 15 Aug 2023 18:27:01 +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 1FBAB8671F; Tue, 15 Aug 2023 18:27:00 +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 356C586940 for ; Tue, 15 Aug 2023 18:26:58 +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 CB8371063; Tue, 15 Aug 2023 09:27:39 -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 4B66D3F6C4; Tue, 15 Aug 2023 09:26:55 -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 4/5] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Tue, 15 Aug 2023 21:56:22 +0530 Message-Id: <20230815162623.1824357-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230815162623.1824357-1-sughosh.ganu@linaro.org> References: <20230815162623.1824357-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 --- Changes since RFC series: * s/u-boot/U-Boot in the commit message. 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 3ce579d46e..950f4d1a5a 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -539,20 +539,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 by defining the Kconfig symbol +CONFIG_EFI_CAPSULE_ESL_FILE. This symbol defines the path to the esl +file generated in step-2. Once the symbol has been populated with the +path to the esl file, the esl file will automatically get embedded +into the platform's dtb as part of U-Boot build. Anti-rollback Protection ************************