Visible to Intel only — GUID: lro1436891706659
Ixiasoft
1. Introduction to the Intel® SoC FPGA Embedded Development Suite (SoC EDS)
2. Installing the Tools
3. Running the Tools
4. SoC EDS Licensing
5. Arm* Development Studio* for Intel® SoC FPGA Edition
6. Boot Tools User Guide
7. Hardware Library
8. Using the HPS Flash Programmer
9. Bare Metal Compilers
10. SD Card Boot Utility
11. Linux* Device Tree Generator
12. Support and Feedback
Visible to Intel only — GUID: lro1436891706659
Ixiasoft
6.3.3. Tool Usage
The mkimage tool has three usage models:
- Single image creation
- Quad image creation
- Single or quad image decoding
If an error is found during the make image process, the tool stops and reports the error. Possible error conditions include:
- For Cyclone® V SoC and Arria® V SoC Preloaders: input image is smaller than 81 bytes or larger than 60 KB.
- For Intel® Arria® 10 SoC Bootloaders: input image is smaller than 92 bytes or larger than 200 KB.
Type mkpimage to launch the tool. The --help option provides a tool description and tool usage and option information.
$ mkpimage --help
mkpimage version 19.1
Description: This tool creates an Intel BootROM-compatible image of Second
Stage Boot Loader (SSBL). The input and output files are in binary format.
It can also decode and check the validity of previously generated image.
Usage:
Create quad image:
mkpimage [options] -hv <num> -o <outfile> <infile> <infile> <infile> <infile>
Create single image:
mkpimage [options] -hv <num> -o <outfile> <infile>
Decode single/quad image:
mkpimage -d [-a <num>] <infile>
Options:
-a (--alignment) <num> : Address alignment in kilobytes for output image
(64, 128, 256, etc.), default to 64 for header
version 0 and 256 for header version 1,
override if the NAND flash has a different
block size. If outputting a single image, value
of '0' is permitted to specify no flash block
padding (needed for SSBL image encryption).
-d (--decode) : Flag to decode the header information from
input file and display it
-f (--force) : Flag to force decoding even if the input file
is an unpadded image
-h (--help) : Display this help message and exit
-hv (--header-version) <num> : Header version to be created (Arria/
Cyclone® V SoC =
0,
Intel®
Arria® 10 SoC = 1)
-o (--output) <outfile> : Output file, relative and absolute path
supported
-off (--offset) <num> : Program entry offset relative to start of
header (0x40), default to 0x14. Used for header
version 1 only
-v (--version) : Display version and exit