|
环境:
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 |
|