wanh17 发表于 2006-4-12 21:27:55

RedHat9.0下安装skyeye,uClinux

问题1.我安装了skyeye-0.4.7-rh9.0.bin并改名和属性后;再安装arm-elf-toos-20030314.sh;再解压uClinux-dist-20020927.tar.gz,make menuconfig后出现选择画面,但我无法进行选择,按任何键都不起作用,只能退出。请问怎么做?

jellycn 发表于 2006-4-14 22:12:49

You can try 'make xconfig' command and check the privilege, whether you have privilege to configure the kernel?

wanh17 发表于 2006-4-15 14:48:20

3Q!jellycn
我刚开始用的uclinux-dist-20030909.tar.gz时遇到这个问题,后来我用uclinux-dist-20051110.tar.gz就可以了;现有另外一个问题:出现skyeye Amulator画面后,我执行target sim时报错,意思是我的SKYEYE.CONF有错误,文件内容如下:
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=images/romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
net: state=on, mac=0:3:6:9:12:15, ethmod=vnet, hostip=10.0.0.1

jellycn:你有编译好的ucosii for skyeye(ucosii4skyeye-binary-v1.8tgz)吗?
因为我使用源码时,然後编译但没有*.elf file.

wanh17 发表于 2006-4-15 15:12:25

my email:[email protected]
3Q!

jellycn 发表于 2006-4-15 20:12:15

wanh17,Plz show me the error message.You can refer to my article about SkyEye Installation Notes. My configure files is following:

cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R,addr=0x01400000, size=0x00400000, file=romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xF0000000, size=0x10000000
lcd: state=on
#uart: fd_out=/dev/ttyS1
log: logon=3, logfile=/home/jelly/run.log, start=0000000, end=002000

You can copy to the uClinux-dist diretory, and run 'skyeye -e linux-2.4.x/linux' command.

wanh17 发表于 2006-4-16 13:35:04

3Q!Jellycn,i will try it again.

wanh17 发表于 2006-4-16 14:47:27

the error message is:
(skyeye)target sim
cpu info:arm3,arm7tdmi,4100700,fff8ff00,0
mach info:name at91,mach_init addr 0x813dae4
unknow option file=images/romf.img
skyeye_read_config:config file skyeye.conf have errors!

wanh17 发表于 2006-4-16 14:48:07

my QQ:53167312

jellycn 发表于 2006-4-16 18:18:17

You can install the latest version of SkyEye(skyeye-1.2.0-RC7-2) or refer to the README files in skyeye-0.4.7 source code directory, how to write skyeye.conf file.I suggest you install the latest version of SkyEye:).

wanh17 发表于 2006-4-17 17:33:03

现在有另一个错误:
***************************************************************
****                                                       ****
****   SkyEyeSimulator Ver 0.7.4 withGDB 5.3 Interface ****
****                                                       ****
***************************************************************
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf".

(SkyEye) target sim

cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0

mach info: name at91, mach_init addr 0x813dae4
nic info: state=1, ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
nic_init_begin
tapif_init begin
tapif_init: fd 4
tapif_init: system("ifconfig tap0 inet 10.0.0.1");
tapif_init end
nic_init_end
SKYEYE: use arm7100 mmu ops
Loaded ROM images/romfs.img
Connected to the simulator.

(SkyEye) load linux-2.4.x/linux

Loading section .init, size 0xa000 vma 0x1000000
Loading section .text, size 0xe0a20 vma 0x100a000
Loading section .data, size 0x9cfc vma 0x10ec000
Start address 0x1000000
Transfer rate: 8009952 bits in <1 sec.

(SkyEye) run

Starting program:
warning: No executable file specified.
SKYEYE: at91_io_write_byte error
R f01,ffffffa8,0,0,0,0,0,0,0,fffff0ff,f01,0,0,0,1000074,100004c,C db,S
0,0,0,0,0,d3,0,M 1b,B 5,E 0,I 0,P 0,T 0,L 0,D 0,#

jellycn 发表于 2006-4-17 23:32:49

Oh~I think your configure file is incorrect, you can check it. Whether the range of IO is wrong?

jellycn 发表于 2006-4-17 23:34:09

I don't known why don't you try the latest version of SkyEye?

wanh17 发表于 2006-4-18 13:44:59

感谢JELLYCN的帮助以及参照网上的帖子,UCLINUX终于可以在SKYEYE上运行了 :-) ,以后的路还很长,:cry: 。总结一下这几天的心得,贴上来共大家分享。高手就不用看了。

琢磨SKYEYE已有一个礼拜了,今天早上终于可以在SKYEYE上运行出UCLINUX初始画面;小有成就感,呵呵:) 总结一下这几天的心得:

