首先下载官网gem5 full system arm资源 aarch-system-2014-10.tar.xz
然后编译gem5:
# scons build/ARM/gem5.opt -j20
-j:指定多线程数,同时编译
编写脚本:
export M5_PATH=/path/to/gem5/fs-images/ARM
./build/ARM/gem5.opt configs/example/fs.py --kernel=vmlinux.aarch64.20140821 --machine-type=VExpress_EMM64 --dtb-file=vexpress.aarch64.20140821.dtb --disk-image=aarch64-ubuntu-trusty-headless.img
运行以上脚本,另外开一个窗口执行gem5/util/term/:
#./mterm localhost 3456 |