blob: 6fb2dd0810dc4ca578d7ab44327f82ce78d1c7c6 [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"
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 Ganu6da92712022-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 Takahiro118a0ec2022-02-09 19:10:36 +090031.B mkeficapsule
Sughosh Ganu6da92712022-10-21 18:16:06 +053032takes any type of image files when generating non empty capsules, including:
AKASHI Takahiro118a0ec2022-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 Ganu6da92712022-10-21 18:16:06 +053045
AKASHI Takahirod9612f42022-02-09 19:10:39 +090046.TP
47.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 Ganu6da92712022-10-21 18:16:06 +053052is in big endian. The option must be specified for all non empty and
53image acceptance capsules
AKASHI Takahiro118a0ec2022-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 Ganu6da92712022-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 Takahiro118a0ec2022-02-09 19:10:36 +090075.TP
Sughosh Ganuf65ee992022-10-21 18:16:07 +053076.BI "-o\fR,\fB --capoemflag "
77Capsule OEM flag, value between 0x0000 to 0xffff
78
79.TP
AKASHI Takahiro118a0ec2022-02-09 19:10:36 +090080.BR -h ", " --help
81Print a help message
82
83.PP
84With signing,
85.BR --private-key ", " --certificate " and " --monotonic-count
86are all mandatory.
87
88.TP
89.BI "-p\fR,\fB --private-key " private-key-file
90Specify signer's private key file in PEM
91
92.TP
93.BI "-c\fR,\fB --certificate " certificate-file
94Specify signer's certificate file in EFI certificate list format
95
96.TP
97.BI "-m\fR,\fB --monotonic-count " count
98Specify a monotonic count which is set to be monotonically incremented
99at every firmware update.
100
101.TP
102.B "-d\fR,\fB --dump_sig"
103Dump signature data into *.p7 file
104
105.PP
106.SH FILES
107.TP
108.I /EFI/UpdateCapsule
109The directory in which all capsule files be placed
110
111.SH SEE ALSO
112.BR mkimage (1)
113
114.SH AUTHORS
115Written by AKASHI Takahiro <takahiro.akashi@linaro.org>
116
117.SH HOMEPAGE
118http://www.denx.de/wiki/U-Boot/WebHome