Hi Ciro, Thanks a lot for your help. I will try your setup.
Thanks, Xin On Sat, Apr 28, 2018 at 3:15 PM, Ciro Santilli <ciro.santi...@gmail.com> wrote: > I don't know what causes that problem, but here is a working setup: > https://github.com/cirosantilli/linux-kernel-module-cheat/tree/ > 0b9157c91912685b0c59773126e1c1fefc7eea84#gem5 > > After build, run: > > ./run -a aarch64 -g -c 4 > > and it boots correctly, and cat /proc/cpuinfo shows 4 cpus. > > The scripts there end up running the following gem5 command: > > M5_PATH='/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/gem5-1.0/system' > \ > '/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/gem5-1.0/gem5/build/ARM/gem5.opt' > \ > --debug-file=trace.txt \ > -d '/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/gem5/m5out' > \ > '/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/gem5-1.0/gem5/configs/example/fs.py' > \ > --disk-image='/home/ciro/bak/git/linux-kernel-module-cheat/ > out/aarch64/buildroot/images/rootfs.ext2' > \ > --kernel='/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/linux-custom/vmlinux' > \ > --mem-size='256MB' \ > --num-cpus='4' \ > --script='/home/ciro/bak/git/linux-kernel-module-cheat/data/readfile' \ > --command-line='earlyprintk=pl011,0x1c090000 console=ttyAMA0 > lpj=19988480 rw loglevel=8 mem=256MB root=/dev/sda > console_msg_format=syslog nokaslr norandmaps printk.devkmsg=on > printk.time=y' \ > --dtb-file='/home/ciro/bak/git/linux-kernel-module-cheat/ > out/aarch64/buildroot/build/gem5-1.0/gem5/system/arm/dt/ > armv8_gem5_v1_4cpu.dtb' > \ > --machine-type=VExpress_GEM5_V1 \ > > > On Sat, Apr 28, 2018 at 8:59 PM, Xin Zhan <zhanxin...@gmail.com> wrote: > > Hi all, > > > > I try to simulate 4-core ARM processor in FS mode. The kernel and disk I > am > > using is from the repository > > http://www.gem5.org/dist/current/arm/aarchsystem201410. > > tar.xz. And the run command I am using is: > > > > ./build/ARM/gem5.opt configs/example/fs.py > > --kernel=/home/grads/z/zhanxin/ARM/gem5/full_system_ > images/binaries/vmlinux.aarch64.20140821 > > --disk-image=/home/grads/z/zhanxin/ARM/gem5/full_system_ > images/disks/aarch64-ubuntu-trusty-headless.img > > --dtb-filename=/home/grads/z/zhanxin/ARM/gem5/full_system_ > images/binaries/vexpress.aarch64.20140821.dtb > > -n 4 > > > > However, a fatal happens at the very beginning of the simulation: > > info: kernel located at: > > /home/grads/z/zhanxin/ARM/gem5/full_system_images/ > binaries/vmlinux.aarch64.20140821 > > fatal: Can't find a matching boot loader / kernel combination! > > > > Is there anyone knowing the reason behind? I really appreciate your help! > > Xin > > > > > > _______________________________________________ > > gem5-users mailing list > > gem5-users@gem5.org > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users