skyeye+ucos+lwip
我在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) ***************************************************************
****
****
**** 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
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_REGlocal port 16946496
另一个SHELL:
# telnet 10.0.0.1 7
Trying 10.0.0.1...
telnet: connect to address 10.0.0.1: Connection refused 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! 我还有个问题:如果已经实现了UCOSII在某个ARM芯片上运行(LWIP也成功移植到UCOSII上),现在想把LWIP+UCOS移植到该芯片上,是否现在所要做的就是写该芯片的网络设备驱动程序?
页:
[1]