From patchwork Sat Aug 12 15:30:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 713202 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp428763wrp; Sat, 12 Aug 2023 08:32:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkl+fBpJRFzBZHTf6BjCpyY+JLhCSpOHCE7iOQX8QVsdQ93+/PvKcnn+K1TNOkVky5zSKh X-Received: by 2002:a5d:5252:0:b0:317:6c19:6445 with SMTP id k18-20020a5d5252000000b003176c196445mr3913095wrc.39.1691854338241; Sat, 12 Aug 2023 08:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691854338; cv=none; d=google.com; s=arc-20160816; b=d2XvGFCm58llJAYzAn1WcxoK43NJEj7+NVL7srHxlUyhm7Jhdx8Nh5Ggzj5ndNNJHn jzY0mfMZ+HRWV/7vUhj/mQPAB3uZk7/exR6x8y587wthFUCARx+LbVB9/aEUj6jurb8E t8CTpk5mfyHDM/cKLjE+8zy8AvthqjO6tNqeZfQHQSsHvth+rNo3qkEjpAjR06RO6SJA S0mgPEb2F4Ss/pujxTQWtFQTDCWSskqF3PZ0NXanHe84aJyow8hKH6B5WLx+rcbSguB2 TPy01amlYvTUHxJChGbP+71c52hJI/In7kRaumSmRWnDHUuD4X6indPWmgUvMhlIH7zt C/mw== 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=pjxZjZbcpxjOL87gBrKWk3Dn8UzjCjWcfNYeWwF8B70=; fh=pvWoYJ8DnC9IyTD46q2s71hlWpPSBdE/YYp0/eyIYcc=; b=OlPyliMUzhcRuLPSQ3cSzVLzS1opvmk9DAzbUkKVtKbCAIIOzoyyieUycIaTJNsMgD n26gfe5xYZyPyNQT4NF6rneCLodmdrPzJyrkbnwFVVVnS0XSJh88M7X5Pcbve/ac6tZE LOoay2BiFQT5elQCMpcZAPcy82MeobW6wYH8VSrT2319uTR6daScmdfgCUBmujZ/ZlQu qH2m+zrnnosT+Oeigynnq4XDKXO+B/mS2q+rlI9ZJim46ToEkE+t2iDDMwRuZGQ7e6t9 Qabk3remjaDhSirsYkXFcTIxRv7u12Bv0N2Ono4dsJH5ZjEQ81VWaps5DQq+BVc9CebG 0XHA== 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 w17-20020a5d6091000000b003173f1b1f6dsi3196619wrt.366.2023.08.12.08.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 08:32:18 -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 974A68698F; Sat, 12 Aug 2023 17:31:14 +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 EBBFE869A0; Sat, 12 Aug 2023 17:31:13 +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 09F808698F for ; Sat, 12 Aug 2023 17:31:12 +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 9EFBF1042; Sat, 12 Aug 2023 08:31:53 -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 C80513F6C4; Sat, 12 Aug 2023 08:31:08 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Malte Schmidt , Michal Simek , Tom Rini , Sughosh Ganu Subject: [PATCH v10 09/10] doc: Add documentation to highlight capsule generation related updates Date: Sat, 12 Aug 2023 21:00:23 +0530 Message-Id: <20230812153024.334563-10-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230812153024.334563-1-sughosh.ganu@linaro.org> References: <20230812153024.334563-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 The EFI capsules can now be generated as part of U-Boot build, through binman. Highlight these changes in the documentation. Signed-off-by: Sughosh Ganu Acked-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- Changes since V9: * s/u-boot/U-Boot/ * Add a link to the binman capsule entry type documentation as suggested by Simon Glass. doc/develop/uefi/uefi.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index a7a41f2fac..3ce579d46e 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -318,6 +318,9 @@ Run the following command --guid \ +Capsule with firmware version +***************************** + The UEFI specification does not define the firmware versioning mechanism. EDK II reference implementation inserts the FMP Payload Header right before the payload. It coutains the fw_version and lowest supported version, @@ -345,6 +348,20 @@ add --fw-version option in mkeficapsule tool. If the --fw-version option is not set, FMP Payload Header is not inserted and fw_version is set as 0. +Capsule Generation through binman +********************************* + +Support has also been added to generate capsules during U-Boot build +through binman. This requires the platform's DTB to be populated with +the capsule entry nodes for binman. The capsules then can be generated +by specifying the capsule parameters as properties in the capsule +entry node. + +Check the arch/sandbox/dts/sandbox_capsule.dtsi file for the sandbox +platform as reference for how to generate capsules through binman as +part of U-Boot build. Refer :ref:`etype_efi_capsule` for +documentation about the efi-capsule binman entry type. + Performing the update *********************