如果错误是类似不能执行二进制文件,很可能是你交叉编译的是ARM版本,却试图在X86主机上运行
用file命令查看你的可执行文件(不是shell)可以看出来是arm还是x86版本,比如:
# file hello_arm
hello_arm: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped
# file hello_x86
hello_x86: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped