当前时区 GMT+8, 现在时间是 2008-9-7 14:38 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 在uClinux上运行skyeye上的一些问题
bucketxp
注册会员
Rank: 2


UID 88004
精华 8
积分 300
帖子 103
阅读权限 20
注册 2004-1-8
来自 BIT
状态 离线
发表于 2004-8-24 12:20  资料  短消息  加为好友 
在uClinux上运行skyeye上的一些问题

编译了一个uClinux-dist-20040408的linux-2.4.x的内核。
在skyeye上运行。
发现一个问题,如果在skyeye.conf中加入
uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
则在运行skyeye时会出现下面的问题:
[root@localhost uClinux-dist]# skyeye linux-2.4.x/linux
***************************************************************
****                                                       ****
****   SkyEye  Simulator Ver 0.7.7 with  GDB 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
...
(SkyEye) load
...
(SkyEye) run
Starting program: /home/WinShare/skyeye/src/uClinux-dist/linux-2.4.x/linux
就停在这里了,呈死机状。
如果将skyeye.conf配置文件中
uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
这句去掉就可以成功运行uClinux。
这个问题是不是和我当时配置内核时的设置有关?
配置内核时我只选择了(GDB/ARMulator,Linux-2.4.x,uClibc),其他都是默认设置。

顶部
bucketxp
注册会员
Rank: 2


UID 88004
精华 8
积分 300
帖子 103
阅读权限 20
注册 2004-1-8
来自 BIT
状态 离线
发表于 2004-8-24 12:29  资料  短消息  加为好友 
还有一个问题:
在skyeye的配置文件中加入
mem_num: 7
运行skyeye时出现下列问题
[root@localhost uClinux-dist]# skyeye linux-2.4.x/linux
***************************************************************
****                                                       ****
****   SkyEye  Simulator Ver 0.7.7 with  GDB 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 0x813db08
Unkonw option: mem_num
skyeye_read_config: config file skyeye.conf have errors!

顶部
bucketxp
注册会员
Rank: 2


UID 88004
精华 8
积分 300
帖子 103
阅读权限 20
注册 2004-1-8
来自 BIT
状态 离线
发表于 2004-8-24 12:35  资料  短消息  加为好友 
最后一个问题:
就是在成功启动uClinux之后,执行命令ifconfig出现如下错误:
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <davidm@snapgear.com>
For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> ifconfig
ifconfig: ifconfig was not compiled with interface status display support.
pid 12: failed 256
/>
这个是不是因为在配置内核是文件系统中没有选择包含这个命令导致的?

顶部
chyyuu
公社版主



UID 37477
精华 23
积分 1949
帖子 727
阅读权限 225
注册 2003-5-15
来自 China.gif
状态 离线
发表于 2004-8-25 23:21  资料  短消息  加为好友 
1  问题出在skyeye.conf 上,你已经解决
2 mem_num 是skyeye.conf的老的配置选项,现在已经没用了,去掉即可。
3 这是配置uclinux-dist的应用程序的问题,用默认的配置不够,默认配置没有把ifconfig的显示功能加上。只要修改uclinux-dist的应用程序相关配置选项即可。

顶部
bucketxp
注册会员
Rank: 2


UID 88004
精华 8
积分 300
帖子 103
阅读权限 20
注册 2004-1-8
来自 BIT
状态 离线
发表于 2004-8-26 09:38  资料  短消息  加为好友 
那为什么不能把uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0加上?
对这个选项的用途还不是很了解。

顶部
chyyuu
公社版主



UID 37477
精华 23
积分 1949
帖子 727
阅读权限 225
注册 2003-5-15
来自 China.gif
状态 离线
发表于 2004-8-26 10:01  资料  短消息  加为好友 
如果加上 uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS0
则运行于机器A的skyeye的IO输出和输入是通过机器A的串口进行的,如果机器A串口通过串口线联接到机器B,则在机器B上可以通过超级终端程序(windows的)或minicom(linux)程序看到机器A的skyeye的输出,并可把输入信息发给机器A的skyeye。

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP