I've tested the "$M5_PATH/util/dist/test/simple_bootscript.rcS" with the
latest gem5 binary and it works.
I guess either you are using an old m5 binary for your disk image or you
are not using "m5 initparam" correctly. Please do the following:

1- Update the m5 binary in your disk image:
e.g. for aarch64:
cd $M5_PATH/util/m5
cp Makefile.aarch64 Makefile
make
#mount your disk image e.g. at /mnt
sudo cp m5 /mnt/sbin

2- Make sure that your rcS script looks like this when you use initparam:
MY_RANK=$(/sbin/m5 initparam dist-rank)
MY_SIZE=$(/sbin/m5 initparam dist-size)

Best,
Mohammad


On Mon, Jan 8, 2018 at 9:16 AM, David Kim <[email protected]> wrote:

> Hello Mohammad,
>
> Here is the terminal output.
>
> ... Linux boot sequence
> [    3.441647] random: init urandom read with 15 bits of entropy available
> bootscript.rcS is running
> usage: /sbin/m5 exit [delay]
>        /sbin/m5 fail <code> [delay]
>        /sbin/m5 resetstats [delay [period]]
>        /sbin/m5 dumpstats [delay [period]]
>        /sbin/m5 dumpresetstats [delay [period]]
>        /sbin/m5 readfile
>        /sbin/m5 writefile <filename>
>        /sbin/m5 execfile
>        /sbin/m5 checkpoint [delay [period]]
>        /sbin/m5 loadsymbol <address> <symbol>
>        /sbin/m5 initparam
>        /sbin/m5 sw99param
>        /sbin/m5 pin <cpu> <program> [args ...]
>
> All times in nanoseconds!
> m5 initparam failed
> bootscript.rcS is running
> usage: /sbin/m5 exit [delay]
>        /sbin/m5 fail <code> [delay]
>        /sbin/m5 resetstats [delay [period]]
>        /sbin/m5 dumpstats [delay [period]]
>        /sbin/m5 dumpresetstats [delay [period]]
>        /sbin/m5 readfile
>        /sbin/m5 writefile <filename>
>        /sbin/m5 execfile
>        /sbin/m5 checkpoint [delay [period]]
>        /sbin/m5 loadsymbol <address> <symbol>
>        /sbin/m5 initparam
>        /sbin/m5 sw99param
>        /sbin/m5 pin <cpu> <program> [args ...]
>
> ... (repeat this 'm5 initparam failed' message and usage message several
> times)
>
> All times in nanoseconds!
> m5 initparam failed
> bootscript.rcS is running
> usage: /sbin/m5 exit [delay]
>        /sbin/m5 fail <code> [delay]
>        /sbin/m5 resetstats [delay [period]]
>        /sbin/m5 dumpstats [delay [period]]
>        /sbin/m5 dumpresetstats [delay [period]]
>        /sbin/m5 readfile
>        /sbin/m5 writefile <filename>
>        /sbin/m5 execfile
>        /sbin/m5 checkpoint [delay [period]]
>        /sbin/m5 loadsymbol <address> <symbol>
>        /sbin/m5 initparam
>        /sbin/m5 sw99param
>        /sbin/m5 pin <cpu> <program> [args ...]
>
> All times in nanoseconds!
> m5 initparam failed
> [    4.600561] CPU1: failed to come online
> [    5.600560] CPU2: failed to come online
> [    6.600561] CPU3: failed to come online
>
> As I mentioned, because 'm5 initparam' command is deprecated now (so print
> out usage because the number of argument is not zero), the simulator could
> not move forward.
>
> Thanks.
>
> Dong-Wan Kim
>
>
> On Sat, Jan 6, 2018 at 11:21 PM, Mohammad Alian <[email protected]>
> wrote:
>
>> Hi Dong,
>>
>> Can you post the error that you get for gem5 terminal?
>>
>> Thanks,
>> Mohammad
>>
>> On Fri, Jan 5, 2018 at 12:01 PM, David Kim <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I am trying to run dist-gem5 example, "test-2node-AArc64.sh" and
>>> "simple_bootscript.rcS," which located at gem5/util/dist/test. However, it
>>> failed because of the "sbin/m5 initparam dist-rank" command in
>>> simple_bootscript.rcS file.
>>>
>>> I have checked the related source code, and "m5 initparam" cannot have
>>> argument (if argc > 1 then calls usage() function) and thus
>>> "simple_bootscript.rcS" forces to terminate simulation.
>>> Actually, "m5 initparam" command is depreciated one as described in
>>> http://gem5.org/M5ops.
>>>
>>> Is there any alternative way to retrieve input command line parameter
>>> like "--dist-size" and "--dist-rank" from a linux terminal (e.g. using m5
>>> command)?
>>>
>>> Thanks in advance.
>>>
>>> Dong Wan Kim
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to