blob: bc28a5d748459a3e528d6aff645cb3e78c81282c [file] [log] [blame]
Pali Rohárcdf0d1c2022-02-13 01:09:46 +01001.TH MKIMAGE 1 "2022-02-07"
Sean Anderson0d862732022-06-25 13:12:09 -04002.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +09003.SH NAME
Sean Anderson9ed02c02022-06-25 13:12:14 -04004mkimage \- generate images for U-Boot
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +09005.SH SYNOPSIS
Sean Anderson90283862022-06-25 13:12:08 -04006.SY mkimage
7.OP \-T type
8.BI \-l\~ image-file-name
9.YS
Sean Anderson0d862732022-06-25 13:12:09 -040010.
Sean Anderson90283862022-06-25 13:12:08 -040011.SY mkimage
12.RI [ option\~ .\|.\|.\&]
13.OP \-T type
14.I image-file-name
15.YS
Sean Anderson0d862732022-06-25 13:12:09 -040016.
Sean Anderson90283862022-06-25 13:12:08 -040017.SY mkimage
18.RI [ option\~ .\|.\|.\&]
19.BI \-f\~ image-tree-source-file\c
20.RB | auto
21.I image-file-name
22.YS
Sean Anderson0d862732022-06-25 13:12:09 -040023.
Sean Anderson90283862022-06-25 13:12:08 -040024.SY mkimage
25.RI [ option\~ .\|.\|.\&]
26.BI \-F\~ image-file-name
27.YS
Sean Anderson0d862732022-06-25 13:12:09 -040028.
Sean Andersond72a0592022-06-25 13:12:11 -040029.SH DESCRIPTION
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +090030The
31.B mkimage
Sean Anderson5f3aa382022-06-25 13:12:15 -040032command is used to create images for use with the U-Boot boot loader. These
33images can contain the Linux kernel, device tree blob, root file system image,
34firmware images etc., either separate or combined.
Sean Anderson0d862732022-06-25 13:12:09 -040035.P
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +090036.B mkimage
Sean Anderson5f3aa382022-06-25 13:12:15 -040037supports many image formats. Some of these formats may be used by embedded boot
38firmware to load U-Boot. Others may be used by U-Boot to load Linux (or some
39other kernel):
Sean Anderson0d862732022-06-25 13:12:09 -040040.P
Sean Anderson5f3aa382022-06-25 13:12:15 -040041The legacy image format concatenates the individual parts (for example, kernel
42image, device tree blob and ramdisk image) and adds a 64 byte header containing
43information about the target architecture, operating system, image type,
44compression method, entry points, time stamp, checksums, etc.
Sean Anderson0d862732022-06-25 13:12:09 -040045.P
Horst Kronstorfere6b37cf2011-12-21 04:31:23 +000046The new
Sean Anderson5f3aa382022-06-25 13:12:15 -040047.I FIT
48(Flattened Image Tree) format allows for more flexibility in handling images of
49various types and also enhances integrity protection of images with stronger
50checksums. It also supports verified boot.
Sean Anderson0d862732022-06-25 13:12:09 -040051.
Sean Andersond72a0592022-06-25 13:12:11 -040052.SH OPTIONS
Sean Anderson0d862732022-06-25 13:12:09 -040053.
Sean Anderson41b1ca92022-06-25 13:12:12 -040054.SS General options
Sean Anderson0d862732022-06-25 13:12:09 -040055.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +090056.TP
Sean Andersone4045c02022-06-25 13:12:13 -040057.B \-h
58Print a help message and exit.
Sean Anderson0d862732022-06-25 13:12:09 -040059.
Pali Rohárcdf0d1c2022-02-13 01:09:46 +010060.TP
Sean Andersone4045c02022-06-25 13:12:13 -040061.B \-l
Sean Anderson5f3aa382022-06-25 13:12:15 -040062.B mkimage
63lists the information contained in the header of an existing U-Boot image.
Sean Andersone4045c02022-06-25 13:12:13 -040064.
65.TP
66.B \-s
67Don't copy in the image data. Depending on the image type, this may create
68just the header, everything but the image data, or nothing at all.
69.
70.TP
Sean Andersond72a0592022-06-25 13:12:11 -040071.BI \-T " image-type"
Sean Anderson5f3aa382022-06-25 13:12:15 -040072Parse image file as
73.IR image-type .
74Pass
75.B list
76as
77.I image-type
78to see the list of supported image types. If this option is absent, then it
79defaults to
80.B kernel
81(legacy image). If this option is absent when
82.B \-l
83is passed, then
84.B mkimage
85will attempt to automatically detect the image type. Not all image types support
86automatic detection, so it may be necessary to pass
87.B \-T
88explicitly.
89.IP
90When creating a FIT image with
91.BR \-f ,
92the image type is always set to
93.BR flat_dt .
94In this case,
95.B \-T
96specifies the image node's \(oqtype\(cq property. If
97.B \-T
98is absent, then the \(oqtype\(cq property will default to
99.BR kernel .
Sean Anderson0d862732022-06-25 13:12:09 -0400100.
Sean Anderson138d2712022-04-08 16:08:39 -0400101.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400102.B \-q
Sean Andersone4045c02022-06-25 13:12:13 -0400103Quiet. Don't print the image header.
104.
105.TP
106.B \-v
107Verbose. Print file names as they are added to the image.
108.
109.TP
110.B \-V
111Print version information and exit.
Sean Anderson0d862732022-06-25 13:12:09 -0400112.
Sean Anderson41b1ca92022-06-25 13:12:12 -0400113.SS General image-creation options
Sean Anderson0d862732022-06-25 13:12:09 -0400114.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900115.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400116.BI \-A " architecture"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400117Set the architecture. Pass
118.B \-h
119as the architecture to see the list of supported architectures. If
120.B \-A
121is absent, it defaults to
122.BR ppc .
Sean Anderson0d862732022-06-25 13:12:09 -0400123.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900124.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400125.BI \-O " os"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400126Set the operating system. The U-Boot
127.I bootm
128command changes boot method based on the OS type.
129Pass
130.B \-h
131as the
132.I os
133to see the list of supported OSs. If
134.B \-O
135is absent, it defaults to
136.BR linux .
Sean Anderson0d862732022-06-25 13:12:09 -0400137.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900138.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400139.BI \-C " compression-type"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400140Set the compression type. The image data should have already been compressed
141using this compression type.
142.B mkimage
143will not automatically compress image data.
144Pass
145.B \-h
146as the
147.I compression-type
148to see the list of supported compression types. If
149.B \-C
150is absent, it defaults to
151.BR gzip .
Sean Anderson0d862732022-06-25 13:12:09 -0400152.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900153.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400154.BI \-a " load-address"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400155Set the absolute address to load the image data to.
156.I load-address
157will be interpreted as a hexadecimal number.
Sean Anderson0d862732022-06-25 13:12:09 -0400158.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900159.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400160.BI \-e " entry-point"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400161Set the absolute address of the image entry point. The U-Boot
162.I bootm
163command will jump to this address after loading the image.
164.I entry-point
165will be interpreted as a hexadecimal number.
Sean Anderson0d862732022-06-25 13:12:09 -0400166.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900167.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400168.BI \-n " image-name"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400169Set the image name to
170.IR image-name .
Sean Anderson0d862732022-06-25 13:12:09 -0400171.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900172.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400173.BI \-R " secondary-image-name"
Sean Anderson138d2712022-04-08 16:08:39 -0400174Some image types support a second image for additional data. For these types,
Sean Anderson5f3aa382022-06-25 13:12:15 -0400175use
176.B \-R
177to specify this second image.
Sean Anderson021e2db2022-05-16 16:11:07 -0400178.TS
179allbox;
180lb lbx
181l l.
182Image Type Secondary Image Description
183pblimage Additional RCW-style header, typically used for PBI commands.
184zynqimage, zynqmpimage T{
185Initialization parameters, one per line. Each parameter has the form
186.sp
187.ti 4
188.I address data
189.sp
190where
191.I address
192and
193.I data
194are hexadecimal integers. The boot ROM will write each
195.I data
196to
197.I address
198when loading the image. At most 256 parameters may be specified in this
199manner.
200T}
201.TE
Sean Anderson0d862732022-06-25 13:12:09 -0400202.
Sean Anderson138d2712022-04-08 16:08:39 -0400203.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400204.BI \-d " image-data-file"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400205Use image data from
206.IR image-data-file .
207If the
208.I image-type
209is
210.BR multi ,
211then multiple images may be specified, separated by colons:
212.RS
213.IP
214.IR image-data-file [\fB:\fP image-data-file .\|.\|.]
215.RE
Sean Anderson0d862732022-06-25 13:12:09 -0400216.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900217.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400218.B \-x
Sean Anderson5f3aa382022-06-25 13:12:15 -0400219Set the
220.I XIP
221(execute in place) flag. The U-Boot
222.I bootm
223command will not load the image data, and instead will assume it is already
224accessible at the load address (such as via memory-mapped flash).
Sean Anderson0d862732022-06-25 13:12:09 -0400225.
Sean Anderson41b1ca92022-06-25 13:12:12 -0400226.SS Options for creating FIT images
Sean Anderson0d862732022-06-25 13:12:09 -0400227.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900228.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400229.BI \-b " device-tree-file"
Andreas Bießmannf4001582016-05-01 03:01:27 +0200230Appends the device tree binary file (.dtb) to the FIT.
Sean Anderson0d862732022-06-25 13:12:09 -0400231.
Simon Glassbd8bc5d2016-02-22 22:55:52 -0700232.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400233.BI \-c " comment"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400234Specifies a comment to be added when signing. This is typically a message which
235describes how the image was signed or some other useful information.
Sean Anderson0d862732022-06-25 13:12:09 -0400236.
Simon Glassbf27d3d2013-06-13 15:10:06 -0700237.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400238.BI \-D " dtc-options"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400239Provide additional options to the device tree compiler when creating the image.
240See
241.BR dtc (1)
242for documentation of possible options. If
243.B \-D
244is absent, it defaults to
245.BR "\-I dts \-O dtb \-p 500" .
Sean Anderson0d862732022-06-25 13:12:09 -0400246.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900247.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400248.BI \-E
Simon Glassafd728c2016-02-22 22:55:53 -0700249After processing, move the image data outside the FIT and store a data offset
Sean Anderson5f3aa382022-06-25 13:12:15 -0400250in the FIT. Images will be placed one after the other immediately after the FIT,
251with each one aligned to a 4-byte boundary. The existing \(oqdata\(cq property
252in each image will be replaced with \(oqdata-offset\(cq and \(oqdata-size\(cq
253properties. A \(oqdata-offset\(cq of 0 indicates that it starts in the first
254(4-byte-aligned) byte after the FIT.
Sean Anderson0d862732022-06-25 13:12:09 -0400255.
Simon Glassafd728c2016-02-22 22:55:53 -0700256.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400257.BI \-B " alignment"
Sean Anderson138d2712022-04-08 16:08:39 -0400258The alignment, in hexadecimal, that external data will be aligned to. This
259option only has an effect when \-E is specified.
Sean Anderson0d862732022-06-25 13:12:09 -0400260.
Sean Anderson138d2712022-04-08 16:08:39 -0400261.TP
Sean Andersone4045c02022-06-25 13:12:13 -0400262.BI \-p " external-position"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400263Place external data at a static external position. Instead of writing a
264\(oqdata-offset\(cq property defining the offset from the end of the FIT,
265.B \-p
266will use \(oqdata-position\(cq as the absolute position from the base of the
267FIT. See
268.B \-E
269for details on using external data.
Sean Andersone4045c02022-06-25 13:12:13 -0400270.
271.TP
Sean Anderson5f3aa382022-06-25 13:12:15 -0400272\fB\-f \fIimage-tree-source-file\fR | \fBauto
Horst Kronstorfere6b37cf2011-12-21 04:31:23 +0000273Image tree source file that describes the structure and contents of the
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900274FIT image.
Sean Anderson0d862732022-06-25 13:12:09 -0400275.IP
Sean Anderson5f3aa382022-06-25 13:12:15 -0400276In some simple cases, the image tree source can be generated automatically. To
277use this feature, pass
278.BR "\-f auto" .
279The
280.BR \-d ,
281.BR \-A ,
282.BR \-O ,
283.BR \-T ,
284.BR \-C ,
285.BR \-a ,
286and
287.B \-e
288options may be used to specify the image to include in the FIT and its
289attributes. No
290.I image-tree-source-file
291is required.
Sean Anderson0d862732022-06-25 13:12:09 -0400292.
Simon Glassb1489742013-06-13 15:10:03 -0700293.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400294.B \-F
Sean Anderson5f3aa382022-06-25 13:12:15 -0400295Indicates that an existing FIT image should be modified. No dtc compilation will
296be performed and
297.B \-f
298should not be passed. This can be used to sign images with additional keys
299after initial image creation.
Sean Anderson0d862732022-06-25 13:12:09 -0400300.
Simon Glassce8c3ca2013-06-13 15:10:05 -0700301.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400302.BI \-i " ramdisk-file"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400303Append a ramdisk or initramfs file to the image.
Sean Anderson0d862732022-06-25 13:12:09 -0400304.
Tomeu Vizoso8d83ed22016-11-04 14:22:15 +0100305.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400306.BI \-k " key-directory"
Simon Glassb1489742013-06-13 15:10:03 -0700307Specifies the directory containing keys to use for signing. This directory
Sean Anderson5f3aa382022-06-25 13:12:15 -0400308should contain a private key file
309.IR name .key
310for use with signing, and a certificate
311.IR name .crt
312(containing the public key) for use with verification. The public key is only
313necessary when embedding it into another device tree using
314.BR \-K .
315.I name
316defaults to the value of the signature node's \(oqkey-name-hint\(cq property,
317but may be overridden using
318.BR \-g .
Sean Anderson0d862732022-06-25 13:12:09 -0400319.
Simon Glassb4d8b092013-06-13 15:10:04 -0700320.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400321.BI \-G " key-file"
Sean Anderson021e2db2022-05-16 16:11:07 -0400322Specifies the private key file to use when signing. This option may be used
323instead of \-k.
Sean Anderson0d862732022-06-25 13:12:09 -0400324.
Sean Anderson021e2db2022-05-16 16:11:07 -0400325.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400326.BI \-K " key-destination"
Simon Glassb4d8b092013-06-13 15:10:04 -0700327Specifies a compiled device tree binary file (typically .dtb) to write
328public key information into. When a private key is used to sign an image,
329the corresponding public key is written into this file for for run-time
330verification. Typically the file here is the device tree binary used by
331CONFIG_OF_CONTROL in U-Boot.
Sean Anderson0d862732022-06-25 13:12:09 -0400332.
Simon Glass817278a2013-06-13 15:10:07 -0700333.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400334.BI \-g " key-name-hint"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400335Overrides the signature node's \(oqkey-name-hint\(cq property. This is
336especially useful when signing an image with
337.BR "\-f auto" .
338This is the
339.I name
340part of the key. The directory part is set by
341.BR \-k .
342This option also indicates that the images included in the FIT should be signed.
343If this option is specified, then
344.B \-o
345must be specified as well.
Sean Anderson0d862732022-06-25 13:12:09 -0400346.
Sean Anderson5f150292022-05-16 16:11:08 -0400347.TP
Sean Anderson5f3aa382022-06-25 13:12:15 -0400348.BI \-o " crypto" , checksum
Jan Kiszka4043f322022-01-14 10:21:19 +0100349Specifies the algorithm to be used for signing a FIT image. The default is
Sean Anderson5f3aa382022-06-25 13:12:15 -0400350taken from the signature node's \(oqalgo\(cq property.
351The valid values for
352.I crypto
353are:
354.RS
355.IP
356.TS
357lb.
358rsa2048
359rsa3072
360rsa4096
361ecdsa256
362.TE
363.RE
364.IP
365The valid values for
366.I checksum
367are
368.RS
369.IP
370.TS
371lb.
372sha1
373sha256
374sha384
375sha512
376.TE
377.RE
Sean Anderson0d862732022-06-25 13:12:09 -0400378.
Jan Kiszka4043f322022-01-14 10:21:19 +0100379.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400380.B \-r
Simon Glass817278a2013-06-13 15:10:07 -0700381Specifies that keys used to sign the FIT are required. This means that they
382must be verified for the image to boot. Without this option, the verification
383will be optional (useful for testing but not for release).
Sean Anderson0d862732022-06-25 13:12:09 -0400384.
Simon Glass472ee0c2020-07-09 18:39:43 -0600385.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400386.BI \-N " engine"
Sean Anderson5f3aa382022-06-25 13:12:15 -0400387The openssl engine to use when signing and verifying the image. For a complete
388list of available engines, refer to
Sean Anderson138d2712022-04-08 16:08:39 -0400389.BR engine (1).
Sean Anderson0d862732022-06-25 13:12:09 -0400390.
Sean Anderson138d2712022-04-08 16:08:39 -0400391.TP
Sean Andersond72a0592022-06-25 13:12:11 -0400392.B \-t
Simon Glass472ee0c2020-07-09 18:39:43 -0600393Update the timestamp in the FIT.
Sean Anderson0d862732022-06-25 13:12:09 -0400394.IP
Sean Anderson5f3aa382022-06-25 13:12:15 -0400395Normally the FIT timestamp is created the first time mkimage runs,
Simon Glass472ee0c2020-07-09 18:39:43 -0600396when converting the source .its to the binary .fit file. This corresponds to
Sean Anderson5f3aa382022-06-25 13:12:15 -0400397using
398.BR -f .
399But if the original input to mkimage is a binary file (already compiled), then
400the timestamp is assumed to have been set previously.
Sean Anderson0d862732022-06-25 13:12:09 -0400401.
Sean Anderson5e5d9b52022-06-25 13:12:16 -0400402.SH BUGS
403Please report bugs to the
404.UR https://\:source\:.denx\:.de/\:u-boot/\:u-boot/\:issues
405U-Boot bug tracker
406.UE .
Horst Kronstorfere6b37cf2011-12-21 04:31:23 +0000407.SH EXAMPLES
Sean Anderson05757942022-06-25 13:12:10 -0400408.\" Reduce the width of the tab stops to something reasonable
409.ta T 1i
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900410List image information:
Sean Anderson05757942022-06-25 13:12:10 -0400411.RS
412.P
413.EX
414\fBmkimage \-l uImage
415.EE
416.RE
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900417.P
418Create legacy image with compressed PowerPC Linux kernel:
Sean Anderson05757942022-06-25 13:12:10 -0400419.RS
420.P
421.EX
422\fBmkimage \-A powerpc \-O linux \-T kernel \-C gzip \\
423 \-a 0 \-e 0 \-n Linux \-d vmlinux.gz uImage
424.EE
425.RE
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900426.P
427Create FIT image with compressed PowerPC Linux kernel:
Sean Anderson05757942022-06-25 13:12:10 -0400428.RS
429.P
430.EX
431\fBmkimage \-f kernel.its kernel.itb
432.EE
433.RE
Simon Glassb4d8b092013-06-13 15:10:04 -0700434.P
435Create FIT image with compressed kernel and sign it with keys in the
Sean Anderson05757942022-06-25 13:12:10 -0400436/public/signing\-keys directory. Add corresponding public keys into u\-boot.dtb,
Simon Glassb4d8b092013-06-13 15:10:04 -0700437skipping those for which keys cannot be found. Also add a comment.
Sean Anderson05757942022-06-25 13:12:10 -0400438.RS
Simon Glassce8c3ca2013-06-13 15:10:05 -0700439.P
Sean Anderson05757942022-06-25 13:12:10 -0400440.EX
441\fBmkimage \-f kernel.its \-k /public/signing\-keys \-K u\-boot.dtb \\
442 \-c \(dqKernel 3.8 image for production devices\(dq kernel.itb
443.EE
444.RE
445.P
446Add public keys to u\-boot.dtb without needing a FIT to sign. This will also
Sean Anderson5f150292022-05-16 16:11:08 -0400447create a FIT containing an images node with no data named unused.itb.
Sean Anderson05757942022-06-25 13:12:10 -0400448.RS
449.P
450.EX
451\fBmkimage \-f auto \-d /dev/null \-k /public/signing\-keys \-g dev \\
452 \-o sha256,rsa2048 \-K u\-boot.dtb unused.itb
453.EE
454.RE
Sean Anderson5f150292022-05-16 16:11:08 -0400455.P
Simon Glassce8c3ca2013-06-13 15:10:05 -0700456Update an existing FIT image, signing it with additional keys.
Sean Anderson05757942022-06-25 13:12:10 -0400457Add corresponding public keys into u\-boot.dtb. This will resign all images
Simon Glassce8c3ca2013-06-13 15:10:05 -0700458with keys that are available in the new directory. Images that request signing
459with unavailable keys are skipped.
Sean Anderson05757942022-06-25 13:12:10 -0400460.RS
461.P
462.EX
463\fBmkimage \-F \-k /secret/signing\-keys \-K u\-boot.dtb \\
464 \-c \(dqKernel 3.8 image for production devices\(dq kernel.itb
465.EE
466.RE
Simon Glass88e31cb2016-02-22 22:55:51 -0700467.P
468Create a FIT image containing a kernel, using automatic mode. No .its file
469is required.
Sean Anderson05757942022-06-25 13:12:10 -0400470.RS
471.P
472.EX
473\fBmkimage \-f auto \-A arm \-O linux \-T kernel \-C none \-a 43e00000 \-e 0 \\
474 \-c \(dqKernel 4.4 image for production devices\(dq \-d vmlinuz kernel.itb
475.EE
476.RE
Simon Glassbd8bc5d2016-02-22 22:55:52 -0700477.P
478Create a FIT image containing a kernel and some device tree files, using
479automatic mode. No .its file is required.
Sean Anderson05757942022-06-25 13:12:10 -0400480.RS
481.P
482.EX
483\fBmkimage \-f auto \-A arm \-O linux \-T kernel \-C none \-a 43e00000 \-e 0 \\
484 \-c \(dqKernel 4.4 image for production devices\(dq \-d vmlinuz \\
485 \-b /path/to/rk3288\-firefly.dtb \-b /path/to/rk3288\-jerry.dtb kernel.itb
486.EE
487.RE
Sean Anderson5f150292022-05-16 16:11:08 -0400488.P
489Create a FIT image containing a signed kernel, using automatic mode. No .its
490file is required.
Sean Anderson05757942022-06-25 13:12:10 -0400491.RS
492.P
493.EX
494\fBmkimage \-f auto \-A arm \-O linux \-T kernel \-C none \-a 43e00000 \-e 0 \\
495 \-d vmlinuz \-k /secret/signing\-keys \-g dev \-o sha256,rsa2048 kernel.itb
496.EE
497.RE
Sean Anderson0d862732022-06-25 13:12:09 -0400498.
Nobuhiro Iwamatsu9711cf62010-06-16 10:38:24 +0900499.PP
500.SH AUTHOR
501This manual page was written by Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Simon Glassb1489742013-06-13 15:10:03 -0700502and Wolfgang Denk <wd@denx.de>. It was updated for image signing by
503Simon Glass <sjg@chromium.org>.
Sean Anderson0707c982022-06-25 13:12:17 -0400504.SH SEE ALSO
505.BR dtc (1),
506.BR dumpimage (1),
507.BR openssl (1),
508the\~
509.UR https://\:u-boot\:.readthedocs\:.io/\:en/\:latest/\:index.html
510U-Boot documentation
511.UE