1 .TH MKIMAGE 1 "2010-05-16"
4 mkimage \- Generate image for U-Boot
7 .RB "\-l [" "uimage file name" "]"
10 .RB [\fIoptions\fP] " \-f [" "image tree source file" "]" " [" "uimage file name" "]"
13 .RB [\fIoptions\fP] " \-F [" "uimage file name" "]"
16 .RB [\fIoptions\fP] " (legacy mode)"
21 command is used to create images for use with the U-Boot boot loader.
22 These images can contain the linux kernel, device tree blob, root file
23 system image, firmware images etc., either separate or combined.
26 supports two different formats:
30 format concatenates the individual parts (for example, kernel image,
31 device tree blob and ramdisk image) and adds a 64 bytes header
32 containing information about target architecture, operating system,
33 image type, compression method, entry points, time stamp, checksums,
37 .I FIT (Flattened Image Tree) format
38 allows for more flexibility in handling images of various types and also
39 enhances integrity protection of images with stronger checksums. It also
40 supports verified boot.
44 .B List image information:
47 .BI "\-l [" "uimage file name" "]"
48 mkimage lists the information contained in the header of an existing U-Boot image.
51 .B Create old legacy image:
54 .BI "\-A [" "architecture" "]"
55 Set architecture. Pass \-h as the architecture to see the list of supported architectures.
59 Set operating system. bootm command of u-boot changes boot method by os type.
60 Pass \-h as the OS to see the list of supported OS.
63 .BI "\-T [" "image type" "]"
65 Pass \-h as the image to see the list of supported image type.
68 .BI "\-C [" "compression type" "]"
70 Pass \-h as the compression to see the list of supported compression type.
73 .BI "\-a [" "load addess" "]"
74 Set load address with a hex number.
77 .BI "\-e [" "entry point" "]"
78 Set entry point with a hex number.
82 List the contents of an image.
85 .BI "\-n [" "image name" "]"
86 Set image name to 'image name'.
89 .BI "\-d [" "image data file" "]"
90 Use image data from 'image data file'.
94 Set XIP (execute in place) flag.
100 .BI "\-D [" "dtc options" "]"
101 Provide special options to the device tree compiler that is used to
105 .BI "\-f [" "image tree source file" "]"
106 Image tree source file that describes the structure and contents of the
111 Indicates that an existing FIT image should be modified. No dtc
112 compilation is performed and the -f flag should not be given.
113 This can be used to sign images with additional keys after initial image
117 .BI "\-k [" "key_directory" "]"
118 Specifies the directory containing keys to use for signing. This directory
119 should contain a private key file <name>.key for use with signing and a
120 certificate <name>.crt (containing the public key) for use with verification.
123 .BI "\-K [" "key_destination" "]"
124 Specifies a compiled device tree binary file (typically .dtb) to write
125 public key information into. When a private key is used to sign an image,
126 the corresponding public key is written into this file for for run-time
127 verification. Typically the file here is the device tree binary used by
128 CONFIG_OF_CONTROL in U-Boot.
132 List image information:
137 Create legacy image with compressed PowerPC Linux kernel:
139 .B mkimage -A powerpc -O linux -T kernel -C gzip \\\\
141 .B -a 0 -e 0 -n Linux -d vmlinux.gz uImage
144 Create FIT image with compressed PowerPC Linux kernel:
146 .B mkimage -f kernel.its kernel.itb
149 Create FIT image with compressed kernel and sign it with keys in the
150 /public/signing-keys directory. Add corresponding public keys into u-boot.dtb,
151 skipping those for which keys cannot be found. Also add a comment.
153 .B mkimage -f kernel.its -k /public/signing-keys -K u-boot.dtb \\\\
154 -c "Kernel 3.8 image for production devices" kernel.itb
158 Update an existing FIT image, signing it with additional keys.
159 Add corresponding public keys into u-boot.dtb. This will resign all images
160 with keys that are available in the new directory. Images that request signing
161 with unavailable keys are skipped.
163 .B mkimage -F -k /secret/signing-keys -K u-boot.dtb \\\\
164 -c "Kernel 3.8 image for production devices" kernel.itb
168 http://www.denx.de/wiki/U-Boot/WebHome
171 This manual page was written by Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
172 and Wolfgang Denk <wd@denx.de>. It was updated for image signing by
173 Simon Glass <sjg@chromium.org>.