mkeficapsule.1 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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"
  5. .SH NAME
  6. mkeficapsule \- Generate EFI capsule file for U-Boot
  7. .SH SYNOPSIS
  8. .B mkeficapsule
  9. .RI [ options ] " " [ image-blob ] " " capsule-file
  10. .SH "DESCRIPTION"
  11. The
  12. .B mkeficapsule
  13. command is used to create an EFI capsule file to be used by U-Boot for firmware
  14. updates.
  15. A capsule file may contain various types of firmware blobs which are to be
  16. applied to the system.
  17. If a capsule file is placed in the /EFI/CapusuleUpdate directory of the EFI
  18. system partition, U-Boot will try to execute the update at the next reboot.
  19. Optionally, a capsule file can be signed with a given private key.
  20. In this case, the update will be authenticated by verifying the signature
  21. before applying.
  22. Additionally, an empty capsule file can be generated to indicate the acceptance
  23. or rejection of firmware images by a governing component like an operating
  24. system.
  25. Empty capsules do not require an image-blob input file.
  26. .B mkeficapsule
  27. takes any type of image files when generating non empty capsules, including:
  28. .TP
  29. .I raw image
  30. format is a single binary blob of any type of firmware.
  31. .TP
  32. .I FIT (Flattened Image Tree) image
  33. format is the same as used in the new uImage format and allows for
  34. multiple binary blobs in a single capsule file.
  35. This type of image file can be generated by
  36. .BR mkimage .
  37. .SH "OPTIONS"
  38. .TP
  39. .BI "-g\fR,\fB --guid " guid-string
  40. Specify guid for image blob type. The format is:
  41. xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  42. The first three elements are in little endian, while the rest
  43. is in big endian. The option must be specified for all non empty and
  44. image acceptance capsules
  45. .TP
  46. .BI "-i\fR,\fB --index " index
  47. Specify an image index
  48. .TP
  49. .BI "-I\fR,\fB --instance " instance
  50. Specify a hardware instance
  51. .PP
  52. FMP Payload Header is inserted right before the payload if
  53. .BR --fw-version
  54. is specified
  55. .TP
  56. .BI "-v\fR,\fB --fw-version " firmware-version
  57. Specify a firmware version, 0 if omitted
  58. .PP
  59. For generation of firmware accept empty capsule
  60. .BR --guid
  61. is mandatory
  62. .TP
  63. .BI "-A\fR,\fB --fw-accept "
  64. Generate a firmware acceptance empty capsule
  65. .TP
  66. .BI "-R\fR,\fB --fw-revert "
  67. Generate a firmware revert empty capsule
  68. .TP
  69. .BI "-o\fR,\fB --capoemflag "
  70. Capsule OEM flag, value between 0x0000 to 0xffff
  71. .TP
  72. .BR -h ", " --help
  73. Print a help message
  74. .PP
  75. With signing,
  76. .BR --private-key ", " --certificate " and " --monotonic-count
  77. are all mandatory.
  78. .TP
  79. .BI "-p\fR,\fB --private-key " private-key-file
  80. Specify signer's private key file in PEM
  81. .TP
  82. .BI "-c\fR,\fB --certificate " certificate-file
  83. Specify signer's certificate file in EFI certificate list format
  84. .TP
  85. .BI "-m\fR,\fB --monotonic-count " count
  86. Specify a monotonic count which is set to be monotonically incremented
  87. at every firmware update.
  88. .TP
  89. .B "-d\fR,\fB --dump_sig"
  90. Dump signature data into *.p7 file
  91. .PP
  92. .SH FILES
  93. .TP
  94. .I /EFI/UpdateCapsule
  95. The directory in which all capsule files be placed
  96. .SH SEE ALSO
  97. .BR mkimage (1)
  98. .SH AUTHORS
  99. Written by AKASHI Takahiro <takahiro.akashi@linaro.org>
  100. .SH HOMEPAGE
  101. http://www.denx.de/wiki/U-Boot/WebHome