1 .\" SPDX-License-Identifier: GPL-2.0+
2 .\" Copyright (c) 2021, Linaro Limited
4 .TH MAEFICAPSULE 1 "May 2021"
7 mkeficapsule \- Generate EFI capsule file for U-Boot
11 .RI [ options ] " " [ image-blob ] " " capsule-file
14 .RI guidgen " " [ GUID ] " " DTB " " IMAGE_NAME...
19 command is used to create an EFI capsule file to be used by U-Boot for firmware
21 A capsule file may contain various types of firmware blobs which are to be
22 applied to the system.
23 If a capsule file is placed in the /EFI/CapusuleUpdate directory of the EFI
24 system partition, U-Boot will try to execute the update at the next reboot.
26 Optionally, a capsule file can be signed with a given private key.
27 In this case, the update will be authenticated by verifying the signature
30 Additionally, an empty capsule file can be generated to indicate the acceptance
31 or rejection of firmware images by a governing component like an operating
33 Empty capsules do not require an image-blob input file.
36 takes any type of image files when generating non empty capsules, including:
39 format is a single binary blob of any type of firmware.
42 .I FIT (Flattened Image Tree) image
43 format is the same as used in the new uImage format and allows for
44 multiple binary blobs in a single capsule file.
45 This type of image file can be generated by
48 mkeficapsule can also be used to simulate the dynamic GUID generation used to
49 identify firmware images in capsule updates by providing the namespace guid, dtb
50 for the board, and a list of firmware images.
55 .BI "-g\fR,\fB --guid " guid-string
56 Specify guid for image blob type. The format is:
57 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
59 The first three elements are in little endian, while the rest
60 is in big endian. The option must be specified for all non empty and
61 image acceptance capsules
64 .BI "-i\fR,\fB --index " index
65 Specify an image index
68 .BI "-I\fR,\fB --instance " instance
69 Specify a hardware instance
72 FMP Payload Header is inserted right before the payload if
78 .BI "-v\fR,\fB --fw-version " firmware-version
79 Specify a firmware version, 0 if omitted
82 For generation of firmware accept empty capsule
86 .BI "-A\fR,\fB --fw-accept "
87 Generate a firmware acceptance empty capsule
90 .BI "-R\fR,\fB --fw-revert "
91 Generate a firmware revert empty capsule
94 .BI "-o\fR,\fB --capoemflag "
95 Capsule OEM flag, value between 0x0000 to 0xffff
99 Print version information and exit.
107 .BR --private-key ", " --certificate " and " --monotonic-count
111 .BI "-p\fR,\fB --private-key " private-key-file
112 Specify signer's private key file in PEM
115 .BI "-c\fR,\fB --certificate " certificate-file
116 Specify signer's certificate file in EFI certificate list format
119 .BI "-m\fR,\fB --monotonic-count " count
120 Specify a monotonic count which is set to be monotonically incremented
121 at every firmware update.
124 .B "-d\fR,\fB --dump_sig"
125 Dump signature data into *.p7 file
127 .SH "GUIDGEN OPTIONS"
131 The namespace/salt GUID, by default this is EFI_CAPSULE_NAMESPACE_GUID.
133 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
137 The device tree blob file for the board.
141 The names of the firmware images to generate GUIDs for.
146 .I /EFI/UpdateCapsule
147 The directory in which all capsule files be placed
156 http://www.u-boot.org/