针对X86致命错误的GEM5完整系统仿真:无需加载内核

时间:2020-06-23 14:25:48

标签: linux gem5

对于Gem5体系结构,我需要运行FS模式X86。按照所有可用说明进行操作:

  1. 我使用以下方法设置环境变量:
M5_PATH="/home/vikas/full_system_images/" >> ./.bashrc
  1. 当我尝试如下运行Gem5时:
./build/X86/gem5.opt configs/example/fs.py --disk-image=/home/mysys/full-system-images/disks/linux-x86.img

我得到了错误:

warn: CheckedInt already exists in allParams. This may be caused by the Python 2.7 compatibility layer.
warn: Enum already exists in allParams. This may be caused by the Python 2.7 compatibility layer.
warn: ScopedEnum already exists in allParams. This may be caused by the Python 2.7 compatibility layer.
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 20.0.0.2
gem5 compiled Jun 22 2020 16:34:19
gem5 started Jun 23 2020 16:08:24
gem5 executing on pc80-99-linux, pid 3941
command line: ./build/X86/gem5.opt configs/example/fs.py --disk-image=/home/mysys/full-system-images/disks/linux-x86.img

Global frequency set at 1000000000000 ticks per second
warn: No dot file generated. Please install pydot to generate the dot file and pdf.
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)
info: No kernel set for full system simulation. Assuming you know what you're doing.
system.pc.com_1.device: Listening for connections on port 3456
      0: system.pc.south_bridge.cmos.rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
0: system.remote_gdb: listening for remote gdb on port 7000
warn: Reading current count from inactive timer.
***fatal: fatal condition !kernelObj occurred: No kernel to load.***
Memory Usage: 674344 KBytes

我真的需要帮助以找出解决问题的方法。

1 个答案:

答案 0 :(得分:0)

M5_PATH不再需要,如:Gem 5 IOError: Can't find a path to system files. Full System X86 simulation setup所示,只需使用--kernel指向您的内核映像,这样就不太可能出错。

如果仍然无法运行,请尝试进一步调试a,或使用this fully automated setup that just works进行调试。

邮件列表线程:https://www.mail-archive.com/gem5-users@gem5.org/msg17940.html

相关问题