From patchwork Thu Aug 17 05:48:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 714388 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp2739980wrp; Wed, 16 Aug 2023 22:50:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6du5alp9P4d2nugcRcurzMT8Bkd8MLHHn4FzWyVgCXUSpOQWAa+Od9557iO87Ntma3j89 X-Received: by 2002:a05:6000:18a:b0:319:7295:311 with SMTP id p10-20020a056000018a00b0031972950311mr2860558wrx.10.1692251410576; Wed, 16 Aug 2023 22:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692251410; cv=none; d=google.com; s=arc-20160816; b=v/pXbxDMx9OUCCU2Vlwat0lfxlUZeVZhx2EeSnsQujNZIml6Md0edfYKAHtim5sBaS uimhd2+HQiZAp8hBczWDCAC09ZNCC5s6Ph/FVPVn14XVdAt2Vz/1H7XBX1U/7bBDbvmV 6hqDg4/5eXHxGj/4xIXoFKs3Kzf2oAo27EhfHWqw6owSg9jWoOE3ZgPHAbDVg3KnNi7f qt354MYo7RJB1oGzPSY36qsGZqPV8b3aektR9WQuHUN8HNZ/EQ5pUCwGUx+bFboaXhzC NifQ+qpS1obAiPRxfPqO3ReB6CYjbITwqjLfDPThkfNGXIxoxN6nAlJLmjTJHFup7odu 3vhw== 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=ie0IwtLMPfp67F75ivmbwh4WfLO4cuVkDuGfj6Vwu9g=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=y4mg+sHj9O4Av1k/3KOqy0PNFtbrI6wJhilWX2HM1BKbR947ZsbvSXFt09Vnhz3UVi tx22tsU23+VVEmpt+K9IyDEgLV6NNkvgh2x72wm/NCOQX/E9EHGOnS9DHbWFGPM/s/Cb +hh35zEtS9ns4+Rhja0QFYp4gNnihhDbJ9uCIAW93hbI/qfl8UPBmDSyD1Eg0JgSc7zj o6vWNEcC1W93SnQe3bkWVXJ4z+iz3Wa2IKA0hyqIjsgB0ksZxCROZY28tq6aSzBGrclw 3dtVYkxTeKJ1bu6WX8zHbrJShf+4ruMdgNKMtQBs/MbP9xD9dXNzwSeNtP4ISpL+JcDa ZGqw== 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 k12-20020a056000004c00b00319718e9515si4960556wrx.401.2023.08.16.22.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 22:50:10 -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 F389D86A18; Thu, 17 Aug 2023 07:49:31 +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 2A32D86A5D; Thu, 17 Aug 2023 07:49:31 +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 790B386A18 for ; Thu, 17 Aug 2023 07:49:28 +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 AB0E9D75; Wed, 16 Aug 2023 22:50:08 -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 7EB6F3F762; Wed, 16 Aug 2023 22:49:25 -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 v2 6/6] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Thu, 17 Aug 2023 11:18:56 +0530 Message-Id: <20230817054856.2019253-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230817054856.2019253-1-sughosh.ganu@linaro.org> References: <20230817054856.2019253-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 V1: 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 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 ************************