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] " (legacy mode)"
18 command is used to create images for use with the U-Boot boot loader.
19 These images can contain the linux kernel, device tree blob, root file
20 system image, firmware images etc., either separate or combined.
23 supports two different formats:
27 format concatenates the individual parts (for example, kernel image,
28 device tree blob and ramdisk image) and adds a 64 bytes header
29 containing information about target architecture, operating system,
30 image type, compression method, entry points, time stamp, checksums,
34 .I FIT (Flattened Image Tree) format
35 allows for more flexibility in handling images of various types and also
36 enhances integrity protection of images with stronger checksums. It also
37 supports verified boot.
41 .B List image information:
44 .BI "\-l [" "uimage file name" "]"
45 mkimage lists the information contained in the header of an existing U-Boot image.
48 .B Create old legacy image:
51 .BI "\-A [" "architecture" "]"
52 Set architecture. Pass \-h as the architecture to see the list of supported architectures.
56 Set operating system. bootm command of u-boot changes boot method by os type.
57 Pass \-h as the OS to see the list of supported OS.
60 .BI "\-T [" "image type" "]"
62 Pass \-h as the image to see the list of supported image type.
65 .BI "\-C [" "compression type" "]"
67 Pass \-h as the compression to see the list of supported compression type.
70 .BI "\-a [" "load addess" "]"
71 Set load address with a hex number.
74 .BI "\-e [" "entry point" "]"
75 Set entry point with a hex number.
79 List the contents of an image.
82 .BI "\-n [" "image name" "]"
83 Set image name to 'image name'.
86 .BI "\-d [" "image data file" "]"
87 Use image data from 'image data file'.
91 Set XIP (execute in place) flag.
97 .BI "\-D [" "dtc options" "]"
98 Provide special options to the device tree compiler that is used to
102 .BI "\-f [" "image tree source file" "]"
103 Image tree source file that describes the structure and contents of the
107 .BI "\-k [" "key_directory" "]"
108 Specifies the directory containing keys to use for signing. This directory
109 should contain a private key file <name>.key for use with signing and a
110 certificate <name>.crt (containing the public key) for use with verification.
114 List image information:
119 Create legacy image with compressed PowerPC Linux kernel:
121 .B mkimage -A powerpc -O linux -T kernel -C gzip \\\\
123 .B -a 0 -e 0 -n Linux -d vmlinux.gz uImage
126 Create FIT image with compressed PowerPC Linux kernel:
128 .B mkimage -f kernel.its kernel.itb
132 http://www.denx.de/wiki/U-Boot/WebHome
135 This manual page was written by Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
136 and Wolfgang Denk <wd@denx.de>. It was updated for image signing by
137 Simon Glass <sjg@chromium.org>.