为什么我不能在Beaglebone板上运行自定义应用程序?

问题描述 投票:0回答:1

我已经为我的beaglebone板交叉编译了小应用程序:

/* led_test.c */

int main(int argc, char const *argv[])
{
    return 0;
}

编译成功完成,但是如果我尝试在目标板上运行该应用程序,则会得到此:

# cd /bin/
# ls -la | grep led_test
-rwxr-xr-x    1 default  default      13512 Feb  5  2020 led_test
# led_test 
-sh: led_test: not found

为什么我不能在Beaglebone板上运行自定义应用程序?有人可以解释一下吗?

关于我的环境的一些信息:

1. work-station: Ubuntu 18.04.4 LTS x86-64
2. target machine: ARMv7 beaglebone board
3. cross-compiler: gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf
4. I built u-boot and Linux kernel with this toolchain and mounted rootfs via NFS.
linux-kernel beagleboneblack buildroot beagleboard rootfs
1个回答
0
投票

您应该./led_test,否则它在路径中看起来像是

© www.soinside.com 2019 - 2024. All rights reserved.