[yocto] Cannot run simple binary executable file

Khem Raj raj.khem at gmail.com
Tue Oct 7 08:17:38 PDT 2014


On Tue, Oct 7, 2014 at 4:07 AM, Wy kevinthesun <kevinthesunwy at gmail.com> wrote:
> Hi, I am new to Yocto Project and learning to develop software on Atmel
> SAMA5D3 Xplained board, on which Yocto 1.5.1 is pre-built. I followed the
> instructions and got the 1.6.1 toolchain
>
> poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh.
>
> I can compile the simple HelloWorld program and binary file is made. Then I
> copied the binary file
>
> into board and tried to run it. However, when I changed to the file located
> directory and type
>
> "./Hello", it returned "sh: ./Hello: No such file or directory". Then I
> tried "sh Hello", it gave
>
> me  "Hello: Hello: cannot execute binary file ". If I type "file Hello", it
> gives "Hello: ELF 32-bit
>  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses
> shared libs), for GNU/Linux 2.6.16,
> BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped". I
> googled and someone
>
> said the problem may be the toolchain. Then I tried 1.3, 1.5.1 toolchain for
> arm, but still same
>
> error. Could you please help me about this problem?

whats running on board ? make sure that it has ldso in same directory
and name as encoded
in binary. it seems there is a mismatch. Try

/lib/ld-linux.so.XXX ./a.out

does that run ?

>
> Thank you!
>
> Kevin.
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list