blob: 77ca061efdc081cdd2117c8aa2a60441b931d3f0 [file] [log] [blame]
AKASHI Takahiro7889a992022-02-09 19:10:36 +09001.\" SPDX-License-Identifier: GPL-2.0+
2.\" Copyright (c) 2021, Linaro Limited
3.\" written by AKASHI Takahiro <takahiro.akashi@linaro.org>
4.TH MAEFICAPSULE 1 "May 2021"
5
6.SH NAME
7mkeficapsule \- Generate EFI capsule file for U-Boot
8
9.SH SYNOPSIS
10.B mkeficapsule
Sughosh Ganub39405d2022-10-21 18:16:06 +053011.RI [ options ] " " [ image-blob ] " " capsule-file
AKASHI Takahiro7889a992022-02-09 19:10:36 +090012
13.SH "DESCRIPTION"
14.B mkeficapsule
15command is used to create an EFI capsule file for use with the U-Boot
16EFI capsule update.
17A capsule file may contain various type of firmware blobs which
18are to be applied to the system and must be placed in the specific
19directory on the UEFI system partition.
20An update will be automatically executed at next reboot.
21
22Optionally, a capsule file can be signed with a given private key.
23In this case, the update will be authenticated by verifying the signature
24before applying.
25
Sughosh Ganub39405d2022-10-21 18:16:06 +053026Additionally, an empty capsule file can be generated for acceptance or
27rejection of firmware images by a governing component like an Operating
28System. The empty capsules do not require an image-blob input file.
29
30
AKASHI Takahiro7889a992022-02-09 19:10:36 +090031.B mkeficapsule
Sughosh Ganub39405d2022-10-21 18:16:06 +053032takes any type of image files when generating non empty capsules, including:
AKASHI Takahiro7889a992022-02-09 19:10:36 +090033.TP
34.I raw image
35format is a single binary blob of any type of firmware.
36
37.TP
38.I FIT (Flattened Image Tree) image
39format is the same as used in the new uImage format and allows for
40multiple binary blobs in a single capsule file.
41This type of image file can be generated by
42.BR mkimage .
43
44.SH "OPTIONS"
Sughosh Ganub39405d2022-10-21 18:16:06 +053045
AKASHI Takahiro7889a992022-02-09 19:10:36 +090046.TP
AKASHI Takahiroba212432022-02-09 19:10:39 +090047.BI "-g\fR,\fB --guid " guid-string
48Specify guid for image blob type. The format is:
49 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
50
51The first three elements are in little endian, while the rest
Sughosh Ganub39405d2022-10-21 18:16:06 +053052is in big endian. The option must be specified for all non empty and
53image acceptance capsules
AKASHI Takahiro7889a992022-02-09 19:10:36 +090054
55.TP
56.BI "-i\fR,\fB --index " index
57Specify an image index
58
59.TP
60.BI "-I\fR,\fB --instance " instance
61Specify a hardware instance
62
Sughosh Ganub39405d2022-10-21 18:16:06 +053063.PP
64For generation of firmware accept empty capsule
65.BR --guid
66is mandatory
67.TP
68.BI "-A\fR,\fB --fw-accept "
69Generate a firmware acceptance empty capsule
70
71.TP
72.BI "-R\fR,\fB --fw-revert "
73Generate a firmware revert empty capsule
74
AKASHI Takahiro7889a992022-02-09 19:10:36 +090075.TP
76.BR -h ", " --help
77Print a help message
78
79.PP
80With signing,
81.BR --private-key ", " --certificate " and " --monotonic-count
82are all mandatory.
83
84.TP
85.BI "-p\fR,\fB --private-key " private-key-file
86Specify signer's private key file in PEM
87
88.TP
89.BI "-c\fR,\fB --certificate " certificate-file
90Specify signer's certificate file in EFI certificate list format
91
92.TP
93.BI "-m\fR,\fB --monotonic-count " count
94Specify a monotonic count which is set to be monotonically incremented
95at every firmware update.
96
97.TP
98.B "-d\fR,\fB --dump_sig"
99Dump signature data into *.p7 file
100
101.PP
102.SH FILES
103.TP
104.I /EFI/UpdateCapsule
105The directory in which all capsule files be placed
106
107.SH SEE ALSO
108.BR mkimage (1)
109
110.SH AUTHORS
111Written by AKASHI Takahiro <takahiro.akashi@linaro.org>
112
113.SH HOMEPAGE
114http://www.denx.de/wiki/U-Boot/WebHome