Hi all,
I am trying to use full_system simulation in gem5 and following the steps in a
Blog(http://www.lowepower.com/jason/setting-up-gem5-full-system.html).I do all
the same things as the author for the first 3 steps. I stucked at the 4th step
actually. I checked the website as well but there is not so good explanation
honestly. What I do in step 4 is : download linux kernel 4.8.13 and the config
file offered by the Blog author. Then I copy the config file into the directory
of linux kernel 4.8.13 --> make oldconfig -->make. Finally i got the compiled
kernel i want.
But when i run gem5 full system simulation using the disk and kernel just made:
./build/X86/gem5.opt configs/example/fs.py
--disk-image=/home/yl/disk_resize/ubuntu-test.img
--kernel=/home/yl/disk_resize/kernel/linux-4.8.13/vmlinux
--cpu-type=AtomicSimpleCPU -n 1 --mem-size=2GB --sys-clock=4GHz . I got the
fault bellow when booting the system:
[0.580744] Kernel Offset: disabled
[0.580753] ---[ end Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(0,0)
I am sure that i didin't got the authors' meaning for step4 showing below:
#Step 4: Build a kernel
#Next, you need to build a Linux kernel. Unfortunately, the out-of-the-box
Ubuntu kernel doesn't play well with gem5. See the error below.
#First, you need to download latest kernel from kernel.org. Then, to build the
kernel, you are going to want to start with a known-good config file.The config
file that I'm used for kernel version 4.8.13 can be #downloaded here. Then, you
need to move the good config to .config and the run make oldconfig which starts
the kernel configuration process with an existing config file.
#At this point you can select any extra drivers you want to build into the
kernel. Note: You cannot use any kernel modules unless you are planning on
copying the modules onto the guest disk at the correct #location. All drivers
must be built into the kernel binary.
#It may be possible to use modules by compiling the binary on the guest disk
via qemu, but I have not tested this.
#Finally, you need to build the kernel.
Thank you for reading my question, Please give me some advice if possible.
with best regards
Liang
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users