打印

为armlinux添加应用,运行则提示未发现

为armlinux添加应用,运行则提示未发现

环境:
skyeye-0.9.8
testsuite2/s3c2410/2.4.18/

方法:
1、arm-linux-gcc -o hello hello.c
2、mount -o loop initrd.img /mnt/xdisk/
3、cp hello /mnt/xdisk/bin/
     umount /mnt/xdisk

4、
skyeye vmlinuz
#target sim
#load
#run

5、在bin目录中存在hello程序,但运行/bin/hello时,提示
/ # /bin/hello
/bin/ash: /bin/hello: not found


请问哪里出错了?谢谢!

另外,hello的文件格式为
[root@LinuxServer skyeye-2410]# file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped

TOP

为什么没有人回复一下啊?

难道大家的都运行正常吗?
请给点提示吧。

谢谢!

TOP

TOP

是的,是因为动态库的原因

我编译时增加了static选项就可以了。谢谢tomeiningen了!

TOP

到我请教你了 。 你的arm-linux-gcc使那里下载的?我用了static选项,还是跑不成:

/bin # ./hello
./hello: 6: Syntax error: word unexpected (expecting ")")

我是在这里下的:
http://www.handhelds.org/download/projects/toolchain/archive/arm-linux-gcc\
-3.3.1-030820.tar.bz2

TOP

我买了skyeye的书,随书光盘里有开发环境的

TOP