Bringing Up a Windows Mobile-based Platform > Developing a BSP for Windows Mobile > Using the Image Update Model > Image Update > Image Update Development Side Features > Packaging Tools
The Disk Image Tool, DskImage.exe, creates the image files (.bin and/or .nb0). It replaces Romimage.exe for Image Update builds.
DskImage.exe takes as input the package files: a memory configuration file and an image manifest file.
Usage
You can use the Disk Image Tool using the following command-line syntax:
dskimage <CFGfile> <SKUfile>
Parameters
-
CFGfile
-
Path to a memory configuration file. This file details the RAM and flash memory layout for the current platform, and defines all the partitions.
For more information, see Memory Configuration File.
SKUfile
-
Path to an image manifest file. This file lists collections of packages and assigns them to partitions.
For more information, see Image Manifest File.
Remarks
Disk Image does not process the file extension when parsing input files, but when called from the Package Builder, Buildpkg.bat, Disk Image expects inputs with the following names:
CFGfile = Memory.cfg.xml
SKUfile = %_TGTPLAT%.sku.xml
For more information about the Image Update build script, see Package Builder (BuildPkg.bat).
If you see output from the Disk Image Tool that looks like the following example output, then it means that an Image Update File System (IMGFS) partition was not found when DskImage.exe processed the memory configuration file. To successfully create the run-time image, it must contain an IMGFS partition. For more information, see Image Update File System (IMGFS) and Memory Configuration File.
Microsoft (R) DskImage 5.1.0.0 Disk Image Generation Utility Copyright (C) 2005 Microsoft Corporation All Rights Reserved. Using command line: MTYPHOON.cfg.xml MTYPHOON.sku.xml Using temporary directory: C:/MagnetoAK/DskImage Parsing C:/MagnetoAK/ty.bak/MTYPHOON.cfg.xml XML Validation Error: The element 'http://schemas.microsoft.com/embedded/2004/10/ImageUpdate:PARTITIONS' has incomplete content. Expected 'http://schemas.microsoft.com/embedded/2004/10/ImageUpdate:ROMIMAGE http://schemas.microsoft.com/embedded/2004/10/ImageUpdate:IMGFS'. An error occurred at file:///C:/MagnetoAK/ty.bak/MTYPHOON.cfg.xml, (21, 7). Error(s) while parsing C:/MagnetoAK/ty.bak/MTYPHOON.cfg.xml Inner Exception: Validation of C:/MagnetoAK/ty.bak/MTYPHOON.cfg.xml failed Disk Image failed
The workaround for this is to add an IMGFS partition to your run-time image. For more information, see IMGFS Element and System Partition.
See Also
Disk Image | DiskImage.bat | Packaging Tools