台湾rtl8187无限网卡驱动和中英文man

OpenBSD的安装、升级、更新等日常问题。

版主: chenjun天地乾坤

回复
头像
crzyfish
镍 Ni
帖子: 195
注册时间: 2010-02-05 20:11

台湾rtl8187无限网卡驱动和中英文man

帖子 crzyfish » 2010-03-04 20:49

这张卡也是网上口碑极好的大功率网卡之一,因为价格,再便宜配上BT3/4破解密码什么的很受欢迎~
驱动是由FreeBSD开发人员Weongyo Jeong制作的, 我是在OpenBSD4.6上运行通过,除了想用它做AP失败以外,没什么郁闷的地方,信号貌似和win下驱动一样好~

FreeBSD的port下载地址:
http://people.freebsd.org/~weongyo/urtw_20081107.tar.gz

首先,因为是长文件名,请运行
# mv urtw_20081107.tar.gz urtw.tar.gz

然后再把它移动到 / 下
# mv urtw_20081107.tar.gz /

现在解包,它会把驱动放到/dev里,并生成/modules目录
# tar -zxvf urtw.tar.gz
dev
dev/usb
dev/usb/if_urtw.c
dev/usb/if_urtwreg.h
dev/usb/if_urtwvar.h
dev/usb/usbdevs
modules
modules/urtw
modules/urtw/Makefile

然后再
# cd /modules/urtw
# . ./Makefile //是点,空格,再点,然后是Makefile

# ./make
# ./make install
# ./makeclean
(以前不太懂,糊里糊涂乱输就成功了,现在网卡已经不在手上了,没办法测试这过程)

最后dmesg和ifconfig一下,你就可以看到urtw0的网卡设备了~
最最后再
# rm -rf /modules

小小提示一下,使用scan命令的正确方法为:
# ifconfig urtw0 scan
但是连上AP后,这个命令好像就没用了……不懂怎么回事。

获取dhcp地址
# dhclient urtw0


man的引用网址:
http://www.openbsd.org/cgi-bin/man.cgi? ... ormat=html



URTW(4) OpenBSD Programmer's Manual URTW(4)

DESCRIPTION
The urtw driver supports USB 802.11b/g wireless adapters based on the Re-
altek RTL8187L and RTL8187B.

These are the modes the urtw driver can operate in:

BSS mode Also known as infrastructure mode, this is used when asso-
ciating with an access point, through which all traffic
passes. This mode is the default.

IBSS mode Also known as IEEE ad-hoc mode or peer-to-peer mode. This
is the standardized method of operating without an access
point. Stations associate with a service set. However,
actual connections between stations are peer-to-peer.

monitor mode In this mode the driver is able to receive packets without
associating with an access point. This disables the in-
ternal receive filter and enables the card to capture
packets from networks which it wouldn't normally have ac-
cess to, or to scan for access points.

The urtw driver can be configured to use Wireless Equivalent Privacy
(WEP) or Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). WPA is the de
facto encryption standard for wireless networks. It is strongly recom-
mended that WEP not be used as the sole mechanism to secure wireless com-
munication, due to serious weaknesses in it. The urtw driver relies on
the software 802.11 stack for both encryption and decryption of data
frames.


The following hostname.if(5) example configures urtw0 to join whatever
network is available on boot, using WEP key ``0x1deadbeef1'', channel 11,
obtaining an IP address using DHCP:

dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11

The following hostname.if(5) example creates a host-based access point on
boot:

inet 192.168.1.1 255.255.255.0 NONE media autoselect \
mediaopt hostap nwid my_net chan 11

Configure urtw0 to join network ``my_net'' using WPA-PSK with passphrase
``my_passphrase'':

# ifconfig urtw0 nwid my_net wpa wpapsk \
`wpa-psk my_net my_passphrase`

Return urtw0 to its default settings:

# ifconfig urtw0 -bssid -chan media autoselect \
nwid "" -nwkey -wpa -wpapsk

Join an existing BSS network, ``my_net'':

# ifconfig urtw0 192.168.1.1 netmask 0xffffff00 nwid my_net


类介绍:

