Disk Image Tool - 好像是buildpkg最后一步吧 这里需要Memory.cfg.xml

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值