运行gem5完整系统模式时出错

时间:2018-07-16 17:29:44

标签: arm gem5

我在尝试使用“完整系统”模式运行gem5时遇到此错误。我正在遵循此指南:https://github.com/arm-university/arm-gem5-rsk/wiki

有什么办法解决这个问题吗?armv8_gem5_v1_1cpu.20170616.dtb是什么?

tomas@ubuntu:~/gem5$ ./build/ARM/gem5.opt configs/example/arm/starter_fs.py --cpu="minor" --num-cores=1 --disk-image=$M5_PATH/disks/linaro-minimal-aarch64.img
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jul  9 2018 19:01:20
gem5 started Jul 16 2018 11:04:01
gem5 executing on ubuntu, pid 2093
command line: ./build/ARM/gem5.opt configs/example/arm/starter_fs.py --cpu=minor --num-cores=1 --disk-image=/home/tomas/arm-fs-gem5/aarch-system-20180409//disks/linaro-minimal-aarch64.img

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/tomas/gem5/src/python/m5/main.py", line 435, in main
    exec filecode in scope
  File "configs/example/arm/starter_fs.py", line 243, in <module>
    main()
  File "configs/example/arm/starter_fs.py", line 232, in main
    root.system = create(args)
  File "configs/example/arm/starter_fs.py", line 97, in create
    (args.num_cores, default_dist_version))
  File "/home/tomas/gem5/configs/common/SysPaths.py", line 67, in __call__
    raise IOError, "Can't find file '%s' on path." % filename
IOError: Can't find file 'armv8_gem5_v1_1cpu.20170616.dtb' on path.

1 个答案:

答案 0 :(得分:1)

明确说明内核和dtb文件解决了该问题:

tomas@ubuntu:~/gem5$ ./build/ARM/gem5.opt configs/example/arm/starter_fs.py --cpu="minor" --num-cores=1 --disk-image=$M5_PATH/disks/linaro-minimal-aarch64.img --dtb=$M5_PATH/binaries/armv8_gem5_v1_1cpu.dtb --kernel=$M5_PATH/binaries/vmlinux.vexpress_gem5_v1_64
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jul  9 2018 19:01:20
gem5 started Jul 16 2018 11:41:55
gem5 executing on ubuntu, pid 2232
command line: ./build/ARM/gem5.opt configs/example/arm/starter_fs.py --cpu=minor --num-cores=1 --disk-image=/home/tomas/arm-fs-gem5/aarch-system-20180409//disks/linaro-minimal-aarch64.img --dtb=/home/tomas/arm-fs-gem5/aarch-system-20180409//binaries/armv8_gem5_v1_1cpu.dtb --kernel=/home/tomas/arm-fs-gem5/aarch-system-20180409//binaries/vmlinux.vexpress_gem5_v1_64

Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (2048 Mbytes)
info: kernel located at: /home/tomas/arm-fs-gem5/aarch-system-20180409//binaries/vmlinux.vexpress_gem5_v1_64
warn: Highest ARM exception-level set to AArch32 but bootloader is for AArch64. Assuming you wanted these to match.
system.vncserver: Listening for connections on port 5900
system.terminal: Listening for connections on port 3456
0: system.remote_gdb: listening for remote gdb on port 7000
info: Using bootloader at address 0x10
info: Using kernel entry physical address at 0x80080000
info: Loading DTB file: /home/tomas/arm-fs-gem5/aarch-system-20180409//binaries/armv8_gem5_v1_1cpu.dtb at address 0x88000000

starter_fs.py似乎正在某个地方寻找一些默认文件,但找不到它们。

相关问题