0

我正在尝试遵循入门指南。

首先,我安装了这样的simics:

./ispm packages --install-bundle   $HOME/simics-6-packages-2021-24-linux64.ispm  --install-dir $HOME/simics
% cd simics/ && ls 
simics-6.0.89  simics-oss-sources-6.0.41  simics-pkg-mgr-tmp  simics-qsp-clear-linux-6.0.9  simics-qsp-cpu-6.0.1  simics-qsp-x86-6.0.44  simics-training-6.0.pre14

然后,我试图运行targets/qsp-x86/firststeps.simics但得到文件未找到错误:

kcc:~/simics > cd simics-qsp-x86-6.0.44/
kcc:~/simics/simics-qsp-x86-6.0.44 > ~/simics/simics-6.0.89/bin/simics
Intel Simics 6 (build 6103 linux64) Copyright 2010-2021 Intel Corporation


Use of this software is subject to appropriate license.
Type 'copyright' for details on copyright and 'help' for on-line documentation.

simics> run-command-file targets/qsp-x86/firststeps.simics
/usr/local/google/home/kcc/simics/simics-qsp-x86-6.0.44/targets/qsp-x86/qsp-images.include:10:8: Script argument spi_flash_image: File not found in any installed package: %simics%/targets/qsp-x86/images/spi-flash.bin
/usr/local/google/home/kcc/simics/simics-qsp-x86-6.0.44/targets/qsp-x86/qsp-images.include:3:8: Script argument bios_image: File not found in any installed package: %simics%/targets/qsp-x86/images/SIMICSX58IA32X64_1_0_0_bp_r.fd
Error - interrupting script.
simics> 

我究竟做错了什么?

4

1 回答 1

2

奇怪,你没有被不同的检查发现。所以首先,永远不要在安装文件夹中手动运行 Simics。您应该始终从 Simics 项目运行 Simics

要创建一个新的 Simics 项目,请执行以下操作:

$ cd $HOME 
$ $HOME/simics/simics-6.0.89/bin/project-setup my-new-project
$ cd my-new-project
$ ./simics 

如果您在一些已经存在的文件夹中执行此操作,其中包含一些文件,则添加--ignore-existing-files如下:

$HOME/simics/simics-6.0.89/bin/project-setup --ignore-existing-files

现在,这个文件夹是 Simics 的项目空间,可以针对可用的 Simics 安装进行单独配置。在它的根目录中,它具有将 Simics 运行为./simics.

然后你可以运行一些目标脚本,也从这个项目空间链接回你的安装:

./simics targets/qsp-x86/firststeps.simics

这样,您可以在项目空间中添加目标脚本,而无需更改安装。例如,通过创建一个$HOME/my-new-project/targets/qsp-x86/firststeps-my-uefi.simics包含如下代码的新文件来使用您自己的 BIOS/UEFI 映像:

## [SIMICS PROJECT]/targets/qsp-x86/firststeps-my-uefi.simics
$my_bios_image = <path-to-bios-binary>
run-command-file "%simics%/targets/qsp-x86/firststeps.simics bios_image=$my_bios_image
于 2021-07-02T05:38:00.927 回答