arp(4), ifmedia(4), intro(4), netintro(4), usb(4), hostname.if(5),
hostapd(8), ifconfig(8), wpa-psk(8)



AUTHORS 作者
The urtw driver was written by Weongyo Jeong < weongyo@FreeBSD.org >.

头像
crzyfish
镍 Ni
帖子: 195
注册时间: 2010-02-05 20:11

帖子 crzyfish » 2010-03-04 20:51

URTW(4)OpenBSD的程序员手册URTW(4)
名称
urtw - Realtek RTL8187L/RTL8187B USB IEEE 802.11b/g 无线网络设备
总览
urtw* at uhub? port ?
描述
该urtw驱动程序支持 USB 802.11b/g无线适配器芯片基础的Realtek RTL8187L and RTL8187B.
以下是urtw能够工作的模式:
BSS模式,也称为基础结构模式,这是用来关联一个接入点,让所有交流通行。这种模式是默认的。
IBSS模式,也称为IEEE ad-hoc 模式或点对点网络模式。这是没有接入点作业标准化方法,通信与服务的副集。不过,通信间的实际连接却是点对点。
监听模式,在这种模式下的驱动程序不能够接收与一个接入点相关联的数据包。这将禁用内部接收器,使该卡捕获网络数据包,它通常不会获得,或扫描接入点。
该urtw驱动程序可以被配置为使用无线等效保密的(WEP) 或 Wi-Fi Protected Access (WPA-PSK and WPA2-PSK)。 WPA是优秀的无线网络加密标准。这是强烈建议的WEP不能作为唯一安全的无线通信的机制,由于它使用的严重弱点。urtw驱动是依靠堆栈加密和解密的数据帧802.11的软件。

该urtw驱动程序可以配置为使用ifconfig(8)或在开机运行与hostname.if(5)。
硬件
下面的适配器可以正常工作:
Belkin F5D7050E
Netgear WG111v2
Netgear WG111v3
Shuttle XPC Accessory PN20
Sitecom WL-168
Surecom EP-9001-g rev 2A
实例
例如配置以下hostname.if(5)使urtw0加入任何网络上提供引导,使用WEP密钥`` 0x1deadbeef1 '',频道11,获取一个IP地址使用DHCP:
dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11
以下hostname.if(5)例子创建了一个基于主机的开机接入点:
inet 192.168.1.1 255.255.255.0 NONE media autoselect \
mediaopt hostap nwid my_net chan 11
配置urtw0加入"my_net"网络使用WPA与密码"my_passphrase":
# ifconfig urtw0 nwid my_net wpa wpapsk \
`wpa-psk my_net my_passphrase
恢复urtw0默认设置:
# ifconfig urtw0 -bssid -chan media autoselect \
nwid "" -nwkey -wpa -wpapsk
加入现有的广播网络"my_net":
# ifconfig urtw0 192.168.1.1 netmask 0xffffff00 nwid my_net
见其他:
arp(4), ifmedia(4), intro(4), netintro(4), usb(4), hostname.if(5),
hostapd(8), ifconfig(8), wpa-psk(8)
瑞昱半导体: http://www.realtek.com.tw/
历史
设备驱动程序的urtw首次出现在OpenBSD的4.5。
作者
该urtw驱动程序由Weongyo Jeong <weongyo@FreeBSD.org>所写。
OpenBSD 4.6 June 7, 2009 2

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-03-04 21:52

哪有Rtl8192驱动, thinkpad 510 无线网卡。

头像
crzyfish
镍 Ni
帖子: 195
注册时间: 2010-02-05 20:11

帖子 crzyfish » 2010-03-04 22:05

我那时也是糊里糊涂Google:rtl8187 OpenBSD 或者 rtl8187 FreeBSD
找到的,
我想你这样用网卡芯片+系统名,会很容易找到的~

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-03-05 23:31

支持原创,感谢提供。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-03-12 10:03

crzyfish 写了:我那时也是糊里糊涂Google:rtl8187 OpenBSD 或者 rtl8187 FreeBSD
找到的,
我想你这样用网卡芯片+系统名,会很容易找到的~
感谢,官方提供linux驱动,等待bsd支持了再说吧。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 29 访客