Hi,

The important line is this one:

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

No way you can get the binary running if you cannot cd to the directory where the binary is located. That has no relation with how the binary was compiled.

My intuition is that the directory is in fact "/root/parsec". It's just a guess based on the absence of home directory for root user in my Ubuntu (although I don't know which image you're using). To be sure just add an ls to show the directory at each point like this:

PARSEC_DIR = "/ home / root / parsec"
ls
cd /home/
ls
cd root
ls
cd parse
ls

On 01/06/18 08:45, Ciro Santilli wrote:
This is not required, the best thing to do is to find what is the
proper compatible cross compiler for the image:
https://stackoverflow.com/questions/31929092/trying-to-run-a-cross-compiled-executable-on-target-device-fails-with-no-such-f/49993116#49993116

On Fri, Jun 1, 2018 at 6:34 AM, Tung Hoang <hoangthanht...@gmail.com> wrote:
You may need “-static” for arm cross-compiling.

/T

On Thu, May 31, 2018 at 3:19 PM commerce _com <commercecom...@gmail.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 <ciro.santi...@gmail.com>:
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 <commercecom...@gmail.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



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

Reply via email to