mkimage.py

Generate an image from existing .tar files. The mksysimage.py (wrapped by mksysimage.sh (Linux) or mksysimage.bat (Windows)) calls this command. You shouldn't call this command on its own.

Syntax:

 mkimage.py  [-o] outputpath ... [options]

Runs on:

Windows, Linux. Must be run using Python 2.7.5.

Options:

-b bootloader, --bootloader=bootloader
Add the specified bootloader file to the master boot record (MBR).
-c configfile, --config=configfile
Use the specified configuration file. See "Configuration file for mkimage.py" in the Getting Started guide.
-h, --help
Show the help that describes how to use this command.
-m
Don't modify the bootable QNX6 filesystem.
-o output, --output=output
Write to the specified image file.
-t tarfilepath, --tar_path=tarfilepath
Specify the path to the .tar files.
--tars tarfile1 [tarfile2 ...]
Specify a list of .tar files.
-v, --verbose
Specify the verbosity, up to a maximum of 4 levels.

Description:

The mkimage.py script creates an image from the .tar files, which are generated by mktar.py. Don't use the mkimage.py script on its own. Instead, you should run the mksysimage.py script, which calls the mkimage.py script.

The process used by mkimage.py to create an image is as follows:

  1. Extract the contents of the input .tar files to a temporary location and from these contents, generate the buildfiles (.build), which list the files in the partitions.
  2. Call mkxfs to use the buildfiles to generate the partition image (.image) files.
  3. Call diskimage to combine the .image files into the disk image.

Exit status:

0
An image file was generated successfully.
>0
An error occurred.

Caveats:

None.