[PATCH v10 3/9] tools: mkeficapsule: add man page

AKASHI Takahiro takahiro.akashi at linaro.org
Tue Feb 1 02:27:34 CET 2022

Add a man page for mkeficapsule command.

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
Reviewed-by: Simon Glass <sjg at chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
 MAINTAINERS        |  1 +
 doc/mkeficapsule.1 | 99 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)
 create mode 100644 doc/mkeficapsule.1

index dcdd99e368d1..2a8f70d70833 100644
@@ -749,6 +749,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..680362f5c4e9
--- /dev/null
+++ b/doc/mkeficapsule.1
@@ -0,0 +1,99 @@
+.\" SPDX-License-Identifier: GPL-2.0+
+.\" Copyright (c) 2021, Linaro Limited
+.\" 		written by AKASHI Takahiro <takahiro.akashi at linaro.org>
+.TH MAEFICAPSULE 1 "May 2021"
+mkeficapsule \- Generate EFI capsule file for U-Boot
+.B mkeficapsule
+.RI [ options "] " capsule-file
+.B mkeficapsule
+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.
+.B mkeficapsule
+supports two different format of image files:
+.I raw image
+format is a single binary blob of any type of firmware.
+.I FIT (Flattened Image Tree) image
+format is the same as used in the new uImage format and allows for
+multiple binary blobs in a single capsule file.
+This type of image file can be generated by
+.BR mkimage .
+One of
+.BR --fit " or " --raw
+option must be specified.
+.BI "-f\fR,\fB --fit " fit-image-file
+Specify a FIT image file
+.BI "-r\fR,\fB --raw " raw-image-file
+Specify a raw image file
+.BI "-i\fR,\fB --index " index
+Specify an image index
+.BI "-I\fR,\fB --instance " instance
+Specify a hardware instance
+.BR -h ", " --help
+Print a help message
+With signing,
+.BR --private-key ", " --certificate " and " --monotonic-count
+are all mandatory.
+.BI "-p\fR,\fB --private-key " private-key-file
+Specify signer's private key file in PEM
+.BI "-c\fR,\fB --certificate " certificate-file
+Specify signer's certificate file in EFI certificate list format
+.BI "-m\fR,\fB --monotonic-count " count
+Specify a monotonic count which is set to be monotonically incremented
+at every firmware update.
+.B "-d\fR,\fB --dump_sig"
+Dump signature data into *.p7 file
+.I /EFI/UpdateCapsule
+The directory in which all capsule files be placed
+.BR mkimage (1)
+Written by AKASHI Takahiro <takahiro.akashi at linaro.org>

More information about the U-Boot mailing list