[gem5-users] gem5 build error with gcc-9.2.1

2019-12-04 Thread Anuj Falcon
Though I switched back to gcc-7.4 to get the job done, I faced the error
message below while building with gcc-9.2.1 in Ubuntu 19.10.

In file included from build/RISCV/cpu/base.hh:64,
 from build/RISCV/kern/linux/events.cc:51:
build/RISCV/sim/insttracer.hh: In member function 'void
Trace::InstRecord::setData(VecRegContainer<8>&)':
build/RISCV/sim/insttracer.hh:203:71: *error: implicitly-declared
'constexpr VecRegContainer<8>::VecRegContainer(const VecRegContainer<8>&)'
is deprecated [-Werror=deprecated-copy]*
  203 | data.as_vec = new
::VecRegContainer(d);

-- 
-
J ANUJ
-
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Kernel panic when build custom kernel in FS mode

2019-12-04 Thread 闫亮
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