All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot run simple binary executable file
@ 2014-10-07 11:07 Wy kevinthesun
  2014-10-07 15:17 ` Khem Raj
  2014-10-07 15:21 ` Nicolas Dechesne
  0 siblings, 2 replies; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-07 11:07 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

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?

Thank you!

Kevin.

[-- Attachment #2: Type: text/html, Size: 2316 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-10-11  5:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 11:07 Cannot run simple binary executable file Wy kevinthesun
2014-10-07 15:17 ` Khem Raj
2014-10-07 15:21 ` Nicolas Dechesne
2014-10-08  1:17   ` Wy kevinthesun
2014-10-08  2:05     ` Wy kevinthesun
2014-10-08 20:43       ` Denys Dmytriyenko
2014-10-08 21:34         ` Wy kevinthesun
2014-10-08 22:04           ` Maciej Borzecki
2014-10-09  7:10           ` Nicolas Dechesne
2014-10-09 20:27             ` Wy kevinthesun
2014-10-10  6:12               ` Nicolas Dechesne
2014-10-10 23:15                 ` Wy kevinthesun
2014-10-10 23:27                   ` Denys Dmytriyenko
2014-10-11  0:51                     ` Wy kevinthesun
2014-10-11  1:16                       ` Denys Dmytriyenko
2014-10-11  5:19                         ` Wy kevinthesun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.