QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1737|回复: 6

关于cygwin下skyeye的网络模拟问题请教

[复制链接]
发表于 2006-12-28 13:18:18 | 显示全部楼层 |阅读模式
如果宿主机操作系统是linux需要加载tun.o模块,那么在cygwin上面没有设备,需要安装其它的什么组件么?

如果不需要,我使用Skyeye V1.2Rel 编译成功的skyeye.exe运行testsuite2.1下面的at91/uclinux_rtl8019时,启动画面如下:
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x4117c0
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
can't find device module: rtl8019
SKYEYE: use arm7100 mmu ops
Loaded ROM   ./uclinux_rtl8019/romfs.img
exec file "./uclinux_rtl8019/linux"'s format is elf32-little.
load section .init: addr = 0x01000000  size = 0x0000b000.
load section .text: addr = 0x0100b000  size = 0x000e3920.
load section .data: addr = 0x010f0000  size = 0x0000a430.
not load section .bss: addr = 0x010fa440  size = 0x00022100 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.27-uc1 (skyeyeuser@debian) (gcc version 2.95.3 20010315 (relea
se)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP an
d shared lib patches from http://www.snapgear.com/)) #2 Tue Aug 9 18:45:41 CST 2
005
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2900KB available (910K code, 183K data, 44K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
ne.c:v1.10 9/23/94 Donald Becker ([email protected])
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0xfffa0000: not found (no reset ack).
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-1512BFF [VIRTUAL 1400000-1512BFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <[email protected]>
For further information check:
http://www.uclinux.org/

Command: /bin/ifconfig eth0 up 10.0.0.2
SIOCGIFFLAGS: No such device
SIOCSIFADDR: No such device
pid 11: failed 512
Execution Finished, Exiting
init: Booting to single user mode

Sash command shell (version 1.1.1)
/>

从启动画面的提示看是没有找到相关的设备吧,请教一下是什么问题?谢谢
发表于 2006-12-29 10:22:49 | 显示全部楼层
It seems netcard simulation is not supported in cygwin environment.
回复

使用道具 举报

 楼主| 发表于 2006-12-29 10:59:41 | 显示全部楼层
那请教一下在Windows操作系统上面还有什么方法可以让skyeye支持网卡模拟?谢谢
回复

使用道具 举报

发表于 2006-12-30 10:59:49 | 显示全部楼层
According to koodailar's anwser, he think MingW environment can let skyeye support netcard simulation on windows. But I have not try it. Good luck!
回复

使用道具 举报

 楼主| 发表于 2006-12-30 11:41:08 | 显示全部楼层
谢谢,我已经成功的尝试了在MinGW下面的网卡模拟尝试,主要是要先安装VPN里面的TAP-WIN32,作为网卡虚拟共享。

不过遗憾的是SkyEyeV1.2Rel还是不能够直接在MinGW下面编译通过,关于这个问题我已经提交bug到sourceforge了
回复

使用道具 举报

发表于 2006-12-30 12:00:33 | 显示全部楼层
Thanks.  I will look into it.
Can you write your experince here about netcard simulator under MinGW to share with us? That will be very kind.
回复

使用道具 举报

发表于 2006-12-30 23:27:25 | 显示全部楼层
目前 TAP-WIN32 在 SkyEye 下还是不能使用的,
原来 koodailar 写的这个东西好像有点问题。

过段时间我会把 SkyEye 的 MinGW 环境代码彻底清理一下,
到时我会考虑去除 OpenVPN 依赖,转而使用 Win32 DDK 的东西或类似 vnet 等代替。

请期待下一版本...
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-26 17:11 , Processed in 0.042362 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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