skyeye的使用
軟件環境:Red Hat Linux 9(虛擬機)
1、進入初始目錄 /home/huyi
2、tar jxvf skyeye-0.8.6.tar.gz 後,cd skyeye ,運行./configure --target=arm-elf --prefix=/usr/local
3、make
4、make install
輸入skyeye 成功
安裝交叉編譯環境
1、cd.. 回到初始目錄/home/huyi
2、輸入 ./arm-elf-tools-20030314.sh運行ARM-ELF安裝
3、輸入 tar jxvf skyeye-binary-testutils-1.2.0.tar.bz2
??????? cd skyeye-binary-testutils-1.2.0
??????? cd at91x40
??????? cd uclinx2
4、mkdir /mnt/uclinux2
?? mount -o loop boot.rom /mnt/uclinux2
?? mkdir romfs
?? cp -r /mnt/uclinux2/* romfs
5、新建一個hello.c 文件
#include <stdio.h>
int main(void)
{
?? printf("hello,ucLinux\n");
?? return 0;
}
6、返回/home/huyi
7、arm-elf-gcc -Wl,-elf2flt -o hello hello.c
8、cd skyeye-binary-testutils-1.2.0/at91x40/uxlinux2/
?? cp /home/huyi/hello ./romfs/bin
9、genromfs -f boot.rom -d romfs/
10、skyeye linux,(skyeye)target sim,(skyeye)load,(skyeye)run, cd/bin, hello
OK