QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1391|回复: 3

skyeye+ucos+lwip

[复制链接]
发表于 2006-4-22 15:13:35 | 显示全部楼层 |阅读模式
我在SKYEYE下实现LWIP的时,
启动SKYEYE并load lwip_on_ucos_test.elf后,一切正常;(main_entry.c)程序运行在
void usr_task(void * pParam)
{
  PRINT("\nusr_task:hello!\n");
  while(1){
    sleep(5);     <----------程序运行在这里
   }
}

现在遇到一个问题:我打开另外一个SHELL,$ telnet 10.0.0.1 7后运行画面没有任何反应。(SKYEYE.CONF文件中HOSTIP=10.0.0.1)
 楼主| 发表于 2006-4-22 16:00:26 | 显示全部楼层
***************************************************************
****
****
****   SkyEye  Simulator Ver 0.7.4 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 0x813dae4

nic[0] 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
Connected to the simulator.

(SkyEye) load lwip_on_ucos_test.elf

Loading section .text, size 0x24ba0 vma 0x1000000
Loading section .data,
size 0x20e4 vma 0x1026000

Start address 0x1000000

Transfer rate: 1270816 bits in <1 sec.

(SkyEye) run

Starting program:
warning: No executable file specified.

System initialized.


usr_task: hello!

memp_register_reclaim: registering reclaimer for type 0

memp_register_reclaim: registering reclaimer for type 4

memp_register_reclaim: registering reclaimer for type 2

TCP/IP initialized.

netif: added interface lo IP addr 127.0.0.1 netmask 255.0.0.0 gw 127.0.0.1

netif: added interface et IP addr 10.0.0.2 netmask 255.255.255.0 gw 10.0.0.1

netif: setting default interface et
Applications started.
tcpecho created!
tcpip_thread: API message
tcp_bind: bind to port 7

tcpip_thread: API message
TCP_REG  local port 16946496





另一个SHELL:

[root@localhost root]# telnet 10.0.0.1 7

Trying 10.0.0.1...
telnet: connect to address 10.0.0.1: Connection refused
回复

使用道具 举报

 楼主| 发表于 2006-4-22 17:32:08 | 显示全部楼层
i forget to run tun driver module:
  #ismod /lib/modules/2.4.x/kernel/drivers/net/tun.o
then it's ok!

But there have other problem:I normally run it once!
回复

使用道具 举报

 楼主| 发表于 2006-4-22 21:39:39 | 显示全部楼层
我还有个问题:如果已经实现了UCOSII在某个ARM芯片上运行(LWIP也成功移植到UCOSII上),现在想把LWIP+UCOS移植到该芯片上,是否现在所要做的就是写该芯片的网络设备驱动程序?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 22:39 , Processed in 0.092305 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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