QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2415|回复: 5

新人求助

[复制链接]
发表于 2009-11-23 15:58:26 | 显示全部楼层 |阅读模式
刚刚接触linux和skyeye,许多地方不太明白。希望能得到各位高手指点一二,不胜感激。
我用uclinux编译了一个镜像,但是不知道应该怎么在skyeye下运行,照着skyeye的readme修改了一个skyeye.conf,但是运行的时候出错。
skyeye.conf如下:

  1. #--------------------------------------------------------------------------------
  2. # memmap.conf and skyeye.conf are all skyeye's hardware configuration files.
  3. # memmap.conf is for skyeye-v0.2.5-
  4. # skyeye.conf is for skyeye-v0.2.5+
  5. # usually you don't need to change them.
  6. # for example, a AT91's configuration file is shown below:
  7. #--------------------------------------------------------------------------------
  8. # below is the cpu config info
  9. # cpu: maybe arm7tdmi or arm720t
  10. cpu: arm7tdmi

  11. #--------------------------------------------------------------------------------
  12. # below is the machine(development board) config info
  13. # machine(develop board) maybe at91 or ep7312
  14. mach: at91

  15. #-------------------------------------------------------------------------------
  16. #NOTICE: this parameter is useless for skyeye-V0.3.1+
  17. # have 7 memory bank (include RAM, ROM, mapped IO space)
  18. # below is the memory config info
  19. #mem_num: 7
  20. # map=M means ram/rom, map=I means mapped IO space,
  21. # type=RW means can be read or written,
  22. # type=R means read only,
  23. # addr=0x..... means the mem bank's beginning address,
  24. # size=0x..... means the mem bank's memory size,  
  25. # file=... is the filesystem image file, used for uclinux4skyeye or armlinux4skyeye
  26. mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
  27. mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
  28. mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=./boot.rom,boot=yes
  29. mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
  30. mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
  31. mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
  32. mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
  33. #now, add more options on mem_bank
  34. mem_bank: map=M, type=RW, addr=0x10000000, size=0x00000800, file=./linux
  35. #start binary program at 0x100000000

  36. #----------------------------------------------------------------------------------
  37. # below is the net config info
  38. #
  39. # type: cs8900a, rtl8019, rtl8019_16, s3c4510b
  40. # mac=.... means the mac addr in simulated NIC,
  41. # ethmod=tuntap/vnet means the virtual driver used in host evnironment,
  42. # hostip=... means the ip address in host environment to interactive with skyeye.
  43. # format: type=xxxx mac=xxxxxxx ethmod=tuntap/vnet hostip=dd.dd.dd.dd
  44. #
  45. # *********NOTICE**********
  46. # If you run two more skyeyes at the same time,
  47. # please use different skyeye.conf for each skyeye instance, and only one
  48. # skyeye run first and related skyeye.conf content has hostip value:
  49. #     ......
  50. #     net: ... ethmod=vnet, hostip=ddd.ddd.ddd.ddd
  51. #  other skyeye.conf should has content(hostip[0] should be 0):
  52. #     ......
  53. #     net: ... ethmod=vnet, hostip=0.ddd.ddd.ddd
  54. net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1

  55. #------------------------------------------------------------------------------------
  56. # below is the uart config info
  57. #
  58. # mod: stdio, pipe(fd_in/fd_out), net
  59. # converter: dcc
  60. #
  61. # example:
  62. #    uart: mod=stdio
  63. #    uart: mod=stdio, converter=dcc
  64. #    uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
  65. #    uart: mod=pipe, desc=/dev/ttyS0
  66. #    uart: mod=pipe, desc_in=/dev/tty8, desc_out=/dev/tty9
  67. #    uart: mod=net, desc_in=192.168.1.163:21, desc_out=192.168.1.163:1121
  68. #
  69. # now you can use them to connect real serial port.
  70. # you can add an option to skyeye.conf as below:
  71. uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
  72. #then use a terminal connect host's COM1, you can see the output in the terminal.

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

  81. #-----------------------------------------------------------------
  82. # below is the lcd config info
  83. # type: au1100, ep7312, pxa, s3c2410x, s3c44b0x
  84. # mod: gtk, win32, beos
  85. lcd: type=ep7312, mod=gtk

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

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

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

复制代码
运行的结果如下:

  1. wxd@fddl-ubuntu-desktop:~/ucLinux/uClinux-dist/images$ skyeye -e linux -c skyeye.conf
  2. 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.
  3. Get more information about it, please visit the homepage http://www.skyeye.org.
  4. Type "help" to get command list.
  5. pen_buffer not implemented.
  6. (skyeye)load-conf skyeye.conf
  7. cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
  8. In do_mach_option, mach info: name at91, mach_init addr 0xb6e73830

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

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

[ 本帖最后由 goodluckwu 于 2009-11-23 16:00 编辑 ]
 楼主| 发表于 2009-11-23 16:04:32 | 显示全部楼层

补充说明

skyeye版本是1.2.9 rc1
回复

使用道具 举报

 楼主| 发表于 2009-11-24 08:57:08 | 显示全部楼层
各位高手帮帮忙阿。
回复

使用道具 举报

发表于 2009-11-24 14:41:04 | 显示全部楼层

回复 1# goodluckwu 的帖子

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

使用道具 举报

 楼主| 发表于 2009-11-25 08:36:06 | 显示全部楼层
谢谢阿。
终于有高手出手了。
回复

使用道具 举报

发表于 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
应该可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-26 19:09 , Processed in 0.060015 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表