blob: 1ca245a10f833b581bf36dcc3076bd2ff7d8e26a [file] [log] [blame]
AKASHI Takahiro118a0ec2022-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 Ganu6da92712022-10-21 18:16:06 +053011.RI [ options ] " " [ image-blob ] " " capsule-file
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090012
13.SH "DESCRIPTION"
Heinrich Schuchardta13b92a2023-01-22 11:27:10 +010014The
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090015.B mkeficapsule
Heinrich Schuchardta13b92a2023-01-22 11:27:10 +010016command is used to create an EFI capsule file to be used by U-Boot for firmware
17updates.
18A capsule file may contain various types of firmware blobs which are to be
19applied to the system.
20If a capsule file is placed in the /EFI/CapusuleUpdate directory of the EFI
21system partition, U-Boot will try to execute the update at the next reboot.
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090022
23Optionally, a capsule file can be signed with a given private key.
24In this case, the update will be authenticated by verifying the signature
25before applying.
26
Heinrich Schuchardta13b92a2023-01-22 11:27:10 +010027Additionally, an empty capsule file can be generated to indicate the acceptance
28or rejection of firmware images by a governing component like an operating
29system.
30Empty capsules do not require an image-blob input file.
Sughosh Ganu6da92712022-10-21 18:16:06 +053031
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090032.B mkeficapsule
Sughosh Ganu6da92712022-10-21 18:16:06 +053033takes any type of image files when generating non empty capsules, including:
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090034.TP
35.I raw image
36format is a single binary blob of any type of firmware.
37
38.TP
39.I FIT (Flattened Image Tree) image
40format is the same as used in the new uImage format and allows for
41multiple binary blobs in a single capsule file.
42This type of image file can be generated by
43.BR mkimage .
44
45.SH "OPTIONS"
Sughosh Ganu6da92712022-10-21 18:16:06 +053046
AKASHI Takahirod9612f42022-02-09 19:10:39 +090047.TP
48.BI "-g\fR,\fB --guid " guid-string
49Specify guid for image blob type. The format is:
50 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
51
52The first three elements are in little endian, while the rest
Sughosh Ganu6da92712022-10-21 18:16:06 +053053is in big endian. The option must be specified for all non empty and
54image acceptance capsules
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090055
56.TP
57.BI "-i\fR,\fB --index " index
58Specify an image index
59
60.TP
61.BI "-I\fR,\fB --instance " instance
62Specify a hardware instance
63
Sughosh Ganu6da92712022-10-21 18:16:06 +053064.PP
65For generation of firmware accept empty capsule
66.BR --guid
67is mandatory
68.TP
69.BI "-A\fR,\fB --fw-accept "
70Generate a firmware acceptance empty capsule
71
72.TP
73.BI "-R\fR,\fB --fw-revert "
74Generate a firmware revert empty capsule
75
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090076.TP
Sughosh Ganuf65ee992022-10-21 18:16:07 +053077.BI "-o\fR,\fB --capoemflag "
78Capsule OEM flag, value between 0x0000 to 0xffff
79
80.TP
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090081.BR -h ", " --help
82Print a help message
83
84.PP
85With signing,
86.BR --private-key ", " --certificate " and " --monotonic-count
87are all mandatory.
88
89.TP
90.BI "-p\fR,\fB --private-key " private-key-file
91Specify signer's private key file in PEM
92
93.TP
94.BI "-c\fR,\fB --certificate " certificate-file
95Specify signer's certificate file in EFI certificate list format
96
97.TP
98.BI "-m\fR,\fB --monotonic-count " count
99Specify a monotonic count which is set to be monotonically incremented
100at every firmware update.
101
102.TP
103.B "-d\fR,\fB --dump_sig"
104Dump signature data into *.p7 file
105
106.PP
107.SH FILES
108.TP
109.I /EFI/UpdateCapsule
110The directory in which all capsule files be placed
111
112.SH SEE ALSO
113.BR mkimage (1)
114
115.SH AUTHORS
116Written by AKASHI Takahiro <takahiro.akashi@linaro.org>
117
118.SH HOMEPAGE
119http://www.denx.de/wiki/U-Boot/WebHome