Hi
I am totally new at linux and gem5. I
am using ubuntu 13.04 and I want to use gem5 x86 full system
simulation . In order to do that, I installed gem5 x86 with using
these commands.
hg clone http://repo.gem5.org/gem5
cd gem5
scons build/X86/gem5.opt (I could not
install gem5.fast it gives an error at checking part at very early like 3rd min
of installation)
Now I am able to see hello world with
using
~/Desktop/gem5$ build/X86/gem5.opt
configs/example/se.py -c tests/test-progs/hello/bin/x86/linux/hello
(I installed gem5 to my Desktop)
Then I created folder which name is
full_system_images and I downloaded 2 files under the
full-system-stuff on gem5 website. X86 Full System Files and config
files. I extracted them after that I put them under my
full_system_images folder.I also found that i need
big-swap2.img (i saw in forums) and I downloaded alpha Full System Files. I
extracted
it and I put the files in the my full_system_images folder. I did not
change the previous folders and files. I just copied files and copied
and pasted them near previous files according to their folder names.
(for example now I have
linux-bigswap2.img , linux-latest.img and linux-x86.img in the same
disks folder ---> /home/ali/Desktop/full_system_images/disks)
Then I run ~/Desktop/gem5$
build/X86/gem5.opt configs/example/fs.py
–disk-image=/home/ali/Desktop/full_system_images/disks/linux-x86.img
-----------------------------------------------------------------------------------------------------
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the
--copyright option for details.
gem5 compiled Oct 14 2013 12:12:29
gem5 started Oct 23 2013 20:08:47
gem5 executing on ali
command line: build/X86/gem5.opt
configs/example/fs.py
--disk-image=/home/ali/Desktop/full_system_images/disks/linux-x86.img
warn: add_child('terminal'): child
'terminal' already has parent
Global frequency set at 1000000000000
ticks per second
info: No kernel set for full system
simulation. Assuming you know what you're doing
panic: Error opening
/home/ali/full_system_images/disks/linux-bigswap2.img
@ cycle 644720
[open:build/X86/dev/disk_image.cc, line
79]
Memory Usage: 644720 KBytes
Program aborted at cycle 0
Aborted (core dumped)
ali@ali:~/Desktop/gem5$
----------------------------------------------------------------------------------------------------------
When I was looking the forums I saw
that people use kernel (I do not know why. I previously installed ARM
to my laptop and I was able to build it with simply using
build/ARM/gem5.opt
configs/example/fs.py
--disk-image=/home/ali/full_system_images/disks/arm-ubuntu-natty-headless.img
--mem-size=256MB --l2cache --l2_size=2MB)
I tried with kernel
ali@ali:~/Desktop/gem5$
build/X86/gem5.opt configs/example/fs.py
--disk-image=/home/ali/Desktop/full_system_images/disks/linux-x86.img
--kernel=/home/ali/Desktop/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
(later I tried some solutions that I
found from mail lists which also includes changing the .img to
x86root.img but the result is same.)
-----------------------------------------------------------------------------------------------------------
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the
--copyright option for details.
gem5 compiled Oct 14 2013 12:12:29
gem5 started Oct 23 2013 20:22:40
gem5 executing on ali
command line: build/X86/gem5.opt
configs/example/fs.py
--disk-image=/home/ali/Desktop/full_system_images/disks/linux-x86.img
--kernel=/home/ali/Desktop/full_systemimages/binaries/x86_64-vmlinux-2.6.22.9
warn: add_child('terminal'): child
'terminal' already has parent
Global frequency set at 1000000000000
ticks per second
info: kernel located at:
/home/ali/Desktop/full_system_images/binaries/x86_64-vmlinux-2.6.22.9
panic: Error opening
/home/ali/full_system_images/disks/linux-bigswap2.img
@ cycle 709912
[open:build/X86/dev/disk_image.cc, line
79]
Memory Usage: 709912 KBytes
Program aborted at cycle 0
Aborted (core dumped)
ali@ali:~/Desktop/gem5$
What should i need to do build X86 and also why i cant build gem5.fast (and
also gem5.prof) with usingali@ali:~/Desktop/gem5$ cd
ali@ali:~$ cd Desktop/
ali@ali:~/Desktop$ mkdir fast
ali@ali:~/Desktop$ cd fast
ali@ali:~/Desktop/fast$ hg clone http://repo.gem5.org/gem5
destination directory: gem5
requesting all changes
adding changesets
adding manifests
adding file changes
added 9946 changesets with 58623 changes to 6743 files
updating to branch default
3327 files updated, 0 files merged, 0 files removed, 0 files
unresolvedali@ali:~/Desktop/fast$ cd gem5
ali@ali:~/Desktop/fast/gem5$ scons build/X86/gem5.fast
...[ CXX] X86/cpu/o3/checker.cc -> .fo
In file included from build/X86/cpu/checker/cpu.hh:56:0,
from build/X86/cpu/base_dyn_inst.hh:57,
from build/X86/cpu/checker/cpu_impl.hh:55,
from build/X86/cpu/o3/checker.cc:43:
build/X86/cpu/checker/cpu_impl.hh: In member function
'Checker<O3CPUImpl>::copyResult(RefCountingPtr<BaseO3DynInst<O3CPUImpl> >&,
unsigned long, int)':
build/X86/cpu/simple_thread.hh:441:55: error: array subscript is above array
bounds [-Werror=array-bounds]
build/X86/cpu/simple_thread.hh:441:55: error: array subscript is above array
bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
scons: *** [build/X86/cpu/o3/checker.fo] Error 1
scons: building terminated because of errors.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users