如何在没有嵌入式操作系统环境下启动lwip?
网上看到的大多是uclinux等嵌入式操作系统之下移植lwip之后,再放到skyeye下仿真,我想直接把lwip放到skyeye下仿真,不知道该怎么做?另外还有些问题:
1。lwip源代码包里面没有安装说明,我该怎么安装呢,有没有写好的应用程序的例子?
2。据说skyeye已经移植了lwip,不知道在哪儿可以看到,我down了最新的skyeye,并没有发现啊。而testsuits里面都是编译好的文件,是不是在这个里面?
不知道问题问的清除不清楚,请大家多多指教,万分感谢。 Please refer to http://skyeye.sourceforge.net/wiki/um1. The lwip is in ucosii4skyeye package.Downloadable from gro.clinux.org when I try to accesshttp://skyeye.sourceforge.net/wiki/um1 ,"This page doesn't exist yet. Maybe you want to create it?" appears.
" ok,that page has been found.and now,
I wonder whether I can find the lwip example from the testsuites2.0now. There is no samples in testsuite 2.0. The lwip sample of ucosii only lies in http://gro.clinux.org/frs/download.php/1004/ucosii4skyeye-1.9.3.tar.gz . Please read the README in the package carefully. ok,let me try . I met a issue when I read the readme file in the ucosii4skyeye package.
in this file ,line 78 to 81 said:
"
Before you do step 2 to compile this project:
1. make sure you have arm-linux/elf-* cross-compiler installed on your computer
2. make sure you have these two file: 'libc.a' 'libgcc.a' under LIBPATH
( maybe you need to copy the file libc.a to LIBPATH by hand, I did it :)
"
then my question is where I can find these two file: "libc.a" and "libgcc.a".
sorry for this beginner's question,but still expect the answer here.
thanks a lot. you can run "find" command in your arm-linux or arm-elf directory to get them. In my machine, I can find them in:
ksh@linux:/usr/local/arm-linux> find ./ -name "libgcc.a"
./lib/gcc-lib/arm-linux/3.2.1/libgcc.a
ksh@linux:/usr/local/arm-linux> find ./ -name "libc.a"
./lib/libc.a
./arm-linux/lib/libc.a still found a error when making the lwip, info list blow:
"
skyeye_printf.o: In function `getnum':
/usr/src/skyeye-v1/ucosii4skyeye/samples/lwip_on_ucos_test/../../lib/skyeye_printf.c:110: undefined reference to `isdigit'
skyeye_printf.o: In function `skyeye_printf':
/usr/src/skyeye-v1/ucosii4skyeye/samples/lwip_on_ucos_test/../../lib/skyeye_printf.c:156: undefined reference to `isdigit'
make: *** Error 1
"
and the arm-elf-tools-20030314.sh is installed. libc.a and libgcc.a has been put into the
LIBPATH. have found solution from http://linux.tcpip.com.cn/~foolox/?id=9.
maybe ucosII4skyeye should be upgrade. It seems that tap can not be found. I have executed the command "insmod",
but when startup lwip and use command "lsmod", I find the tun module is not used.
help me please!!!
--------------------------------------------------
# skyeye -e lwip_on_ucos_test.elf -c skyeye.conf
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8060d44
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
can't find device module: (null)<---------------------------------------- error here!!!
SKYEYE: use arm7100 mmu ops
exec file "lwip_on_ucos_test.elf"'s format is elf32-little.
load section .text: addr = 0x01000000size = 0x00024ba0.
load section .data: addr = 0x01026000size = 0x000020e4.
not load section .bss: addr = 0x010280e4size = 0x00010aac .
not load section .debug_abbrev: addr = 0x00000000size = 0x000031c5 . and I also tested uclinux with net under testsuite2/at91/uclinux_cs8900a,
when run this test, tap0 can be find.
but why the lwip can not find???
It's so strange. after add atype=cs8900a in net line,there is not error so far.
but MAC address is not initiated as " mac addr=0:0:0:0:0:0".
so It seems I should found a correct type....
help me.... ok. rtl8019 can work.
next , why ping still cant work?
-----------------------------------------------
# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
From 10.0.0.1 icmp_seq=2 Destination Host Unreachable
From 10.0.0.1 icmp_seq=3 Destination Host Unreachable
From 10.0.0.1 icmp_seq=4 Destination Host Unreachable
From 10.0.0.1 icmp_seq=5 Destination Host Unreachable
From 10.0.0.1 icmp_seq=6 Destination Host Unreachable
--- 10.0.0.2 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6081ms
, pipe 3 ooops~~~,skyeye-0.9.4 is ok.
It seems Skyeye v1.2 needs more teest.
页:
[1]