blob: 6740fb1061b1cf592312706a0de4ac1fa95b730b [file] [log] [blame]
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +09001.TH MKIMAGE 1 "2010-05-16"
2
3.SH NAME
4mkimage \- Generate image for U-Boot
5.SH SYNOPSIS
6.B mkimage
Simon Glass80e4df82013-06-13 15:10:03 -07007.RB "\-l [" "uimage file name" "]"
8
9.B mkimage
10.RB [\fIoptions\fP] " \-f [" "image tree source file" "]" " [" "uimage file name" "]"
11
12.B mkimage
13.RB [\fIoptions\fP] " (legacy mode)"
14
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090015.SH "DESCRIPTION"
16The
17.B mkimage
18command is used to create images for use with the U-Boot boot loader.
Horst Kronstorfer7aecfdd2011-12-21 04:31:23 +000019These images can contain the linux kernel, device tree blob, root file
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090020system image, firmware images etc., either separate or combined.
21
22.B mkimage
23supports two different formats:
24
Horst Kronstorfer7aecfdd2011-12-21 04:31:23 +000025The old
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090026.I legacy image
27format concatenates the individual parts (for example, kernel image,
28device tree blob and ramdisk image) and adds a 64 bytes header
29containing information about target architecture, operating system,
30image type, compression method, entry points, time stamp, checksums,
31etc.
32
Horst Kronstorfer7aecfdd2011-12-21 04:31:23 +000033The new
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090034.I FIT (Flattened Image Tree) format
Horst Kronstorfer7aecfdd2011-12-21 04:31:23 +000035allows for more flexibility in handling images of various types and also
Simon Glass80e4df82013-06-13 15:10:03 -070036enhances integrity protection of images with stronger checksums. It also
37supports verified boot.
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090038
39.SH "OPTIONS"
40
41.B List image information:
42
43.TP
44.BI "\-l [" "uimage file name" "]"
45mkimage lists the information contained in the header of an existing U-Boot image.
46
47.P
48.B Create old legacy image:
49
50.TP
51.BI "\-A [" "architecture" "]"
Loïc Minier3f1266d2011-01-04 02:32:36 +010052Set architecture. Pass \-h as the architecture to see the list of supported architectures.
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090053
54.TP
55.BI "\-O [" "os" "]"
56Set operating system. bootm command of u-boot changes boot method by os type.
Loïc Minier3f1266d2011-01-04 02:32:36 +010057Pass \-h as the OS to see the list of supported OS.
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090058
59.TP
60.BI "\-T [" "image type" "]"
61Set image type.
Loïc Minier3f1266d2011-01-04 02:32:36 +010062Pass \-h as the image to see the list of supported image type.
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090063
64.TP
65.BI "\-C [" "compression type" "]"
66Set compression type.
Loïc Minier3f1266d2011-01-04 02:32:36 +010067Pass \-h as the compression to see the list of supported compression type.
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090068
69.TP
70.BI "\-a [" "load addess" "]"
71Set load address with a hex number.
72
73.TP
74.BI "\-e [" "entry point" "]"
75Set entry point with a hex number.
76
77.TP
Simon Glass80e4df82013-06-13 15:10:03 -070078.BI "\-l"
79List the contents of an image.
80
81.TP
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090082.BI "\-n [" "image name" "]"
83Set image name to 'image name'.
84
85.TP
86.BI "\-d [" "image data file" "]"
87Use image data from 'image data file'.
88
89.TP
90.BI "\-x"
91Set XIP (execute in place) flag.
92
93.P
94.B Create FIT image:
95
96.TP
Horst Kronstorfer49fbf432011-12-23 05:40:20 +000097.BI "\-D [" "dtc options" "]"
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +090098Provide special options to the device tree compiler that is used to
99create the image.
100
101.TP
Horst Kronstorfer49fbf432011-12-23 05:40:20 +0000102.BI "\-f [" "image tree source file" "]"
Horst Kronstorfer7aecfdd2011-12-21 04:31:23 +0000103Image tree source file that describes the structure and contents of the
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +0900104FIT image.
105
Simon Glass80e4df82013-06-13 15:10:03 -0700106.TP
107.BI "\-k [" "key_directory" "]"
108Specifies the directory containing keys to use for signing. This directory
109should contain a private key file <name>.key for use with signing and a
110certificate <name>.crt (containing the public key) for use with verification.
111
Horst Kronstorfer7aecfdd2011-12-21 04:31:23 +0000112.SH EXAMPLES
Nobuhiro Iwamatsucd153552010-06-16 10:38:24 +0900113
114List image information:
115.nf
116.B mkimage -l uImage
117.fi
118.P
119Create legacy image with compressed PowerPC Linux kernel:
120.nf
121.B mkimage -A powerpc -O linux -T kernel -C gzip \\\\
122.br
123.B -a 0 -e 0 -n Linux -d vmlinux.gz uImage
124.fi
125.P
126Create FIT image with compressed PowerPC Linux kernel:
127.nf
128.B mkimage -f kernel.its kernel.itb
129.fi
130
131.SH HOMEPAGE
132http://www.denx.de/wiki/U-Boot/WebHome
133.PP
134.SH AUTHOR
135This manual page was written by Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Simon Glass80e4df82013-06-13 15:10:03 -0700136and Wolfgang Denk <wd@denx.de>. It was updated for image signing by
137Simon Glass <sjg@chromium.org>.