mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
doc: mkimage: Regularize option documentation
Square brackets are commonly used to denote optional parts of a command. However, all option arguments are mandatory. Remove these brackets. This also removes some unnecessary quotation marks, and uses hyphens to connect words in option arguments. This is intended to just clean up the formatting, leaving content corrections to later patches. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3dc1ff026f
commit
1bdf48623c
@ -26,7 +26,7 @@ mkimage \- Generate image for U-Boot
|
|||||||
.BI \-F\~ image-file-name
|
.BI \-F\~ image-file-name
|
||||||
.YS
|
.YS
|
||||||
.
|
.
|
||||||
.SH "DESCRIPTION"
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.B mkimage
|
.B mkimage
|
||||||
command is used to create images for use with the U-Boot boot loader.
|
command is used to create images for use with the U-Boot boot loader.
|
||||||
@ -50,64 +50,64 @@ allows for more flexibility in handling images of various types and also
|
|||||||
enhances integrity protection of images with stronger checksums. It also
|
enhances integrity protection of images with stronger checksums. It also
|
||||||
supports verified boot.
|
supports verified boot.
|
||||||
.
|
.
|
||||||
.SH "OPTIONS"
|
.SH OPTIONS
|
||||||
.
|
.
|
||||||
.B List image information:
|
.B List image information:
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-l [" "uimage file name" "]"
|
.BI \-l " uimage-file-name"
|
||||||
mkimage lists the information contained in the header of an existing U-Boot image.
|
mkimage lists the information contained in the header of an existing U-Boot image.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-T [" "image type" "]"
|
.BI \-T " image-type"
|
||||||
Parse image file as type.
|
Parse image file as type.
|
||||||
Pass \-h as the image to see the list of supported image type.
|
Pass \-h as the image to see the list of supported image type.
|
||||||
Without this option image type is autodetected.
|
Without this option image type is autodetected.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-q"
|
.B \-q
|
||||||
Quiet. Don't print the image header on successful verification.
|
Quiet. Don't print the image header on successful verification.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
.B Create old legacy image:
|
.B Create old legacy image:
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-A [" "architecture" "]"
|
.BI \-A " architecture"
|
||||||
Set architecture. Pass \-h as the architecture to see the list of supported architectures.
|
Set architecture. Pass \-h as the architecture to see the list of supported architectures.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-O [" "os" "]"
|
.BI \-O " os"
|
||||||
Set operating system. bootm command of u-boot changes boot method by os type.
|
Set operating system. bootm command of u-boot changes boot method by os type.
|
||||||
Pass \-h as the OS to see the list of supported OS.
|
Pass \-h as the OS to see the list of supported OS.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-T [" "image type" "]"
|
.BI \-T " image-type"
|
||||||
Set image type.
|
Set image type.
|
||||||
Pass \-h as the image to see the list of supported image type.
|
Pass \-h as the image to see the list of supported image type.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-C [" "compression type" "]"
|
.BI \-C " compression-type"
|
||||||
Set compression type.
|
Set compression type.
|
||||||
Pass \-h as the compression to see the list of supported compression type.
|
Pass \-h as the compression to see the list of supported compression type.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-a [" "load address" "]"
|
.BI \-a " load-address"
|
||||||
Set load address with a hex number.
|
Set load address with a hex number.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-e [" "entry point" "]"
|
.BI \-e " entry-point"
|
||||||
Set entry point with a hex number.
|
Set entry point with a hex number.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-l"
|
.B \-l
|
||||||
List the contents of an image.
|
List the contents of an image.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-n [" "image name" "]"
|
.BI \-n " image-name"
|
||||||
Set image name to 'image name'.
|
Set image name to 'image name'.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-R [" "secondary image name" "]"
|
.BI \-R " secondary-image-name"
|
||||||
Some image types support a second image for additional data. For these types,
|
Some image types support a second image for additional data. For these types,
|
||||||
use \-R to specify this second image.
|
use \-R to specify this second image.
|
||||||
.TS
|
.TS
|
||||||
@ -136,42 +136,42 @@ T}
|
|||||||
.TE
|
.TE
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-d [" "image data file" "]"
|
.BI \-d " image-data-file"
|
||||||
Use image data from 'image data file'.
|
Use image data from 'image data file'.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-x"
|
.B \-x
|
||||||
Set XIP (execute in place) flag.
|
Set XIP (execute in place) flag.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-s"
|
.B \-s
|
||||||
Don't copy in the image data. Depending on the image type, this may create
|
Don't copy in the image data. Depending on the image type, this may create
|
||||||
just the header, everything but the image data, or nothing at all.
|
just the header, everything but the image data, or nothing at all.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-v"
|
.B \-v
|
||||||
Verbose. Print file names as they are added to the image.
|
Verbose. Print file names as they are added to the image.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
.B Create FIT image:
|
.B Create FIT image:
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-b [" "device tree file" "]
|
.BI \-b " device-tree-file"
|
||||||
Appends the device tree binary file (.dtb) to the FIT.
|
Appends the device tree binary file (.dtb) to the FIT.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-c [" "comment" "]"
|
.BI \-c " comment"
|
||||||
Specifies a comment to be added when signing. This is typically a useful
|
Specifies a comment to be added when signing. This is typically a useful
|
||||||
message which describes how the image was signed or some other useful
|
message which describes how the image was signed or some other useful
|
||||||
information.
|
information.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-D [" "dtc options" "]"
|
.BI \-D " dtc-options"
|
||||||
Provide special options to the device tree compiler that is used to
|
Provide special options to the device tree compiler that is used to
|
||||||
create the image.
|
create the image.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-E
|
.BI \-E
|
||||||
After processing, move the image data outside the FIT and store a data offset
|
After processing, move the image data outside the FIT and store a data offset
|
||||||
in the FIT. Images will be placed one after the other immediately after the
|
in the FIT. Images will be placed one after the other immediately after the
|
||||||
FIT, with each one aligned to a 4-byte boundary. The existing 'data' property
|
FIT, with each one aligned to a 4-byte boundary. The existing 'data' property
|
||||||
@ -180,12 +180,12 @@ A 'data-offset' of 0 indicates that it starts in the first (4-byte aligned)
|
|||||||
byte after the FIT.
|
byte after the FIT.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-B [" "alignment" "]"
|
.BI \-B " alignment"
|
||||||
The alignment, in hexadecimal, that external data will be aligned to. This
|
The alignment, in hexadecimal, that external data will be aligned to. This
|
||||||
option only has an effect when \-E is specified.
|
option only has an effect when \-E is specified.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-f [" "image tree source file" " | " "auto" "]"
|
.BI \-f " image-tree-source-file"
|
||||||
Image tree source file that describes the structure and contents of the
|
Image tree source file that describes the structure and contents of the
|
||||||
FIT image.
|
FIT image.
|
||||||
.IP
|
.IP
|
||||||
@ -195,29 +195,29 @@ and -e are used to specify the image to include in the FIT and its attributes.
|
|||||||
No .its file is required.
|
No .its file is required.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-F"
|
.B \-F
|
||||||
Indicates that an existing FIT image should be modified. No dtc
|
Indicates that an existing FIT image should be modified. No dtc
|
||||||
compilation is performed and the \-f flag should not be given.
|
compilation is performed and the \-f flag should not be given.
|
||||||
This can be used to sign images with additional keys after initial image
|
This can be used to sign images with additional keys after initial image
|
||||||
creation.
|
creation.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-i [" "ramdisk_file" "]"
|
.BI \-i " ramdisk-file"
|
||||||
Appends the ramdisk file to the FIT.
|
Appends the ramdisk file to the FIT.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-k [" "key_directory" "]"
|
.BI \-k " key-directory"
|
||||||
Specifies the directory containing keys to use for signing. This directory
|
Specifies the directory containing keys to use for signing. This directory
|
||||||
should contain a private key file <name>.key for use with signing and a
|
should contain a private key file <name>.key for use with signing and a
|
||||||
certificate <name>.crt (containing the public key) for use with verification.
|
certificate <name>.crt (containing the public key) for use with verification.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-G [" "key_file" "]"
|
.BI \-G " key-file"
|
||||||
Specifies the private key file to use when signing. This option may be used
|
Specifies the private key file to use when signing. This option may be used
|
||||||
instead of \-k.
|
instead of \-k.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-K [" "key_destination" "]"
|
.BI \-K " key-destination"
|
||||||
Specifies a compiled device tree binary file (typically .dtb) to write
|
Specifies a compiled device tree binary file (typically .dtb) to write
|
||||||
public key information into. When a private key is used to sign an image,
|
public key information into. When a private key is used to sign an image,
|
||||||
the corresponding public key is written into this file for for run-time
|
the corresponding public key is written into this file for for run-time
|
||||||
@ -225,42 +225,42 @@ verification. Typically the file here is the device tree binary used by
|
|||||||
CONFIG_OF_CONTROL in U-Boot.
|
CONFIG_OF_CONTROL in U-Boot.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-G [" "key_file" "]"
|
.BI \-G " key-file"
|
||||||
Specifies the private key file to use when signing. This option may be used
|
Specifies the private key file to use when signing. This option may be used
|
||||||
instead of \-k.
|
instead of \-k.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-g [" "key_name_hint" "]"
|
.BI \-g " key-name-hint"
|
||||||
Sets the key-name-hint property when used with \-f auto. This is the <name>
|
Sets the key-name-hint property when used with \-f auto. This is the <name>
|
||||||
part of the key. The directory part is set by \-k. This option also indicates
|
part of the key. The directory part is set by \-k. This option also indicates
|
||||||
that the images included in the FIT should be signed. If this option is
|
that the images included in the FIT should be signed. If this option is
|
||||||
specified, \-o must be specified as well.
|
specified, \-o must be specified as well.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-o [" "signing algorithm" "]"
|
.BI \-o " signing-algorithm"
|
||||||
Specifies the algorithm to be used for signing a FIT image. The default is
|
Specifies the algorithm to be used for signing a FIT image. The default is
|
||||||
taken from the signature node's 'algo' property.
|
taken from the signature node's 'algo' property.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-p [" "external position" "]"
|
.BI \-p " external-position"
|
||||||
Place external data at a static external position. See \-E. Instead of writing
|
Place external data at a static external position. See \-E. Instead of writing
|
||||||
a 'data-offset' property defining the offset from the end of the FIT, \-p will
|
a 'data-offset' property defining the offset from the end of the FIT, \-p will
|
||||||
use 'data-position' as the absolute position from the base of the FIT.
|
use 'data-position' as the absolute position from the base of the FIT.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-r"
|
.B \-r
|
||||||
Specifies that keys used to sign the FIT are required. This means that they
|
Specifies that keys used to sign the FIT are required. This means that they
|
||||||
must be verified for the image to boot. Without this option, the verification
|
must be verified for the image to boot. Without this option, the verification
|
||||||
will be optional (useful for testing but not for release).
|
will be optional (useful for testing but not for release).
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-N [" "engine" "]"
|
.BI \-N " engine"
|
||||||
The openssl engine to use when signing and verifying the image. For a complete list of
|
The openssl engine to use when signing and verifying the image. For a complete list of
|
||||||
available engines, refer to
|
available engines, refer to
|
||||||
.BR engine (1).
|
.BR engine (1).
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-t
|
.B \-t
|
||||||
Update the timestamp in the FIT.
|
Update the timestamp in the FIT.
|
||||||
.IP
|
.IP
|
||||||
Normally the FIT timestamp is created the first time mkimage is run on a FIT,
|
Normally the FIT timestamp is created the first time mkimage is run on a FIT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user