Mkimage tool options, Mkimage tool image creation, Mkimage tool options -21 – Altera SoC Embedded Design Suite User Manual
Page 186: Mkimage tool image creation -21

The preloader reads the following information from
mkimage
header:
1. Image magic number - determines if the image is a valid boot image
2. Image data size - the length of the boot image to be copied
3. Data load address - the entry point of the boot image
4. Operating system - determines if the image is a U-boot image or another type of image
5. Image name - the name of the boot image
6. Image CRC - the checksum value of the boot image
Figure 7-7:
mkimage
Header Layout from mkimage Tools
Image name
Data load address
Magic number
Entry point
Header CRC
Image CRC
Timestamp
OS arch type compression
Image data size
0x0040
0x0030
0x0020
0x0010
0x0000
0x4 0x8 0xC 0xD 0xE 0xF
mkimage
invokes the mkimage tool and the
--help
option provides the tool description and option
information.
mkimage Tool Options
The
--help
option of the mkimage tool provides the tool description and option information.
$ mkimage
Usage: mkimage -l image
-l ==> list image header information
mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d
data_file[:data_file...] image
-A ==> set architecture to 'arch'
-O ==> set operating system to 'os'
-T ==> set image type to 'type'
-C ==> set compression type 'comp'
-a ==> set load address to 'addr' (hex)
-e ==> set entry point to 'ep' (hex)
-n ==> set image name to 'name'
-d ==> use image data from 'datafile'
-x ==> set XIP (execute in place)
mkimage [-D dtc_options] -f fit-image.its fit-image
mkimage -V ==> print version information and exit
mkimage Tool Image Creation
Example 7-7: Creating a U-boot Image
mkimage –A arm –T firmware –C none –O u-boot –a 0x08000040 –e 0 –n “U-Boot
2011.12 for SOCFGPA board” –d u-boot.bin u-boot.img
ug-1137
2013.05.03
mkimage Tool Options
7-21
HPS Preloader User Guide
Altera Corporation