The mkimage.py Python script utility takes as input a configuration file that provides image information.
For information about running the mkimage.py Python script utility, see mkimage.py in the the System Services Reference.
The configuration file used by mkimage.py provides the following information:
For example, the following file shows the contents for the jacinto5eco-sd.cfg configuration file:
[disk] heads=64 sectors_per_track=32 cylinders=3724 sector_size=512 [boot] path=/dos type=12 num_sectors=1048576 order=1 [base] path=/base type=179 num_sectors=1048576 order=3 [data] path=/ type=178 num_sectors=4194304 order=4
Type | Description |
---|---|
[disk] | This section doesn't specify a partition, but rather determines the size of the image and the size of the partitions. This section is required, must not be empty, must appear first in the file, and must be called [disk]. |
heads | The number of heads for the data medium used. |
sectors_per_track | The number of sectors for each track for the data medium used. |
cylinders | The number of cylinders for the data medium. |
sector_size | The size of the sectors used to store the data. |
[partition_name] | A partition in the image. In the example above, [boot] is the first partition and contains boot information; however, these partition names can be any name you specify, such as [base], and [data]. |
path | Identifies the path for the partition. |
type | Represents the identifier for the type of partition. For information about partition types, see "Partitions" in the System Architecture guide for QNX Neutrino. |
num_sectors | The number of sectors for the partition. |
order | The order for the specified partition in the image. Note: If the order is
1, then it's the bootable partition.
|
The example above shows that there are three partitions: