1 .\" 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"
7 mkeficapsule \- Generate EFI capsule file for U-Boot
11 .RI [ options ] " " [ image-blob ] " " capsule-file
15 command is used to create an EFI capsule file for use with the U-Boot
17 A capsule file may contain various type of firmware blobs which
18 are to be applied to the system and must be placed in the specific
19 directory on the UEFI system partition.
20 An update will be automatically executed at next reboot.
22 Optionally, a capsule file can be signed with a given private key.
23 In this case, the update will be authenticated by verifying the signature
26 Additionally, an empty capsule file can be generated for acceptance or
27 rejection of firmware images by a governing component like an Operating
28 System. The empty capsules do not require an image-blob input file.
32 takes any type of image files when generating non empty capsules, including:
35 format is a single binary blob of any type of firmware.
38 .I FIT (Flattened Image Tree) image
39 format is the same as used in the new uImage format and allows for
40 multiple binary blobs in a single capsule file.
41 This type of image file can be generated by
47 .BI "-g\fR,\fB --guid " guid-string
48 Specify guid for image blob type. The format is:
49 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
51 The first three elements are in little endian, while the rest
52 is in big endian. The option must be specified for all non empty and
53 image acceptance capsules
56 .BI "-i\fR,\fB --index " index
57 Specify an image index
60 .BI "-I\fR,\fB --instance " instance
61 Specify a hardware instance
64 For generation of firmware accept empty capsule
68 .BI "-A\fR,\fB --fw-accept "
69 Generate a firmware acceptance empty capsule
72 .BI "-R\fR,\fB --fw-revert "
73 Generate a firmware revert empty capsule
76 .BI "-o\fR,\fB --capoemflag "
77 Capsule OEM flag, value between 0x0000 to 0xffff
85 .BR --private-key ", " --certificate " and " --monotonic-count
89 .BI "-p\fR,\fB --private-key " private-key-file
90 Specify signer's private key file in PEM
93 .BI "-c\fR,\fB --certificate " certificate-file
94 Specify signer's certificate file in EFI certificate list format
97 .BI "-m\fR,\fB --monotonic-count " count
98 Specify a monotonic count which is set to be monotonically incremented
99 at every firmware update.
102 .B "-d\fR,\fB --dump_sig"
103 Dump signature data into *.p7 file
108 .I /EFI/UpdateCapsule
109 The directory in which all capsule files be placed
115 Written by AKASHI Takahiro <takahiro.akashi@linaro.org>
118 http://www.denx.de/wiki/U-Boot/WebHome