Re: [gem5-users] execution problem hello.c in architecture armv8 big.LITTLE

2018-05-31 Thread Tung Hoang
You may need “-static” for arm cross-compiling.

/T
On Thu, May 31, 2018 at 3:19 PM commerce _com 
wrote:

> Hi ciro,
>
> I'm sure the binary of the compilation  is in the image on the path: /
> home / root / parsec
>
> but I did not understand how to solve this problem; Please.
>
>
> com_.
>
> 2018-05-31 23:02 GMT+02:00 Ciro Santilli :
>
>> Likely incompatible compiler using wrong dynamic loader, do "file
>> hello", see "interpreter /some/path", and check if "/some/path" is
>> present on guest.
>>
>> On Thu, May 31, 2018 at 9:33 PM, commerce _com 
>> wrote:
>> > Hi all,
>> >
>> > i need to run hello.c in an architecture armv8 big.LITTLE
>> > I compile hello_word.c by a crosscompiler here is the command:
>> > arm-linux-gnueabihf-gcc hello.c -o hello
>> >
>> > I added the binarie of the compilation to the linaro aarch64 image,
>> with I
>> > generated this .rcs script as follows:
>> > #! / Bin / bash
>> > PARSEC_DIR = "/ home / root / parsec"
>> > cd $ PARSEC_DIR
>> > pwd
>> > ./Hello
>> >
>> > I typed the following command:
>> >
>> > sudo build / ARM / gem5.opt configs / example / arm / fs_bigLITTLE.py
>> > --kernel = / media / ali / ali / gem5-master / aarch-system-20180409 /
>> > binaries / vmlinux.vexpress_gem5_v1_64 --dtb = / media / ali / ali /
>> > gem5-master / aarch-system-20180409 / binaries /
>> > armv8_gem5_v1_big_little_2_2.dtb --bootscript = / home / ali / desktop /
>> > rcs_file / parsec_rcs / hello.rcS - caches
>> >
>> > the execution of the kernel it works normal but when it passes the
>> stage of
>> > execution of the hello I found this result:
>> >
>> > / tmp / script: line 3: cd: / home / root / parsec: No such file or
>> > directory
>> > /
>> > / tmp / script: line 5: ./hello: No such file or directory
>> >
>> > despite I added the binary hello to the linaro image.
>> >
>> > please if you have an idea to solve the problem.
>> >
>> > here is my file system.terminal:
>> >
>> > thanks advance.
>> >
>> > com_.
>> >
>> >
>> > ___
>> > 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
>
>
> ___
> 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

Re: [gem5-users] execution problem hello.c in architecture armv8 big.LITTLE

2018-05-31 Thread commerce _com
Hi ciro,

I'm sure the binary of the compilation  is in the image on the path: / home
/ root / parsec

but I did not understand how to solve this problem; Please.


com_.

2018-05-31 23:02 GMT+02:00 Ciro Santilli :

> Likely incompatible compiler using wrong dynamic loader, do "file
> hello", see "interpreter /some/path", and check if "/some/path" is
> present on guest.
>
> On Thu, May 31, 2018 at 9:33 PM, commerce _com 
> wrote:
> > Hi all,
> >
> > i need to run hello.c in an architecture armv8 big.LITTLE
> > I compile hello_word.c by a crosscompiler here is the command:
> > arm-linux-gnueabihf-gcc hello.c -o hello
> >
> > I added the binarie of the compilation to the linaro aarch64 image, with
> I
> > generated this .rcs script as follows:
> > #! / Bin / bash
> > PARSEC_DIR = "/ home / root / parsec"
> > cd $ PARSEC_DIR
> > pwd
> > ./Hello
> >
> > I typed the following command:
> >
> > sudo build / ARM / gem5.opt configs / example / arm / fs_bigLITTLE.py
> > --kernel = / media / ali / ali / gem5-master / aarch-system-20180409 /
> > binaries / vmlinux.vexpress_gem5_v1_64 --dtb = / media / ali / ali /
> > gem5-master / aarch-system-20180409 / binaries /
> > armv8_gem5_v1_big_little_2_2.dtb --bootscript = / home / ali / desktop /
> > rcs_file / parsec_rcs / hello.rcS - caches
> >
> > the execution of the kernel it works normal but when it passes the stage
> of
> > execution of the hello I found this result:
> >
> > / tmp / script: line 3: cd: / home / root / parsec: No such file or
> > directory
> > /
> > / tmp / script: line 5: ./hello: No such file or directory
> >
> > despite I added the binary hello to the linaro image.
> >
> > please if you have an idea to solve the problem.
> >
> > here is my file system.terminal:
> >
> > thanks advance.
> >
> > com_.
> >
> >
> > ___
> > 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
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] execution problem hello.c in architecture armv8 big.LITTLE

