QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2334|回复: 14

如何在没有嵌入式操作系统环境下启动lwip?

[复制链接]
发表于 2006-3-18 11:10:25 | 显示全部楼层 |阅读模式
网上看到的大多是uclinux等嵌入式操作系统之下移植lwip之后,再放到skyeye下仿真,我想直接把lwip放到skyeye下仿真,不知道该怎么做?

另外还有些问题:
1。lwip源代码包里面没有安装说明,我该怎么安装呢,有没有写好的应用程序的例子?
2。据说skyeye已经移植了lwip,不知道在哪儿可以看到,我down了最新的skyeye,并没有发现啊。而testsuits里面都是编译好的文件,是不是在这个里面?

不知道问题问的清除不清楚,请大家多多指教,万分感谢。
发表于 2006-3-18 11:50:37 | 显示全部楼层
Please refer to http://skyeye.sourceforge.net/wiki/um1. The lwip is in ucosii4skyeye package.Downloadable from gro.clinux.org
回复

使用道具 举报

 楼主| 发表于 2006-3-18 21:36:27 | 显示全部楼层
when I try to access  http://skyeye.sourceforge.net/wiki/um1 ,"This page doesn't exist yet. Maybe you want to create it?" appears.
"
回复

使用道具 举报

 楼主| 发表于 2006-3-19 10:35:55 | 显示全部楼层
ok,that page has been found.and now,
I wonder whether I can find the lwip example from the testsuites2.0  now.
回复

使用道具 举报

发表于 2006-3-20 14:15:12 | 显示全部楼层
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.
回复

使用道具 举报

 楼主| 发表于 2006-3-21 20:31:39 | 显示全部楼层
ok,let me try .
回复

使用道具 举报

 楼主| 发表于 2006-3-21 21:31:28 | 显示全部楼层
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.
回复

使用道具 举报

发表于 2006-3-22 07:33:08 | 显示全部楼层
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
回复

使用道具 举报

 楼主| 发表于 2006-3-22 14:57:41 | 显示全部楼层
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: *** [lwip_on_ucos_test.elf] Error 1

"

and the arm-elf-tools-20030314.sh is installed. libc.a and libgcc.a has been put into the
LIBPATH.
回复

使用道具 举报

 楼主| 发表于 2006-3-22 16:05:45 | 显示全部楼层
have found solution from http://linux.tcpip.com.cn/~foolox/?id=9.

maybe ucosII4skyeye should be upgrade.
回复

使用道具 举报

 楼主| 发表于 2006-3-22 20:16:41 | 显示全部楼层
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!!!
--------------------------------------------------
[lwip_on_ucos_test]# 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 = 0x01000000  size = 0x00024ba0.
load section .data: addr = 0x01026000  size = 0x000020e4.
not load section .bss: addr = 0x010280e4  size = 0x00010aac .
not load section .debug_abbrev: addr = 0x00000000  size = 0x000031c5 .
回复

使用道具 举报

 楼主| 发表于 2006-3-22 21:11:12 | 显示全部楼层
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.
回复

使用道具 举报

 楼主| 发表于 2006-3-22 22:16:33 | 显示全部楼层
after add a  type=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....
回复

使用道具 举报

 楼主| 发表于 2006-3-22 22:21:14 | 显示全部楼层
ok. rtl8019 can work.

next , why ping still cant work?

-----------------------------------------------
[root@world uclinux_rtl8019]# 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
回复

使用道具 举报

 楼主| 发表于 2006-3-23 10:41:48 | 显示全部楼层
ooops~~~,skyeye-0.9.4 is ok.


It seems Skyeye v1.2 needs more teest.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-27 03:02 , Processed in 0.037373 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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