|
|
| 第 20 行: |
第 20 行: |
| * 由于 [[Windows RT Build 7915.0.fbl core1 kernel npc ext.110131-1820|Build 7915]] 设计用于在德州仪器的 OMAP4 上运行,且无法在 Tegra 2 QEMU 上运行,本指南不适用于此版本。必须改用 QEMU-woa。 | | * 由于 [[Windows RT Build 7915.0.fbl core1 kernel npc ext.110131-1820|Build 7915]] 设计用于在德州仪器的 OMAP4 上运行,且无法在 Tegra 2 QEMU 上运行,本指南不适用于此版本。必须改用 QEMU-woa。 |
|
| |
|
| ===详细设置=== | | === 详细说明 === |
| 这些说明基于在管理员权限下运行的命令提示符中进行。
| | 这些说明基于假设用户已经打开了提升权限的命令提示符窗口。 |
|
| |
|
| 运行包含以下命令的脚本,通过系统程序创建所需的虚拟磁盘映像;示例条件是假定在 <code>C:\</code> 驱动器中名为 <code>ARMv7Tegra2</code> 的目录下创建,并将 EFI 系统分区和系统主分区分别挂载在驱动器号 F 和 P 下。
| | 通过运行以下脚本使用 <code>diskpart</code> 工具创建所需的虚拟磁盘映像;它们将会在 C: 盘名为 <code>ARM8</code> 的目录下创建。<code>INSTALL</code>、<code>MainOS</code> 和 EFI 系统分区将分别装载到 F 和 P 盘符下。 |
| <syntaxhighlight lang="batch"> | | <syntaxhighlight lang="batch"> |
| create vdisk file="C:\ARM8\Setup.vhd" maximum=4096 type=expandable | | create vdisk file="C:\ARM8\Setup.vhd" maximum=4096 type=expandable |
| 第 44 行: |
第 44 行: |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| 根据所需的版本类型(fre 或者 chk),将安装介质的内容复制到分区。将所需的 EFI 启动管理器 (<code>\Windows\Boot\EFI\bootmgfw.efi</code>) [[Windows 安装程序]] wim 启动镜像或者 [[Windows 预安装环境]]中的相关启动文件(位于 <code>EFI\Boot\bootarm.efi</code>)复制到 <code>EFIESP</code> 分区。
| | 根据用户希望的版本(free 版本或 checked 版本),将安装介质的内容复制到 <code>INSTALL</code> 分区。从 [[Windows PE]] 或 [[Windows 安装程序]]启动映像中提取所需的 EFI 引导管理器(<code>\Windows\Boot\EFI\bootmgfw.efi</code>)到 <code>INSTALL</code>,作为 <code>EFI\Boot\bootarm.efi</code>。 |
|
| |
|
| 从计算机中弹出所有当前连接的虚拟磁盘,然后将以下脚本的内容粘贴到 QEMU 安装目录中的批处理文件上并运行,替换为修改后的固件(适用于早于 Build 7898 的版本)或其他固件(适用于 Build 7898 到 Build 7996):{{efn|name="quad2g"|如果使用 Tegra 2 WoA 分支的四核变体,则必须修改批处理脚本中的机器配置以处理 2 GB 的 RAM,且必须使用修补后的 <code>2g</code> EFI 固件封装来启动虚拟机。<code>multi2g</code> 组合可用于立即启动到 Build 8020 到 8061 区间的版本;如果未使用此组合,需要对 <code>SYSTEM</code> 配置单元进行必要的注册表修改,以加载 Tegra 2 HAL 扩展 <code>VEN_ra2.&DEV_0002</code>(<code>HalExtTegra2.dll</code>) 和 <code>VEN_ra2.&DEV_0003</code>(<code>HalExtTegra2Dma.dll</code>;在更高版本中为 <code>HalExtTegraDma.dll</code>)。}}
| | 弹出计算机上所有已连接的虚拟硬盘,并将以下脚本的内容粘贴到 QEMU 安装目录下的批处理文件中运行,将 <code>YYYY-MM-DD</code> 替换为早于版本内置[[时间炸弹]]到期的日期,将 <code>FWType</code> 替换为 <code>78xx</code> 变体固件(适用于早期至 [[Windows 8 Build 7898|7898]] 的版本)或 <code>multi</code> 变体(适用于 Build [[Windows RT Build 7898.0.fbl_core1_kernel_npc_ext.101209-1746|7898]] 到 [[Windows RT build 7996.0.fbl_multimedia_media_sndproc.110504-1700|7996]]):{{efn|name="quad2g"|如果使用 Tegra 2 WoA 分支的四核版本,则必须修改批处理脚本中的机器配置以支持 2 GB 内存,并且还必须使用经过修补的 <code>2g</code> EFI 固件封装来启动虚拟机。<code>multi2g</code> 组合可以用于立即启动 Build 8020 到 8061;如果未使用此组合,则需要对 <code>SYSTEM</code> 配置单元进行必要的注册表修改,以加载 Tegra 2 HAL 扩展 ID <code>VEN_ra2.&DEV_0002</code>(<code>HalExtTegra2.dll</code>)和 <code>VEN_ra2.&DEV_0003</code>(<code>HalExtTegra2Dma.dll</code>;在后期版本中为 <code>HalExtTegraDma.dll</code>)。}} |
| <syntaxhighlight lang="batch"> | | <syntaxhighlight lang="batch"> |
| set BL=".\fw\HARMONY.fd.FWType" | | set BL=".\fw\HARMONY.fd.FWType" |
| 第 60 行: |
第 60 行: |
| -serial null -nic none ^ | | -serial null -nic none ^ |
| -s ^ | | -s ^ |
| | -rtc base=YYYY-MM-DD,clock=vm ^ |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| 开始安装操作系统。必须直接从原始安装媒体启动安装程序,因为替换后的启动镜像中安装程序不起作用。运行以下命令可用于启动安装过程:<syntaxhighlight lang="batch">
| | 开始安装操作系统。安装程序必须直接从原始安装介质启动,这是因为操作系统启动映像中的版本无法使用。<!-- 在 Build 7792 到大约中后期 78xx 中,暂存不工作,根据 Microsoft 官方文档建议从安装介质开始安装。 -->可使用以下命令启动安装过程: |
| start D:\sources\setup.exe
| |
| </syntaxhighlight>
| |
| | |
| 完成第一阶段的设置后,立即删除安装介质的 SD 插槽设备,并运行以下批处理脚本配置启动到操作系统:{{efn|name="quad2g"}}
| |
| <syntaxhighlight lang="batch">
| |
| set BL=".\fw\HARMONY.fd.FWTYPE"
| |
| set MAIN="C:\ARM8\Main.vhd"
| |
| | |
| qemu-system-arm ^
| |
| -M tegra2-qemu -m 1G -accel tcg,thread=multi ^
| |
| -bootloader %BL% ^
| |
| -device usb-tablet,id=mouse -device usb-kbd,id=kbd ^
| |
| -drive if=sd,index=0,file=%MAIN% ^
| |
| -serial null -nic none ^
| |
| -s ^
| |
| </syntaxhighlight>
| |
| | |
| 在完成之后可以继续通过正常方式进行操作系统的 sysprep 阶段以及 OOBE 阶段。
| |
| | |
| ====Instructions====
| |
| These instructions assume that the user has an elevated command prompt window open.
| |
| | |
| Create the needed virtual disk images through the <code>diskpart</code> utility by running the below script; they will be created under a directory in the C: drive named <code>ARM8</code>. The <code>INSTALL</code>, <code>MainOS</code> and EFI system partitions will be respectively mounted under drive letters F and P.
| |
| <syntaxhighlight lang="batch"> | | <syntaxhighlight lang="batch"> |
| create vdisk file="C:\ARM8\Setup.vhd" maximum=4096 type=expandable
| |
| select vdisk file="C:\ARM8\Setup.vhd"
| |
| attach vdisk
| |
| convert gpt
| |
| create partition primary
| |
| format quick fs=fat32 label=INSTALL
| |
| assign letter=M
| |
| create vdisk file="C:\ARM8\Main.vhd" maximum=65536 type=expandable
| |
| select vdisk file="C:\ARM8\Main.vhd"
| |
| attach vdisk
| |
| convert gpt
| |
| create partition efi size=100
| |
| format quick fs=fat32 label=EFIESP
| |
| create partition primary
| |
| format quick fs=ntfs label=MainOS
| |
| assign letter=P
| |
| exit
| |
| </syntaxhighlight>
| |
|
| |
| Depending on the users' desired build flavor (free or checked), copy the contents of the installation media over to the <code>INSTALL</code> partition. Extract the needed EFI boot manager (<code>\Windows\Boot\EFI\bootmgfw.efi</code>) from the [[Windows PE]] or [[Windows Setup]] boot image to <code>INSTALL</code>, as <code>EFI\Boot\bootarm.efi</code>.
| |
|
| |
| Eject all currently attached virtual disks from the machine, and paste and run the contents of the below script onto a batch file within the QEMU installation directory, replacing <code>YYYY-MM-DD</code> with a date which is prior to the build’s built-in [[timebomb]] expires and <code>FWType</code> with either the <code>78xx</code> variant firmware (for early builds up to [[Windows 8 build 7898|7898]]) or the <code>multi</code> variant (for builds 7898 through [[Windows 8 build 7996 (fbl_multimedia_media_sndproc)|build 7996]]):{{efn|name="quad2g"|If utilizing the quad-core variant of the Tegra 2 WoA fork, the machine configuration in the batch script must be modified to address 2 GB of RAM, and the patched <code>2g</code> EFI firmware capsules must also be used to start up the virtual machine. The <code>multi2g</code> combination can be used to immediately boot into builds 8020 through 8061; if this combination is not being used, then necessary registry modifications against the <code>SYSTEM</code> hive to load Tegra 2 HAL extension IDs <code>VEN_ra2.&DEV_0002</code> (<code>HalExtTegra2.dll</code>) and <code>VEN_ra2.&DEV_0003</code> (<code>HalExtTegra2Dma.dll</code>; in later builds, <code>HalExtTegraDma.dll</code>) are required.}}
| |
| <syntaxhighlight lang="batch">
| |
| set BL=".\fw\HARMONY.fd.FWType"
| |
| set MAIN="C:\ARM8\Main.vhd"
| |
| set SETUP="C:\ARM8\Setup.vhd"
| |
|
| |
| qemu-system-arm ^
| |
| -M tegra2-qemu -m 1G -accel tcg,thread=multi ^
| |
| -bootloader %BL% ^
| |
| -device usb-tablet,id=mouse -device usb-kbd,id=kbd ^
| |
| -drive if=sd,index=0,format=vpc,file=%SETUP% ^
| |
| -drive if=sd,index=1,file=%MAIN% ^
| |
| -serial null -nic none ^
| |
| -s ^
| |
| -rtc base=YYYY-MM-DD,clock=vm ^
| |
| </syntaxhighlight>
| |
|
| |
| Start installing the operating system. Setup must be directly invoked from the original installation media as the version in the OS boot image does not function.<!-- staging doesn't work in build 7792 through ~mid-/late 78xx, and MS recommends starting setup from the install media per official documentation --> The following command may be used to start the installation process:<syntaxhighlight lang="batch">
| |
| start D:\sources\setup.exe | | start D:\sources\setup.exe |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| Immediately after completing the first phase of setup, remove the SD slot for the installation media and boot into the operating system by using the below batch script configuration:{{efn|name="quad2g"}}
| | 在完成第一阶段的安装程序后,立即取出安装媒介的 SD 卡槽,并使用以下批处理脚本配置启动操作系统:{{efn|name="quad2g"}} |
| <syntaxhighlight lang="batch"> | | <syntaxhighlight lang="batch"> |
| set BL=".\fw\HARMONY.fd.FWTYPE" | | set BL=".\fw\HARMONY.fd.FWTYPE" |
| 第 144 行: |
第 83 行: |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| Continue installing the operating system through normal means.
| | 继续通过正常方式安装操作系统。 |
|
| |
|
| ===Notes=== | | ===Notes=== |
| {{notelist}} | | {{notelist}} |