Ошибка при запуске полного системного режима 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.

person tgonzaleza    schedule 16.07.2018    source источник
comment
Рекомендуется всегда указывать в заголовке сообщение о критической ошибке, например Ошибка при запуске gem5 в полном системном режиме: IOError: не удается найти файл '* .dtb' по пути   -  person Ciro Santilli    schedule 23.08.2018


Ответы (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 где-то ищет какие-то файлы по умолчанию и не находит их.

person tgonzaleza    schedule 16.07.2018
comment
Обычно вам следует избегать явного использования DTB, если автогенерация не работает. В fs.py автогенерация включена, если не задана опция --dtb с явным выбором DTB. - person Ciro Santilli; 16.12.2019