From patchwork Sat Jun 24 13:41:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 695732 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp2551602wrm; Sat, 24 Jun 2023 13:49:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Gl3QhAkPDRyDqQu611RwX5J9AralaW/oDGVv5t2/9I74zdl7MTOovBMtKLBYraiz+ENtd X-Received: by 2002:a05:622a:1982:b0:3ff:2013:dde3 with SMTP id u2-20020a05622a198200b003ff2013dde3mr21160042qtc.0.1687639774948; Sat, 24 Jun 2023 13:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687639774; cv=none; d=google.com; s=arc-20160816; b=VXUC1dehIrW5rUDQkl0rvdj8KMrZkOu8GCNZksU4vMuz/KyZBxd4vdfdbUOb8GQ8J6 8oJeNyOCHL7rQ0D9vuOL37bbIVaSr4zlB6uNv3WVnzv+rI14L/xyvMGIsH+IxCZtFuOS LGr2mK2IcUxGpEKXVeSYgKiZFqfBVsl1ulexMPWu/mNrIPZwfVmLnlAC8OseicPfQefi UkStdARc0qxqxGm/Uxvkmh2hEIxqW0jBWoeIvRgxqp0xwdjXZ7V9FARymcZWCjCFyVLt 7Zg5EXjzEgo+W7R0RY2zTjR1zEuUZbPsaCqyXBcyHNRwpMjiB16o5WioJ2qe+YtN4Bwt fqFQ== 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=C3RIfwcXP5vlpJKczXlWfhsNtJy9kgkbITJkFFLo0vQ=; fh=lu5TYXXCc9HXOnqxAkmvhXm+orfKNM3ataUOg5fXk40=; b=HBsR7W/lSmi0oz7OEoklZqe/Ajn9nKYzfFIDPnu1LAg6Ooz1CF/tceq/9VqqyP7Tg2 iYV1VcVENo90GHVmhOIpnM5XmPojDcAn2XGF8g31q2uxWya+Qlms/mBqcEameQdNfjfE aeG0xssOsmn+mf2T9kF7ekwAOJfYikAyMRDOt8qihHm1hOaOwQ6dw0gHripEcxwMrmmH rZ9OfDjejUTPrga80TlJA7ICTL08D650KOBvsoAKaE7N4nXsgZu3qAcXYGdH2QyYEJty CqjK9PJDhaWgOgYpAYld7Lb9iSgo51WOehl9qbnRsiXHNPSvtuFajcjkpgt9CGlyOWPz XdHQ== 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 d13-20020ac85d8d000000b003fca8818372si702937qtx.252.2023.06.24.13.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jun 2023 13:49:34 -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 DAE4E846A5; Sat, 24 Jun 2023 22:49:18 +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 7D0D48615A; Sat, 24 Jun 2023 22:49:10 +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,T_SCC_BODY_TEXT_LINE 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 D1D9C85E7D for ; Sat, 24 Jun 2023 22:49:00 +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 0D17913D5; Sat, 24 Jun 2023 06:42:45 -0700 (PDT) Received: from a076522.blr.arm.com (unknown [10.162.46.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 684AF3F663; Sat, 24 Jun 2023 06:41:58 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Michal Simek , Takahiro Akashi , Malte Schmidt , Tom Rini , Sughosh Ganu Subject: [PATCH v2 4/8] doc: capsule: Document the new mechanism to embed ESL file into dtb Date: Sat, 24 Jun 2023 19:11:14 +0530 Message-Id: <20230624134118.944567-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230624134118.944567-1-sughosh.ganu@linaro.org> References: <20230624134118.944567-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 ffe25ca231..f96762af39 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -495,20 +495,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. Executing the boot manager ~~~~~~~~~~~~~~~~~~~~~~~~~~