From patchwork Mon Aug 21 07:29: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: 715367 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp1699090wrs; Mon, 21 Aug 2023 00:30:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFL6NbsSb6k6Z6HqQ0Ohqp31+KR0GlkT7pfctMoeSnVHYpUgLF58/AGs4rU/7lf2UYwaiT X-Received: by 2002:a05:600c:3781:b0:3fc:27:7e46 with SMTP id o1-20020a05600c378100b003fc00277e46mr4628055wmr.3.1692603037165; Mon, 21 Aug 2023 00:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692603037; cv=none; d=google.com; s=arc-20160816; b=hRMW+rNE9nXaxBNgsoEyqZgGfRC9jTMJEW7YMneTmG/tkmwfXpe7MGs/EFO9As3clU naml1pDhKrvJjTYyUaVLjh+N/e8uyiuKHRxFYbyLLScd8PbyiPCsCDWXpsSJZ4eFYSEP J2bIlAiDPPrNwXK2p8USenSOig4zymgE78/oV5iTGLV3gsBCXqxuEvshahrhEaTVfJD/ UKoTaglLQVlrJ10//Evq7aLPNIGRN5s/lj5UmdBVgRgusq3DEAXW4WPw/rhQPe5a1WIh K0mLzcR4nwbI3CdLliyrg3xVNJphSu3duN2/f8nZMuvtImvHYaHYxqystgxilgOSjwjc qVXA== 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=Ms9jlkdNP5fIPQQ63oAffefa6CDEk9qsZMi98qitmiw=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=EnhgcLoGWPsStpQpeP77dsgbnbHxrw1xZ6AIgal4qyzGcUOm1BAdawsTFTV0jtMO37 g6BuHcD4v88kaUpWxDvMKLyWZ4Uqq/a4rCcFFCqx1IOpiYTCbVtpK5khZlBQ6KQsbnWe rHEvxp1Q7PTY9bk3jcYoezPC3Hv9qzFlTbx4zU0X+YfL13kksPLNGA1XaWcjuPIRPlLD MAzCmQNzzgk4e9bquSZ9cuYPxL4+PLVd+Af/wYKX0aSeUxCkULFGV/tTeplRBXHoRtR3 hmLkbCfKqsRnlCfUbeFhXCAGYh1sMQt1QpVzkefvDHUpv+Br2v5Pl1hDmJnESfZSSr3D Uv6g== 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 ay4-20020a05600c1e0400b003fef4ec1500si30266wmb.54.2023.08.21.00.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 00:30:37 -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 5C9A18704E; Mon, 21 Aug 2023 09:29:47 +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 434328704E; Mon, 21 Aug 2023 09:29:46 +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 A0CC386932 for ; Mon, 21 Aug 2023 09:29:43 +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 D8BDD2F4; Mon, 21 Aug 2023 00:30:23 -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 D94F73F740; Mon, 21 Aug 2023 00:29:40 -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 v3 6/6] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Mon, 21 Aug 2023 12:59:09 +0530 Message-Id: <20230821072909.2387400-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821072909.2387400-1-sughosh.ganu@linaro.org> References: <20230821072909.2387400-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 V2: * Rephrase the statements in a couple of places as suggested by Ilias. 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..f422915ef5 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 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 ************************