From patchwork Wed Oct 4 11:27:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 729283 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a4e:0:b0:31d:da82:a3b4 with SMTP id v14csp287597wrs; Wed, 4 Oct 2023 04:28:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfgYktxfmxhY4JWwLO1CWAKlrjQROgPDM8x4tFr+JXtYmwBzakQMbXiT+Ml6jYjXr1TOGI X-Received: by 2002:a05:6512:32cd:b0:4fa:f96c:745f with SMTP id f13-20020a05651232cd00b004faf96c745fmr2072506lfg.38.1696418903910; Wed, 04 Oct 2023 04:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696418903; cv=none; d=google.com; s=arc-20160816; b=iYng4XxLIU1vXd5W6jRqgiZnSQ6cBIYXCQIDStyY50Hneo4R+9ZyyxIJqNjT95e8Wh KtGWDb714kb7ZdpBNrkoy1Z2ILuXafUwsu1OTizrkQzEK1UB8y7hEnFspiKrLG8cFw52 GATkPg0oaIXRQ5wSL2k7z14+DwtJaLegY9IEvobGwD4yjnhkQStHlwrqplo5ficdXw4s J06CxVCFxR/O8briCrO+m52JyPOI1bkexaJGI5TeuyT/rhQ0IoN/4Iy5G8ug8GxyRFCL bHgOd3pA6MrZQx6b2MNkzHc0YFCLuRxEP+reyZVFnZARhklIdX4pAvPJDviqKZNvu0Vv ANLw== 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=/sF918pYt/lV68b7rrgRLP9bHws1xbg1crAbH5Td5z4=; fh=GFi6yKGMx/0zdTg+7jHYbY+NaEzlEBFVO9Bq4SjQnp0=; b=MZTrMuALuEPglIWOpPsppsjalnWTpwCPrhjy8wVt5LXQygLKPFzGtpGQNfOdSbG5Fz GEQMw62Q5HkgI3mvLVs/01EokGKqOKeEkVhaeXKpMr2VZMX93TrPeDWG7oLPvNd2CfwB a90KSEkuGWJ/6oAamZaxzsBOyiApKeWsvKeK5/8efSRYJC6MQ2VXY7rNT1e+11aCvfGn 4bVAtJWp+Uo3S8WXPajbypHDmHtHuVMyV5g3W/6k5Oc8z7aQsc6BlqH/5SP7aXCgAYe5 OVLsExRgdFFoI1XHgfXncuvFETRFXYOjsY1sJM6ovUVI0aY86GKt1tzHY1RiIac+evbI fobw== 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 r9-20020a05600c458900b004050bd10f54si753567wmo.14.2023.10.04.04.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:28:23 -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 21C7A874E8; Wed, 4 Oct 2023 13:27:54 +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 3D842874DC; Wed, 4 Oct 2023 13:27:49 +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 8A09E8722D for ; Wed, 4 Oct 2023 13:27:46 +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 A37BADA7; Wed, 4 Oct 2023 04:28:24 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B5BF33F762; Wed, 4 Oct 2023 04:27:43 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Simon Glass , Heinrich Schuchardt , Ilias Apalodimas , Takahiro Akashi , Tom Rini , Sughosh Ganu Subject: [PATCH 2/5] doc: capsule: Add documentation for the capsule dump feature Date: Wed, 4 Oct 2023 16:57:19 +0530 Message-Id: <20231004112722.416877-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231004112722.416877-1-sughosh.ganu@linaro.org> References: <20231004112722.416877-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 Add documentation to explain the printing of the capsule headers through the mkeficapsule tool. Signed-off-by: Sughosh Ganu Reviewed-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 68f9b332d1..f16580e169 100644 --- a/doc/develop/uefi/uefi.rst +++ b/doc/develop/uefi/uefi.rst @@ -385,6 +385,23 @@ capsules. Refer :ref:`etype_efi_capsule` for documentation about the efi-capsule binman entry type, which describes all the properties that can be specified. +Dumping capsule headers +*********************** + +The mkeficapsule tool also provides a command-line option to dump the +contents of the capsule header. This is a useful functionality when +trying to understand the structure of a capsule and is also used in +capsule verification. This feature is used in testing the capsule +contents in binman's test framework. + +To check the contents of the capsule headers, the mkeficapsule command +can be used. + +.. code-block:: console + + $ mkeficapsule --dump-capsule \ + + Performing the update *********************