想试试在target board上面运行自己的应用程序
在虚拟机上弄了个hello world,通过./ltib -m shell进入shell模式,然后用gcc --version查看
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc已经切换成freescale的了,然后用gcc编译生成可执行文件,但是在target board上运行会提示“cannot execute binary file”,感觉还是前面编译有问题。。
我prep了一个freescale自带的helloworld的package,然后make,生成的可执行文件也不能运行。求教,是哪个步骤出了问题? |