2018-05-31 Thread Ciro Santilli
Likely incompatible compiler using wrong dynamic loader, do "file
hello", see "interpreter /some/path", and check if "/some/path" is
present on guest.

On Thu, May 31, 2018 at 9:33 PM, commerce _com  wrote:
> Hi all,
>
> i need to run hello.c in an architecture armv8 big.LITTLE
> I compile hello_word.c by a crosscompiler here is the command:
> arm-linux-gnueabihf-gcc hello.c -o hello
>
> I added the binarie of the compilation to the linaro aarch64 image, with I
> generated this .rcs script as follows:
> #! / Bin / bash
> PARSEC_DIR = "/ home / root / parsec"
> cd $ PARSEC_DIR
> pwd
> ./Hello
>
> I typed the following command:
>
> sudo build / ARM / gem5.opt configs / example / arm / fs_bigLITTLE.py
> --kernel = / media / ali / ali / gem5-master / aarch-system-20180409 /
> binaries / vmlinux.vexpress_gem5_v1_64 --dtb = / media / ali / ali /
> gem5-master / aarch-system-20180409 / binaries /
> armv8_gem5_v1_big_little_2_2.dtb --bootscript = / home / ali / desktop /
> rcs_file / parsec_rcs / hello.rcS - caches
>
> the execution of the kernel it works normal but when it passes the stage of
> execution of the hello I found this result:
>
> / tmp / script: line 3: cd: / home / root / parsec: No such file or
> directory
> /
> / tmp / script: line 5: ./hello: No such file or directory
>
> despite I added the binary hello to the linaro image.
>
> please if you have an idea to solve the problem.
>
> here is my file system.terminal:
>
> thanks advance.
>
> com_.
>
>
> ___
> 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

[gem5-users] execution problem hello.c in architecture armv8 big.LITTLE

2018-05-31 Thread commerce _com
Hi all,

i need to run hello.c in an architecture armv8 big.LITTLE
I compile hello_word.c by a crosscompiler here is the command:
arm-linux-gnueabihf-gcc hello.c -o hello

I added the binarie of the compilation to the linaro aarch64 image, with I
generated this .rcs script as follows:
#! / Bin / bash
PARSEC_DIR = "/ home / root / parsec"
cd $ PARSEC_DIR
pwd
./Hello

I typed the following command:

sudo build / ARM / gem5.opt configs / example / arm / fs_bigLITTLE.py
--kernel = / media / ali / ali / gem5-master / aarch-system-20180409 /
binaries / vmlinux.vexpress_gem5_v1_64 --dtb = / media / ali / ali /
gem5-master / aarch-system-20180409 / binaries /
armv8_gem5_v1_big_little_2_2.dtb --bootscript = / home / ali / desktop /
rcs_file / parsec_rcs / hello.rcS - caches

the execution of the kernel it works normal but when it passes the stage of
execution of the hello I found this result:

/ tmp / script: line 3: cd: / home / root / parsec: No such file or
directory
/
/ tmp / script: line 5: ./hello: No such file or directory

despite I added the binary hello to the linaro image.

please if you have an idea to solve the problem.

here is my file system.terminal:

thanks advance.

com_.


system.terminal
Description: Binary data
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] gem5 SE, binary which takes a file as an input

2018-05-31 Thread Jasmin Jahic
Binary -i file.txt worked. Thank you.



Gesendet von meinem Windows 10 Phone

Von: TungHoang_GMail
Gesendet: Mittwoch, 30. Mai 2018 19:50
An: gem5 users mailing list; Jasmin Jahic
Betreff: Re: [gem5-users] gem5 SE, binary which takes a file as an input

Jasmin

You can use pass "file.txt" via -o | --options of se.py scripts. For example 
... --cmd ./binary --options file.txt

/T
On 05/30/2018 04:59 AM, Jasmin Jahic wrote:
Dear gem5 users, 

I have one challenge with gem5 and I hope you can help.

Running the gem5 in SE is no problem when there is one binary file. But how 
would it be possible for gem5 to run a binary which takes as an input a file?

For example, in terminal, I would type:
./binary < file.txt

Best regards,
Jasmin JAHIC



___
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