QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2972|回复: 4

lwip_on_ucos_test的问题

[复制链接]
发表于 2009-2-22 18:06:01 | 显示全部楼层 |阅读模式
skyeye版本:1.2.6
ucosii4skyeye版本:1.9.3

编译lwip_on_ucos_test正常,生成lwip_on_ucos_test.elf
tun模块已经加载
在root下运行:
skyeye -e lwip_on_ucos_test.elf

ifconfig查看,并没有出现tap0,也就ping不通10.0.0.2。输出如下:

debian:/home/czy0818/bs/skyeye/ucosii4skyeye/samples/lwip_on_ucos_test# skyeye -e lwip_on_ucos_test.elf
Your elf file is little endian.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x805f800
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
can't find device module: (name:net, typenull))
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm7100 mmu ops
start addr is set to 0x01000000 by exec file.
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
IO error in at91_io_write_byte,addr=0xbfce922c
IO error in at91_io_write_byte,addr=0x80561ce
IO erro in at91_io_read_byte, addr=0xfffa007c
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO erro in at91_io_read_byte, addr=0xfffa0004
IO erro in at91_io_read_byte, addr=0xfffa0008
IO erro in at91_io_read_byte, addr=0xfffa000c
IO erro in at91_io_read_byte, addr=0xfffa0010
IO erro in at91_io_read_byte, addr=0xfffa0014
IO erro in at91_io_read_byte, addr=0xfffa0018
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
IO error in at91_io_write_byte,addr=0x80561ce
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



然后用tunctl自己添加一个虚拟网卡tap0(10.0.0.1 255.255.255.0),
再运行skyeye -e lwip_on_ucos_test.elf
依然ping不到10.0.0.2
 楼主| 发表于 2009-3-9 12:39:06 | 显示全部楼层
在skyeye.conf文件的net那一行加上type=rtl8019
终于启动时能看到tap0了。输出如下:

czy0818@debian:~/tmp/ucosii4skyeye/samples/lwip_on_ucos_test$ sudo skyeye -e lwip_on_ucos_test.elf
Your elf file is little endian.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x805f800
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm7100 mmu ops
start addr is set to 0x01000000 by exec file.
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


可还是ping不到10.0.0.2。在ne2k_isr里加了条PRINT语句,结果发现一次中断都没发生。
我是要在ucos上移植libhttpd,手边又没有开发板,如果ping不通的话很难测试。有谁成功运行过吗?能否说一下过程。
回复

使用道具 举报

发表于 2009-3-19 22:06:33 | 显示全部楼层
我和你遇到的问题一模一样。。。。。。。。
         求解。。。。。。。。。。。。。。。。。。。。。。
回复

使用道具 举报

发表于 2011-8-8 20:32:08 | 显示全部楼层
我现调试(ucosii4skyeye v1.93)也遇到一模一样的问题,就是网卡不产生中断导致后面的网络操作无从谈起,谁知道可能的原因呢?
回复

使用道具 举报

发表于 2011-8-10 11:23:16 | 显示全部楼层
目前ucosii4skyeye这个源代码包,已经不再测试和维护。

Thanks
MK
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 00:24 , Processed in 0.080575 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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