lwip_on_ucos_test的问题
skyeye版本:1.2.6ucosii4skyeye版本: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, type:(null))
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_REGlocal port 16946496
然后用tunctl自己添加一个虚拟网卡tap0(10.0.0.1 255.255.255.0),
再运行skyeye -e lwip_on_ucos_test.elf
依然ping不到10.0.0.2 在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_REGlocal port 16946496
可还是ping不到10.0.0.2。在ne2k_isr里加了条PRINT语句,结果发现一次中断都没发生。
我是要在ucos上移植libhttpd,手边又没有开发板,如果ping不通的话很难测试。有谁成功运行过吗?能否说一下过程。 我和你遇到的问题一模一样。。。。。。。。
求解。。。。。。。。。。。。。。。。。。。。。。:( 我现调试(ucosii4skyeye v1.93)也遇到一模一样的问题,就是网卡不产生中断导致后面的网络操作无从谈起,谁知道可能的原因呢? 目前ucosii4skyeye这个源代码包,已经不再测试和维护。
Thanks
MK
页:
[1]