1.在REDHAT9.0上安装SKYEYE:

我开始在网上下载SKYEYE的源代码进行编译和安装,不成功:(

干脆直接下载编译好的SKYEYE(SKYEYE-0.4.7-RH9.0.BIN),移动到/USR/LOCAL/BIN下,并改名为SKYEYE,改变SKYEYE的使用权限:

   MV SKYEYE-0.4.7-RH9.0.BIN /USR/LOCAL/BIN/SKYEYE

   CHMOD 755 /USR/LOCAL/BIN/SKYEYE

2.安装ARM-ELF交叉编译器(用于编译UCOSII4SKYEYE和UCLINUX4SKYEYE):

   下载ARM-ELF-TOOLS-20030314.SH,改变权限并执行:

   CHMOD 755 ARM-ELF-TOOLS-20030314.SH

   ./ARM-ELF-TOOLS-20030314.SH 结束后,ARM-ELF-GCC/GDB....工具会安装到/USR/LOCAL/BIN下。

3.安装 UCOSII FOR SKYEYE:

下载UCOSII4SKYEYE-1.9.3.TAR.GZ,解压TAR -ZVXF UCOSII4SKYEYE-1.9.3.TAR.GZ 进入解压后的目录,制定编译器:

export CROSS_COMPILE="/USR/LOCAL/BIN/ARM-ELF-"

修改LIB/SKYEYE_PRINTF.C文件(使用VI编辑器来做):

   加入:

    static int isdigit(char ch)

    { if (ch>='0'&&ch<='9')

       return 1;

       return 0;

    }

    然后吧该文件中的“#include”这行注释掉,保存并退出。

   cd ucosii4skyeye/samples/ucos_test

   make cleanall

   make config

   make

   make test

执行这步后会生成很多文件,包括ucos_test.elf文件。 执行/usr/local/bin/skyeye/skyeye后出现SKYEYE 调试画面,进入SKYEYE后:

target sim

load ucos_test.elf

run

it's ok!

4.运行最简单的应用程序HELLO4SKYEYE.TGZ:

   解压:TAR -ZXVF HELLO4SKYEYE.TGZ,进入生成的目录:

   CD HELLO4SKYEYE, MAKE后,启动SKYEYE:/USR/LOCAL/BIN/SKYEYE/SKYEYE,

   TARGET SIM,

   LOAD HELLO,

   RUN。 如果改变HELLO.C中的内容后(VI编辑器),然后MAKE HELLO才能最终改变输出结果。

5.安装UCLINUX:

下载UCLINUX-DIST-20020927.TAR.GZ(我第一次用2005版的,运行到最后不能执行,改用2002版的??), 解压TAR ZXF UCLINUX-DIST-20020927.TAR.GZ

   CD UCLINUX-DIST

在命令行方式下执行 MAKE MENUCONFIG(我的LINUX不能执行MAKE XCONFIG ??),在VENDOR/PRODUCT中选择GDB/ARMULATOR,KERNEL版本选择2.4,SAVE AND EXIT。

MAKE DEP

MAKE

在/USR/LOCAL/SKYEYE/UCLINUXSOURCE/UCLINUX-DIST/IMAGES/下生成文件ROMFS.IMG,在/USR/LOCAL/SKYEYE/UCLINUXSOURCE/UCLINUX-DIST/LINUX-2.4.X下生成一个LINUX文件(没有后缀名??)。

在/USR/LOCAL/SKYEYE/UCLINUXSOURCE/UCLINUX-DIST/下新建一个SKYEYE.CONF文件:

CPU:ARM7TDMI

MACH:AT91

mem_bank:map=M,type=RW,addr=0x00000000,size=0x00004000

mem_bank:map=M,type=RW,addr=0x01000000,size=0x00400000

   mem_bank:map=M,type=R,addr=0x01400000,size=0x00400000,file=images/romfs.img

mem_bank:map=M,type=RW,addr=0x02000000,size=0x00400000

mem_bank:map=M,type=RW,addr=0x02400000,size=0x00008000

mem_bank:map=M,type=RW,addr=0x04000000,size=0x00400000

mem_bank:map=I,type=RW,addr=0xf0000000,size=0x10000000

net:state=on,mac=0:4:3:2:1:f,ethmod=tun,hostip=10.0.0.1

执行SKYEYE:/usr/local/bin/skyeye/skyeye linux-2.4.x/linux

target sim

load

run

就这样了。

jellycn 发表于 2006-4-18 15:01:12

:) Congratulation~~~

shengcheng 发表于 2006-5-11 01:03:00

楼主vr good
页: [1] 2
查看完整版本: RedHat9.0下安装skyeye,uClinux