インテルのみ表示可能 — GUID: lro1436891706659
Ixiasoft
7.3.3. ツールの使用
mkimageツールは3つの使用モデルを備えています。
- シングル・イメージの作成
- クワッド・イメージの作成
- シングルまたはクワッド・イメージのデコーディング
make imageプロセス中にエラーが検出されると、ツールは停止し、エラーを表示します。起こり得るエラーには以下の条件が含まれます。
- Cyclone VおよびArria Vのプリローダ:入力イメージが81バイトより小さいか、あるいは60 KBより大きい場合
- Arria 10のブートローダ:入力イメージが92バイトより小さいか、あるいは200 KBより大きい場合
mkpimageによってツールが起動します。ツールを --helpオプションで起動すると、ツールの説明、ツールの使用方法やオプション情報が表示されます。
$ mkpimage --help
mkpimage version 15.1 (build 189)
Description: This tool creates an Altera 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 =
0, Arria 10 = 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