I think bootrscript is just an arbitrary script that your must create yourself to run the benchmark you want, or give you a shell.
It must be being used from the /init of that image to set the m5 readfile path, and then run it. This kind of thing allows you to checkpoint at the end of boot, but still run different scripts of your choice after the restore. Studying this setup might be a good way to wrap your head around it: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/c2696c978d6ca88e8b8599c92b1beeda80eb62b2#gem5-run-benchmark You might also be interested in: fs_bigLITTLE.py setup at https://github.com/cirosantilli/linux-kernel-module-cheat/tree/c2696c978d6ca88e8b8599c92b1beeda80eb62b2#gem5-fs_biglittle which is just a minimal setup that gives a shell, no init magic yet. On Mon, Jun 4, 2018 at 9:25 AM, Georgios Bousdras <georgios.bousd...@ulb.ac.be> wrote: > Hi, > > I am new on gem5 and need your help. I am trying to run the fs_bigLITTLE.py > (2 big, 2 little cores) but I take an error. > I understand that the error is on bootscript. By default the bootscript is > the bootscript.rcS but I can not find this file in the gem5 folder. How can > I export this file or where I can find it ? > > I run the script with this command: > > ./build/ARM/gem5.opt configs/example/arm/fs_bigLITTLE.py > --dtb=$M5_PATH/binaries/armv8_gem5_v1_big_little_2_2.dtb > --bootscript=%M5_PATH/binaries/boot_emm.arm64 > --disk=$M5_PATH/disks/linaro-minimal-aarch64.img > --kernel=$M5_PATH/binaries/vmlinux.vexpress_gem5_v1_64 --cpu-type=timing > --caches --big-cpus=2 --little-cpus=2 > > ERROR: > > panic: could not open file %M5_PATH/binaries/boot_emm.arm64 > Memory Usage: 2654752 KBytes > Program aborted at tick 1402861153000 > --- BEGIN LIBC BACKTRACE --- > ./build/ARM/gem5.opt(_Z15print_backtracev+0x28)[0x12fc5d8] > ./build/ARM/gem5.opt(_Z12abortHandleri+0x46)[0x130f156] > /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f9c1b3fb390] > /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f9c19e03428] > /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f9c19e0502a] > ./build/ARM/gem5.opt[0x909eef] > ./build/ARM/gem5.opt(_ZN10PseudoInst8readfileEP13ThreadContextmmm+0x1d4)[0x1340f94] > ./build/ARM/gem5.opt(_ZNK10ArmISAInst12M5readfile647executeEP11ExecContextPN5Trace10InstRecordE+0x17a)[0x16f8f7a] > ./build/ARM/gem5.opt(_ZN5Minor7Execute10commitInstE14RefCountingPtrINS_12MinorDynInstEEbRNS_10BranchDataERSt10shared_ptrI9FaultBaseERbSA_+0x4ac)[0x1391d2c] > ./build/ARM/gem5.opt(_ZN5Minor7Execute6commitEsbbRNS_10BranchDataE+0x1405)[0x13954c5] > ./build/ARM/gem5.opt(_ZN5Minor7Execute8evaluateEv+0x10b2)[0x1396e22] > ./build/ARM/gem5.opt(_ZN5Minor8Pipeline8evaluateEv+0x19)[0x13b2f09] > ./build/ARM/gem5.opt[0x13191fe] > ./build/ARM/gem5.opt(_ZN10EventQueue10serviceOneEv+0xc5)[0x1302dc5] > ./build/ARM/gem5.opt(_Z9doSimLoopP10EventQueue+0x50)[0x131ae50] > ./build/ARM/gem5.opt(_Z8simulatem+0xd1b)[0x131bf3b] > ./build/ARM/gem5.opt[0x118639a] > ./build/ARM/gem5.opt[0xb4fbd7] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7852)[0x7f9c1b6b8772] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[0x7f9c1b7ef05c] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[0x7f9c1b6b7f1d] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[0x7f9c1b7ef05c] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[0x7f9c1b6b7f1d] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[0x7f9c1b7ef05c] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[0x7f9c1b6b7f1d] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[0x7f9c1b7ef05c] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f9c1b6b0da9] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x613b)[0x7f9c1b6b705b] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[0x7f9c1b7ef05c] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[0x7f9c1b6b7f1d] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[0x7f9c1b7ef05c] > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f9c1b6b0da9] > --- END LIBC BACKTRACE --- > Aborted (core dumped) > > Can you please tell me what is my mistake? > > Best Regards, > George > > > _______________________________________________ > 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