Hi All,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.

The command is:
./build/X86/gem5.fast ./configs/example/fs.py  
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=./home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB




The test.rcS is :

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

The screen output:

Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (4096 Mbytes)
info: kernel located at: /home/abdkhail/linux_new/vmlinux
system.pc.com_1.device: Listening for connections on port 3457
0: system.remote_gdb: listening for remote gdb on port 7004
0: system.remote_gdb: listening for remote gdb on port 7005
0: system.remote_gdb: listening for remote gdb on port 7006
0: system.remote_gdb: listening for remote gdb on port 7007
warn: Reading current count from inactive timer.
**** REAL SIMULATION ****
info: Entering event queue @ 37603790877000.  Starting simulation...
warn: instruction 'verw_Mw_or_Rv' unimplemented
warn: instruction 'fwait' unimplemented
hack: Assuming logical destinations are 1 << id.
warn: ClockedObject: Already in the requested power state, request ignored
warn: instruction 'verw_Mw_or_Rv' unimplemented
warn: Don't know what interrupt to clear for console.
warn: instruction 'verw_Mw_or_Rv' unimplemented


Best Regards


________________________________
From: Dimitrios Chasapis <dchas...@bsc.es>
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL <abdkeel...@hotmail.com>; gem5 users mailing list 
<gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.


The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best Regards



________________________________
From: Dimitrios Chasapis <dchas...@bsc.es><mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<abdkeel...@hotmail.com><mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <gem5-users@gem5.org><mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to