goodluckwu 发表于 2009-11-23 15:58:26

新人求助

刚刚接触linux和skyeye,许多地方不太明白。希望能得到各位高手指点一二,不胜感激。
我用uclinux编译了一个镜像,但是不知道应该怎么在skyeye下运行,照着skyeye的readme修改了一个skyeye.conf,但是运行的时候出错。
skyeye.conf如下:
#--------------------------------------------------------------------------------
# memmap.conf and skyeye.conf are all skyeye's hardware configuration files.
# memmap.conf is for skyeye-v0.2.5-
# skyeye.conf is for skyeye-v0.2.5+
# usually you don't need to change them.
# for example, a AT91's configuration file is shown below:
#--------------------------------------------------------------------------------
# below is the cpu config info
# cpu: maybe arm7tdmi or arm720t
cpu: arm7tdmi

#--------------------------------------------------------------------------------
# below is the machine(development board) config info
# machine(develop board) maybe at91 or ep7312
mach: at91

#-------------------------------------------------------------------------------
#NOTICE: this parameter is useless for skyeye-V0.3.1+
# have 7 memory bank (include RAM, ROM, mapped IO space)
# below is the memory config info
#mem_num: 7
# map=M means ram/rom, map=I means mapped IO space,
# type=RW means can be read or written,
# type=R means read only,
# addr=0x..... means the mem bank's beginning address,
# size=0x..... means the mem bank's memory size,
# file=... is the filesystem image file, used for uclinux4skyeye or armlinux4skyeye
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=./boot.rom,boot=yes
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
#now, add more options on mem_bank
mem_bank: map=M, type=RW, addr=0x10000000, size=0x00000800, file=./linux
#start binary program at 0x100000000

#----------------------------------------------------------------------------------
# below is the net config info
#
# type: cs8900a, rtl8019, rtl8019_16, s3c4510b
# mac=.... means the mac addr in simulated NIC,
# ethmod=tuntap/vnet means the virtual driver used in host evnironment,
# hostip=... means the ip address in host environment to interactive with skyeye.
# format: type=xxxx mac=xxxxxxx ethmod=tuntap/vnet hostip=dd.dd.dd.dd
#
# *********NOTICE**********
# If you run two more skyeyes at the same time,
# please use different skyeye.conf for each skyeye instance, and only one
# skyeye run first and related skyeye.conf content has hostip value:
#   ......
#   net: ... ethmod=vnet, hostip=ddd.ddd.ddd.ddd
#other skyeye.conf should has content(hostip should be 0):
#   ......
#   net: ... ethmod=vnet, hostip=0.ddd.ddd.ddd
net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1

#------------------------------------------------------------------------------------
# below is the uart config info
#
# mod: stdio, pipe(fd_in/fd_out), net
# converter: dcc
#
# example:
#    uart: mod=stdio
#    uart: mod=stdio, converter=dcc
#    uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
#    uart: mod=pipe, desc=/dev/ttyS0
#    uart: mod=pipe, desc_in=/dev/tty8, desc_out=/dev/tty9
#    uart: mod=net, desc_in=192.168.1.163:21, desc_out=192.168.1.163:1121
#
# now you can use them to connect real serial port.
# you can add an option to skyeye.conf as below:
uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
#then use a terminal connect host's COM1, you can see the output in the terminal.

#-----------------------------------------------------------------------------------
#add log parameter which is used to recode the instr. flow and regs when
#program are running.
log: logon=0, logfile=/tmp/sk1.log, start=100000, end=200000
#logon = 0 or 1 0:doesn't log, 1 do log
#logfile: the filename which have the log info
#start: the start point of instruction flow to log, should >=0
#end:   the end   point of instructio flow to log

#-----------------------------------------------------------------
# below is the lcd config info
# type: au1100, ep7312, pxa, s3c2410x, s3c44b0x
# mod: gtk, win32, beos
lcd: type=ep7312, mod=gtk

#-----------------------------------------------------------------
# below is the touchscreen config info
#touchscreen: type=skyeye, base=0xff00b000, size=0x20, int=17

#-----------------------------------------------------------------
# below is the sound config info
# It's recommended to turn on DBCT at the same time.
#
# example:
    sound: type=s3c44b0x, mod=pcm, channels=2, bits_per_sample=16, samples_per_sec=22050

#-----------------------------------------------------------------
# below is the flash config info
# type: 28F128J3A, SST39LF160, SST39VF160, Am29LV160T-8, Am29LV160T-16,
#       Am29LV160B-8, Am29LV160B-16, Am29LV800T-8, Am29LV800T-16,
#       Am29LV800B-8, Am29LV800B-16
# dump: write to file when data written.
#
# example:
#    flash: type=Am29LV160T-16, base=0x00000000, size=0x02000000, dump=Am29.dump

运行的结果如下:
wxd@fddl-ubuntu-desktop:~/ucLinux/uClinux-dist/images$ skyeye -e linux -c skyeye.conf
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
pen_buffer not implemented.
(skyeye)load-conf skyeye.conf
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
In do_mach_option, mach info: name at91, mach_init addr 0xb6e73830

ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
tapif_initpen: Permission denied
-----------------------------------------------------------
NOTICE: you should be root at first !!!
NOTICE: you should inmod linux kernel net driver tun.o!!!
NOTICE: if you don't make device node, you should do commands:
NOTICE:    mkdir /dev/net; mknod /dev/net/tun c 10 200
NOTICE: now the net simulation function can not support!!!
NOTICE: Please read SkyEye.README and try again!!!
-----------------------------------------------------------
failed to setup_module (name:net, type:rtl8019)
uart_mod:1, desc_in:/dev/ttyS0, desc_out:/dev/ttyS0, converter:
Unkonw option: log
lcd_mod:1
sound: channels:2, bits_per_sample:16, samples_per_sec:22050.
can't find device module: (name:sound, type:s3c44b0x)
In skyeye_read_config, Config format is wrong.

Can not parse the config fileskyeye.conf correctly.
Unknown error when read config from the file skyeye.conf
(skyeye)q
No valid arch option is provided.
Destroy threads.
Unload all modules.
exit.
刚刚接触skyeye,完全模不到头绪,麻烦大家告诉我一下问题都有那些问题,至少让我知道应该向那些方面查资料。
谢谢。

[ 本帖最后由 goodluckwu 于 2009-11-23 16:00 编辑 ]

goodluckwu 发表于 2009-11-23 16:04:32

补充说明

skyeye版本是1.2.9 rc1

goodluckwu 发表于 2009-11-24 08:57:08

各位高手帮帮忙阿。

ksh 发表于 2009-11-24 14:41:04

回复 1# goodluckwu 的帖子

README文件的内容比较旧一些,skyeye.conf的内容可以参考以下链接的第一小节:
http://sourceforge.net/apps/trac/skyeye/wiki/uClinux

goodluckwu 发表于 2009-11-25 08:36:06

谢谢阿。
终于有高手出手了。

live5156go51 发表于 2010-4-28 22:03:13

以上的问题是执行路径不对
试着搞下这个 看下
cd /opt/skyeye/bin
./skyeye -c ../testsuite/arm_hello/skyeye.conf -e ../testsuite/arm_hello/arm_hello
(其中-c是指定配置文件 -e指定执行程序)
start
应该可以了
页: [1]
查看完整版本: 新人求助