From patchwork Mon Aug 14 09:03:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 713468 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp1130013wrp; Mon, 14 Aug 2023 02:04:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBZu2DCrxQ7x/+TybyRFSGiZdnIxNxtOTYt4Psag2GGkrVmG1y3XnKgs3Lj0cd3uFbny7G X-Received: by 2002:adf:f150:0:b0:314:15a8:7879 with SMTP id y16-20020adff150000000b0031415a87879mr6444009wro.34.1692003868616; Mon, 14 Aug 2023 02:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692003868; cv=none; d=google.com; s=arc-20160816; b=HiBA3MHScJWrHdGIE+hRQiFKXrPARBoEpStjMy/RNNqK9MbWYcqPWCS61VxXb45I4s x7bSFcYqlZy1N0x6wGInmU6Zx8+8hWyJQMR7F4lKZhNhFjDJp1si/s2fYAGh5YW3U4LV npUdkVN7c4cc6aIpebYQtfG9H5V4Y4Nq/tLkkNrw16jiGw+K+mQgJwqFeoibDMpoSXqn aTn9pm9AfjWp0vRr2iAdrLDFIilXUdrn8pBTMMg29stnjrWS/OkZ0c6+QZGuPNI0xHHQ TEmVjTwoSn1DjIq3A0b2P1nYQFqzrINxrJWWHgT2qYmr8cRy0Id2byhTtPnEysp3wceL RKEQ== 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=qyJHjc9gP5lytXrVwD8G6jSyJLF7XgG954pVxPqdHNo=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=zEJzN6tsXeMYAk34Mdh3YQA8DNsmaK8S3zf9uPiZZ6a6dVjBnfylYdUlWvDu2ZnQGW wVwZSZFGpfPiCp2ro0n//t/Bl2IEdGMWrFYmbjZfgEVQ8VlvyqXXDDFlO2bF8OdfJ2nW 8zLAz3ovKkV290+kqPyMHRD+D5K8JLLUeZzDO3XM2adeX2W+fMy6cNnY96QQd7hZ1+yQ ls4IBqruLmiQ7dhz57iJVr/6GlZ4KTMxg2FMYgGBjqqwxy7PKKHhwQxDMfYGjaH9Xx8t g8BDAeQUyp6dP4EmezYhLcxyvrxyleZGu8/ji6rjoHJj32OO4akrtwkLrcsqMZX3dEF1 tuMQ== 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 c13-20020adfed8d000000b003197bc522a1si516023wro.866.2023.08.14.02.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 02:04:28 -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 11F6E86824; Mon, 14 Aug 2023 11:04: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 607DD86824; Mon, 14 Aug 2023 11:04: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 AC6A680750 for ; Mon, 14 Aug 2023 11:03: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 7735D2F4; Mon, 14 Aug 2023 02:04:35 -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 EC9E83F6C4; Mon, 14 Aug 2023 02:03:50 -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: [RFC PATCH 4/4] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Mon, 14 Aug 2023 14:33:09 +0530 Message-Id: <20230814090309.1548310-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230814090309.1548310-1-sughosh.ganu@linaro.org> References: <20230814090309.1548310-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 --- 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 1ab5e5e2d1..6a0709efe3 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -538,20 +538,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 ************************