Hi Todd, Apologies on that useless post..
So I tried reproducing the results that you obtained, and sure enough, command line: build/ARM/gem5.opt configs/example/fs.py --kernel=/home/guru/gem5/ kernel/linux-3.3-armdroid/vmlinux --disk-image=/home/guru/gem5/gem5-stable/syste m/disks/android_jb_tiny_4.1.1_r4.img --mem-size=128MB --mem-type=ddr3_1600_x64 - -caches --l2cache --machine-type=VExpress_EMM --cpu-clock=1GHz --scaling-mode=de coupled --cpu-type=atomic Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/guru/gem5/gem5-git/src/python/m5/main.py", line 387, in main exec filecode in scope File "configs/example/fs.py", line 108, in <module> bm[0] = SysConfig(disk=bm[0].disk(), mem=options.mem_size, File "/home/guru/gem5/gem5-git/configs/common/Benchmarks.py", line 53, in disk return disk(self.diskname) File "/home/guru/gem5/gem5-git/configs/common/SysPaths.py", line 37, in disk system() File "/home/guru/gem5/gem5-git/configs/common/SysPaths.py", line 59, in system raise ImportError, "Can't find a path to system files." ImportError: Can't find a path to system files. The paths are perfectly valid and run before I did `unset M5_PATH` I also tried the following. export M5_PATH=/home/ and in this case, I ended up with fatal: Could not read bootloader: /home/binaries/boot_emm.arm @ cycle 40050496 [ArmSystem:build/ARM/arch/arm/system.cc, line 62] Memory Usage: 40050496 KBytes Therefore, it looks like M5_PATH is necessary to be able to reference the 'system/binaries' directory Regards Guru On Mon, May 5, 2014 at 11:10 AM, Tod via gem5-users <gem5-users@gem5.org>wrote: > Hi Guru, > > > Please note that I am not using any benchmark with -b option. Please see > the command below. > > M5_PATH is irrelevant, since I am using --disk-image parameter, which is > right by definition and is already tested by me. > > Your suggestion about --script option seems irrelevant too. > > > Yes I run a shell scrip from a Java program, that shell script contains a > command for running the simulation using gem5. > > And the simulation is all about just using a given script (please see in > the command) .rcS file to create a checkpoint. > > > Everything works fine as long as it is run from the command line: i.e., by > doing ./MyShellScript.sh > > > But gives the problem mentioned while running it from within the Java > program and the error trace is there. > > > Any suggestions? > > > Best regards, > > Tod > > > --------- 원본 메일 --------- > > *보낸사람*: Guru Prasad <gurup...@buffalo.edu> > > *받는사람* : Tod <saril...@hanmail.net>, gem5 users mailing list < > gem5-users@gem5.org> > *날짜*: 2014년 5월 05일 월요일, 23시 54분 33초 +0900 > > *제목*: Re: [gem5-users] Error while running Gem5 simulation from a Java > program. > Hi Tod, > > When you are running a benchmark with the -b option, I believe that the > values in configs/common/Benchmarks.py overrides the value provided at the > command line. > Since you're running this from within Java, I would guess that the M5_PATH > environment variable is either not present within the Java environment or > is pointing to a location where the disk image described in Benchmarks.py > is not present. > > I believe gem5 also has an addition --script option which allows you to > specify an .rcS of your choice without having to modify Benchmarks.py. > > > Regards > Guru > > > > On Mon, May 5, 2014 at 10:45 AM, Tod via gem5-users > <gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> > > wrote: > >> Sorry, I am still in doubt. >> >> >> --disk-image is not for specifying the path to the disk image? >> >> How come it work fine while run from the command line? >> >> with the same command is used inside the shell script. >> >> >> I am using FS mode, which is clear from the fs.py script file. >> >> >> But i do not understand what do you mean by this: "no . if you want to >> run it through the disk image"? >> >> >> Thanks. >> >> >> --------- 원본 메일 --------- >> >> *보낸사람*: Tanmay Gadre >> <tanmay....@gmail.com<http://hanmail/mail/MailComposeFrame.daum?TO=tanmay....@gmail.com> >> > >> *받는사람* : Tod >> <saril...@hanmail.net<http://hanmail/mail/MailComposeFrame.daum?TO=saril...@hanmail.net>>, >> gem5 users mailing list >> <gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >> > >> *날짜*: 2014년 5월 05일 월요일, 23시 28분 49초 +0900 >> >> *제목*: Re: [gem5-users] Error while running Gem5 simulation from a Java >> program. >> no . if you want to run it through the disk image, you have to write the >> whole path in Benchmarks.py >> >> >> On Mon, May 5, 2014 at 7:30 PM, Tod via gem5-users >> <gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >> > wrote: >> >>> Hi Tanmay, >>> >>> >>> I forgot to mention it that it works fine if I run the script from >>> command line. But I have to do it through Java program. >>> >>> Further, would it not be enough in this case: >>> --disk-image=/home/usr/full_system_images/disks/linux-arm-ael1.img >>> >>> >>> Which is already there and is the path to the disk image? >>> >>> >>> Best. >>> >>> >>> --------- 원본 메일 --------- >>> >>> *보낸사람*: Tanmay Gadre >>> <tanmay....@gmail.com<http://hanmail/mail/MailComposeFrame.daum?TO=tanmay....@gmail.com> >>> > >>> *받는사람* : Tod >>> <saril...@hanmail.net<http://hanmail/mail/MailComposeFrame.daum?TO=saril...@hanmail.net>>, >>> gem5 users mailing list >>> <gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >>> > >>> *날짜*: 2014년 5월 05일 월요일, 22시 17분 17초 +0900 >>> *제목*: Re: [gem5-users] Error while running Gem5 simulation from a Java >>> program. >>> give the path of your disk image in Benchmarks.py line 57 . google this >>> error if still not clear . many times asked before on this forum . you will >>> get enough explanations >>> >>> >>> On Mon, May 5, 2014 at 6:38 PM, Tod via gem5-users >>> <gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >>> > wrote: >>> >>>> Hi, >>>> >>>> >>>> I am trying to run my gem5 simulations from inside a Java program. >>>> >>>> The Java program runs a shell script which then issues the command to >>>> run the simulation. >>>> >>>> Here is the console trace: >>>> >>>> >>>> gem5 Simulator System. http://gem5.org >>>> >>>> gem5 is copyrighted software; use the --copyright option for details. >>>> >>>> >>>> gem5 compiled Nov 28 2013 16:00:37 >>>> >>>> gem5 started May 5 2014 16:00:17 >>>> >>>> gem5 executing on xyz >>>> >>>> command line: ./build/ARM/gem5.fast >>>> --outdir=/home/usr/gem5/my_m5out/m5out1 configs/example/fs.py >>>> --disk-image=/home/usr/full_system_images/disks/linux-arm-ael1.img >>>> --mem-size=256MB -n 4 --script=./configs/boot/hack_back_ckpt.rcS >>>> >>>> Traceback (most recent call last): >>>> >>>> File "<string>", line 1, in <module> >>>> >>>> File "/home/user/gem5/src/python/m5/main.py", line 388, in main >>>> >>>> >>>> >>>> File "configs/example/fs.py", line 116, in <module> >>>> >>>> bare_metal=options.bare_metal) >>>> >>>> File "/home/user/gem5/configs/common/FSConfig.py", line 251, in >>>> makeArmSystem >>>> >>>> self.cf0.childImage(mdesc.disk()) >>>> >>>> File "/home/user/gem5/configs/common/Benchmarks.py", line 53, in disk >>>> >>>> return disk(self.diskname) >>>> >>>> File "/home/user/gem5/configs/common/SysPaths.py", line 37, in disk >>>> >>>> system() >>>> >>>> File "/home/user/gem5/configs/common/SysPaths.py", line 59, in system >>>> >>>> raise ImportError, "Can't find a path to system files." >>>> >>>> ImportError: Can't find a path to system files. >>>> >>>> >>>> Any help? >>>> >>>> >>>> Best. >>>> >>>> _______________________________________________ >>>> gem5-users mailing list >>>> gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> >> >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org<http://hanmail/mail/MailComposeFrame.daum?TO=gem5-users@gem5.org> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users