Raspberry pi 使用修改后的config.txt文件构建IoT核心映像时发生文件冲突错误
我支持Raspberry Pi 3B,它需要在EFIESP分区的根目录下包含一个自定义的Raspberry pi 使用修改后的config.txt文件构建IoT核心映像时发生文件冲突错误,raspberry-pi,windows-10-iot-core,windowsiot,bsp,Raspberry Pi,Windows 10 Iot Core,Windowsiot,Bsp,我支持Raspberry Pi 3B,它需要在EFIESP分区的根目录下包含一个自定义的config.txt文件 我必须包括编辑的config.txt文件,如下所示: <onecorePackageInfo targetPartition="EFIESP" releaseType="Production" ownerType="OEM" /> <files> <file destinationDir="$(runtim
config.txt
文件
我必须包括编辑的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”
“myeomname.MyApp.filesandegkeys”和“RASPBERRYPI.RPi2.BootFirmware”
如果我将
name=“config.txt”
更改为name=“config2.txt”
,则没有错误,文件创建成功。但我希望它替换现有文件,而不是创建新文件。我在C:\IoT ADK AddonKit
或C:\BSP
中的任何地方都看不到原始的config.txt
文件,因此我不确定如何编辑此现有包或强制进行替换。如果要编辑config.txt文件,可以在生成映像后对其进行编辑。插入已闪烁图像的SD卡。您将在EFIESP驱动器中找到config.txt文件,如下所示:
参考:“和”
更新:使用修改后的config.txt文件构建物联网核心映像
config.txt是在一个包(RASPBERRYPI.RPi2.bootfrmware.cab)中提供的。因此,我们需要使用修改后的config.txt文件重新生成RASPBERRYPI.RPi2.BootFirmware.cab。您可以按照以下步骤操作:
D:\NewCab
。您可以在EFIESP驱动器中找到它们(您可以在闪存SD卡中找到EFIESP驱动器):RPi_UEFI.pkg.xml
文件生成新的CAB文件:
IoTCoreShell arm.cmd
,导航到路径D:\NewCab
,然后运行以下命令:
pkggen RPi_UEFI.pkg.xml
您将在工作文件夹中获得一个RASPBERRYPI.RPi2.bootfrimware.cab
RASPBERRYPI.RPi2.bootfrmware.cab
替换此路径中的默认路径C:\Program Files(x86)\Windows Kits\10\MSPackages\retail\arm\fre
之后,当您生成图像时,将添加编辑过的config.txt。像这样手动编辑该文件会起作用,但我希望将其作为自动过程的一部分进行,这样我就不需要在每次完成图像闪烁时执行手动步骤。@Coder6841 Ok。我得到了它。我会与相关的内部工程师联系,并尽快向您更新。@Coder6841我会找到您问题的解决方案。请检查我的最新答案。
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
-->
<Package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Owner="RASPBERRYPI"
Component="RPi2"
SubComponent="BootFirmware"
OwnerType="OEM"
ReleaseType="Production"
Platform="RPi2"
Partition="EFIESP"
BinaryPartition="false"
xmlns="urn:Microsoft.WindowsPhone/PackageSchema.v8.00">
<Components>
<OSComponent>
<Files>
<File
Source="bootcode.bin"
Name="bootcode.bin"
DestinationDir="$(runtime.root)"/>
<File
Source="config.txt"
Name="config.txt"
DestinationDir="$(runtime.root)"/>
<File
Source="fixup.dat"
Name="fixup.dat"
DestinationDir="$(runtime.root)"/>
<File
Source="fixup_cd.dat"
Name="fixup_cd.dat"
DestinationDir="$(runtime.root)"/>
<File
Source="fixup_x.dat"
Name="fixup_x.dat"
DestinationDir="$(runtime.root)"/>
<File
Source="kernel.img"
Name="kernel.img"
DestinationDir="$(runtime.root)"/>
<File
Source="LICENCE.broadcom"
Name="LICENCE.broadcom"
DestinationDir="$(runtime.root)"/>
<File
Source="start.elf"
Name="start.elf"
DestinationDir="$(runtime.root)"/>
<File
Source="start_cd.elf"
Name="start_cd.elf"
DestinationDir="$(runtime.root)"/>
<File
Source="start_x.elf"
Name="start_x.elf"
DestinationDir="$(runtime.root)"/>
</Files>
</OSComponent>
</Components>
</Package>