【发布时间】:2018-07-31 01:15:00
【问题描述】:
我是 Raspberry Pi 3B 的 building a Windows 10 IoT Core image,它需要在 EFIESP 分区的根目录包含一个自定义的 config.txt 文件。
我有edited the MyApp.FilesAndRegKeys.wm.xml file 来包含编辑后的config.txt 文件,如下所示:
<onecorePackageInfo
targetPartition="EFIESP"
releaseType="Production"
ownerType="OEM" />
<files>
<file
destinationDir="$(runtime.bootDrive)"
source="config.txt"
name="config.txt" />
</files>
但是buildimage MyApp test 命令给出了文件冲突错误:
错误:[00:00:01] onecore\base\cbs\mobile\iuvalidator\packagevalidationrules.cpp, PackageValidationRules::Rule_DetectFileCollisions,第 716 行,错误, 错误 - 检测到文件冲突,在包中找到文件“\config.txt” 'MyOEMName.MyApp.FilesAndRegKeys' 和 'RASPBERRYPI.RPi2.BootFirmware'。
如果我将name="config.txt" 更改为name="config2.txt" 则没有错误并且文件创建成功。但我希望它替换现有文件,而不是创建一个新文件。我在C:\IoT-ADK-AddonKit 或C:\BSP 的任何地方都看不到原始的config.txt 文件,所以我不确定如何编辑这个现有的包或强制进行替换。
【问题讨论】:
标签: raspberry-pi windows-10-iot-core windowsiot bsp