在 gem5 目录中输入以下命令
**build/ARM/gem5.opt configs/example/fs.py --disk-image=/home/pradnya/full_system_images/aarch-system-2014-10/disks/aarch64-ubuntu-trusty-headless.img**
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Feb 17 2015 18:02:39
gem5 started Apr 4 2015 11:06:36
gem5 executing on ubuntu
command line: build/ARM/gem5.opt configs/example/fs.py --disk-image=/home/pradnya/full_system_images/aarch-system-2014-10/disks/aarch64-ubuntu-trusty-headless.img
Traceback (most recent call last):
**File "<string>", line 1, in <module>
File "/home/pradnya/gem5/src/python/m5/main.py", line 388, in main
exec filecode in scope
File "configs/example/fs.py", line 326, in <module>
test_sys = build_test_system(np)
File "configs/example/fs.py", line 101, in build_test_system
cmdline=cmdline)
File "/home/pradnya/gem5/configs/common/FSConfig.py", line 272, in makeArmSystem
self.kernel = binary('vmlinux.aarch32.ll_20131205.0-gem5')
File "/home/pradnya/gem5/configs/common/SysPaths.py", line 49, in binary
return searchpath(binary.path, filename)
File "/home/pradnya/gem5/configs/common/SysPaths.py", line 41, in searchpath
raise IOError, "Can't find file '%s' on path." % filename
IOError: Can't find file 'vmlinux.aarch32.ll_20131205.0-gem5' on path**
我收到上述错误。请帮助我
答案1
M5_PATH
请使用以下命令设置您的环境变量:
echo "export M5_PATH=/path/to/full_system_for_gem5/" >> ~/.bashrc
答案2
请注意,不再需要 M5_PATH,如下所述:https://stackoverflow.com/questions/56319473/gem-5-ioerror-cant-find-a-path-to-system-files-full-system-x86-simulation-set您可以明确地指向您的内核,这更加明智。
您还可以在以下位置找到高度自动化的设置,它可以为您处理所有事情:https://github.com/cirosantilli/linux-kernel-module-cheat/tree/8a5c310535ffa86acfa93b4e9de13858ebc709ee#gem5-arm