What happens if you connect to the m5term and simply try to run a command, such as ls or echo there?  I don't really have experience with x86 and gem5 since I am using the ARM ISA.

On 1/27/20 10:11 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Giacomo and Dimitrios,

please have a look into the screenshots bellow. It's not able to run the rcS script. any help would be appreciated.

test.rcS is:
#!/bin/sh
echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit







------------------------------------------------------------------------
*From:* Giacomo Travaglini <giacomo.travagl...@arm.com>
*Sent:* Tuesday, January 21, 2020 3:06 PM
*To:* ABD ALRHMAN ABO ALKHEEL <abdkeel...@hotmail.com>; Dimitrios Chasapis <dchas...@bsc.es>; gem5 users mailing list <gem5-users@gem5.org>
*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous message, it is better to run the commands interactively the first time instead of using a script. So that it possible to understand where you are failing.
My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo EVERY m5 call. Are you still executing the script as it is? I can see how by failing to execute m5 pseudo instructions you are neither dumping stats nor exiting simulation (m5 exit won't be recognized and Linux will keep going waiting for another command from the terminal).

Kind Regards

Giacomo
------------------------------------------------------------------------
*From:* gem5-users <gem5-users-boun...@gem5.org> on behalf of ABD ALRHMAN ABO ALKHEEL <abdkeel...@hotmail.com>
*Sent:* 21 January 2020 03:53
*To:* Dimitrios Chasapis <dchas...@bsc.es>; gem5 users mailing list <gem5-users@gem5.org>
*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). The problem is not able to load the script. That the reason why it is running forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 --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 rcS:

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

Best



------------------------------------------------------------------------
*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.




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
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


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

Reply via email to