From patchwork Tue Nov 16 04:32:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 519167 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp6619078imj; Mon, 15 Nov 2021 20:34:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJySFZ2iL65z8oR4qco0xOxs4+9QM/6CjQUakLqCWp0vjtoka9Ka/7M9ab830KkrBNPtazFW X-Received: by 2002:a17:907:1614:: with SMTP id hb20mr5752185ejc.299.1637037266927; Mon, 15 Nov 2021 20:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637037266; cv=none; d=google.com; s=arc-20160816; b=IKPlvptnEE4xTZNHtsve+tGs9vWDhaw6w5RXxicHOpKQIhxA2jVICN+pvx4KhmBBj+ ip+nUyT/4oZxe33sYMoOvi31MrOa5pNAj3B3mi7NBQvGn8FDpbGwxQ5FyDYZTLvjRSLi EeEf9uQC+huyLbT7zES1aq/+QyJ73n0aceLHY/7CDSVxmWd0tjzBNe5v4qiAfiF40TVp +p8sjrcKlakeXorF51ZUFBWzceXdZtqucn3Fyhz9zK992MQIdTKLhwF/t+fbjoligW6D Y9xC89DykNMGLpvpVPMGryuA7diZnoq1QfAz6TDXYc54cuyyI3RfA2Fe0XGzwzRVm6YE H15g== 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:dkim-signature; bh=s3MzrpP/K+kejEhxzs86PQLQ42LtcMP97N5PMTMgqv4=; b=H4lbroLLv1tMrYHcqkzT1gNCc5HoTwuMn6lsaDcFEhVCMOdVORHdSuy6VcWBEq+g/t b0lzKwIxg9JW0OCj550bF4xY2vZBYDmTU/YT72WWa6rQSDzrCXNbySsquy6v0ncK3L+k BU1hW2bhpIldRKBRwD/VmmgfzHujpi0gEf8SsuO9P4VaYG9INrtbQCXIW1ktZui6ZyT9 Qsg8zu81kjo8jGp4cUgOHJ8zYzqOwoYG5ilUoon3B9WorCUcpBIZT3Cq4KLb+04diTQ4 5WwT+nxquMVvrukU8O4saOYm/3lqlrW2hjdnYV9JfW8FJ6h2XCemDImKVk5JW8RjZUYt osBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="danQZqm/"; 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=pass (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 cr1si42475539ejc.534.2021.11.15.20.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 20:34:26 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="danQZqm/"; 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=pass (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 87081837EF; Tue, 16 Nov 2021 05:34:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="danQZqm/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 27A5A837E4; Tue, 16 Nov 2021 05:33:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2C019837E6 for ; Tue, 16 Nov 2021 05:33:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x530.google.com with SMTP id q12so4785127pgh.5 for ; Mon, 15 Nov 2021 20:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s3MzrpP/K+kejEhxzs86PQLQ42LtcMP97N5PMTMgqv4=; b=danQZqm/9kp2Pi2Y7v+6a3DGSN1MfdO+toVZsFKnyMOM21CwJnGfQb+ovumBrFyhpE jNzl9ROs4REuM2bK9R9lNAWdA5wsamps9lj04zNKqDvSU5jHyG7POlSbV2wcePnFnyrJ EgHE0xDJzDrnGGZWnTZ/LZucawK3IlXbmO6j9oFoBT16aJ4Q4/epT37omei7A2QevrPl q/tnzusz8Ac/uUiw79Eydw+nL5szuS11riBiLkq7tP753FZfLKwJNBA91isazWfgpfFf Gfso6GUhLbqg6+5sF8tR6Qco6/j9jKMzGOnFnP13eYB2XtWD2HtIei6JfAq6ACmD6x6e M5ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s3MzrpP/K+kejEhxzs86PQLQ42LtcMP97N5PMTMgqv4=; b=ttofM51gvR5Ml+daQPD/zAHtL+pXbYkGLrqu1+0R1pMPxtX5iy/5DC6MC6m76tV95N YCRbmhuvJQ2Vt0pk0+ctPX0qDjRzqMnQVYnXrrvGtwYafb1TW2pcZL5zrWE97h581V0B 9GyBuMMHHkHA2ab5yJfrdhB+FFB+3EwFa4ZHYez5W3F7tOV2wGZLy5RcJUvO3udwB+wz TFMYFVd1z4ak8mBp5x7sL3CFTCiSP9MzJ0nVZYChpaowfEMPJjiVqrewup0YN8SYiLEq NXGk+0ki+AatZ+ZNJneIvcI0EiM2LlBNShgB9AN6gwQF2jKnSJjVaxCIfmQOcL6bq6qn xBJw== X-Gm-Message-State: AOAM531me9t9AcV92fk4WHlB2waSish36LItvKzWSkxj/nyX/7Toxr3V cEp9MApIqCxGx0EhXQBKkIsLhQ== X-Received: by 2002:a63:64d:: with SMTP id 74mr2886882pgg.153.1637037207431; Mon, 15 Nov 2021 20:33:27 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:d07c:c772:1ab9:a9e0]) by smtp.gmail.com with ESMTPSA id lt5sm782914pjb.43.2021.11.15.20.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 20:33:26 -0800 (PST) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org Cc: ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org, masami.hiramatsu@linaro.org, mark.kettenis@xs4all.nl, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v7 04/12] tools: mkeficapsule: add man page Date: Tue, 16 Nov 2021 13:32:30 +0900 Message-Id: <20211116043238.67226-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211116043238.67226-1-takahiro.akashi@linaro.org> References: <20211116043238.67226-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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.2 at phobos.denx.de X-Virus-Status: Clean Add a man page for mkeficapsule command. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas --- MAINTAINERS | 1 + doc/mkeficapsule.1 | 95 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 doc/mkeficapsule.1 diff --git a/MAINTAINERS b/MAINTAINERS index 6db5354322fe..813674eb2898 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -722,6 +722,7 @@ S: Maintained T: git https://source.denx.de/u-boot/custodians/u-boot-efi.git F: doc/api/efi.rst F: doc/develop/uefi/* +F: doc/mkeficapsule.1 F: doc/usage/bootefi.rst F: drivers/rtc/emul_rtc.c F: include/capitalization.h diff --git a/doc/mkeficapsule.1 b/doc/mkeficapsule.1 new file mode 100644 index 000000000000..837e09ab451e --- /dev/null +++ b/doc/mkeficapsule.1 @@ -0,0 +1,95 @@ +.TH MAEFICAPSULE 1 "May 2021" + +.SH NAME +mkeficapsule \- Generate EFI capsule file for U-Boot + +.SH SYNOPSIS +.B mkeficapsule +.RB [\fIoptions\fP] " \fIcapsule-file\fP" + +.SH "DESCRIPTION" +The +\fBmkeficapsule\fP +command is used to create an EFI capsule file for use with the U-Boot +EFI capsule update. +A capsule file may contain various type of firmware blobs which +are to be applied to the system and must be placed in the specific +directory on the UEFI system partition. An update will be automatically +executed at next reboot. + +Optionally, a capsule file can be signed with a given private key. +In this case, the update will be authenticated by verifying the signature +before applying. + +\fBmkeficapsule\fP supports two different format of image files: +.TP +.I raw image +format is a single binary blob of any type of firmware. + +.TP +.I FIT (Flattened Image Tree) image +format +is the same as used in the new \fIuImage\fP format and allows for +multiple binary blobs in a single capsule file. +This type of image file can be generated by \fBmkimage\fP. + +.SH "OPTIONS" +One of \fB--fit\fP or \fB--raw\fP option must be specified. + +.TP +.BI "-f, --fit \fIfit-image-file\fP" +Specify a FIT image file + +.TP +.BI "-r, --raw \fIraw-image-file\fP" +Specify a raw image file + +.TP +.BI "-i, --index \fIindex\fP" +Specify an image index + +.TP +.BI "-I, --instance \fIinstance\fP" +Specify a hardware instance + +.TP +.BI "-h, --help" +Print a help message + +.TP 0 +.B With signing: + +\fB--private-key\fP, \fB--certificate\fP and \fB--monotonic-count\fP are +all mandatory. + +.TP +.BI "-p, --private-key \fIprivate-key-file\fP" +Specify signer's private key file in PEM + +.TP +.BI "-c, --certificate \fIcertificate-file\fP" +Specify signer's certificate file in EFI certificate list format + +.TP +.BI "-m, --monotonic-count \fIcount\fP" +Specify a monotonic count which is set to be monotonically incremented +at every firmware update. + +.TP +.BI "-d, --dump_sig" +Dump signature data into *.p7 file + +.PP +.SH FILES +.TP +.BI "\fI/EFI/UpdateCapsule\fP" +The directory in which all capsule files be placed + +.SH SEE ALSO +.B mkimage + +.SH AUTHORS +Written by AKASHI Takahiro + +.SH HOMEPAGE +http://www.denx.de/wiki/U-Boot/WebHome