ubnt解决方案
查看: 14575|回复: 13

[软件] ATHEROS AR5B91 驱动 for linux

[复制链接]

75

回帖

309

积分

88 小时

在线时间

少尉

注册时间
2008-12-21
金币
210 个
威望
1 个
荣誉
0 个

尚未签到

发表于 2009-1-13 21:16 |显示全部楼层
ATHEROS AR5B91 驱动 for linux 8 c* I6 k6 D/ v1 d) N

; k" F  i: w0 @8 V" g' Z& b8 K有需要的拿去吧。& a& s' ?2 a; f" P
% e4 K2 e9 q' F/ r( U
! h( C. a- ]& r  Y+ H6 ^
有哪位大哥可以说明一下这个驱动在BT3下怎么用呢
' D, i7 v8 l* E" R* K8 u$ }/ T1 g( J4 a4 f& |2 ?" t
驱动里面的安装说明没看懂。" P' x# T) T! W( t* Y1 D
以下是驱动内带的安装说明:
0 m+ R) _  R" y" D, q. G1 VMADWIFI: Multimode Atheros Driver for WiFi on Linux (VAP branch)
- u9 L; ]* }2 P& |================================================================, D3 }: ?0 h2 e5 {3 n
( ?/ s4 c! M: z
* Copyright (c) 2002-2005 Sam Leffler.  All rights reserved.
9 h2 m8 Y8 e, t( v9 K: j  M& ~
Read the file COPYRIGHT for the complete copyright.
1 y3 f- c! R$ G6 g# ^/ f% I3 L& D' Z8 [9 Q% }# l

5 y. c# E, S, o# r+ ~; jRequirements
9 {' T5 j- |3 B, k* _. q, o( {------------
- Z6 y: K7 d) A6 a/ T& b7 w% k7 {/ F4 A7 t5 \% h
- Configured kernel sources of the target kernel.  Some Linux
. x5 M* W1 t5 r  [9 u  distributions provide headers, makefiles and configuration data - it$ o  ]# c8 z) x8 `& g
  should suffice.: v4 l- X" A' `* }" }7 u! F3 B9 i9 f
  J7 `/ D$ @! c6 K) k. j% _" Y
- Wireless Extensions support (14 or later, 17 preferred) - option
. N; D' g9 N$ c( q+ m  CONFIG_NET_RADIO in kernel .config file.
1 p$ F6 h- @' U* F. G
% _8 J0 ^0 O% y: R- Sysctl support - option CONFIG_SYSCTL in kernel .config file.9 p  w; P1 P( n( Y
5 I+ D8 S/ }, M3 [2 d7 o
- Crypto API support - option CONFIG_CRYPTO in kernel .config file (AES
0 Y" }) U3 G- P0 i  support is used if present, otherwise the AES-CCMP cipher module falls
: D+ X& ~) u" H5 {  back to a private implementation).
" `6 {( y3 p' K0 U4 W
$ M; e% h. t8 v# Y" W- gcc of same version that was used to compile the kernel.  At least
2 [0 f0 }# p* O: j8 b  j  make sure that the first two version numbers or the compiler are the
4 {+ t5 Q2 ?  _  same (e.g. it's OK to use gcc 3.4.6 to compile MadWifi if the kernel  u( Q8 \6 }% `! N6 q* f
  was compiled by gcc 3.4.2).  Ignoring this rule will cause "Invalid! W- d9 a# s- G- C
  module format" errors during module load.
7 J5 r* C, n* a' ^! I/ m1 D! n
5 |; y6 k; g! |9 [: ^8 ]Linux 2.4.x kernels starting with 2.4.22 and 2.6 kernels should work
4 s5 a6 K% O6 Kwithout problems.  Due to quick pace of Linux development, there is no8 t( [' Q( M4 `7 \& I/ t
way compatibility with the future 2.6 kernels can be ensured.  However,
5 |: @# I9 t4 Bthe latest 2.6 kernel at the time of the release should be expected to. h) @* `6 ]( t* Q& p+ t
work.
/ H5 P! Q4 Q3 l$ O# j. s( P- p
Automatic module loading support (CONFIG_KMOD) is recommended; otherwise,
: H  t. M3 e& K3 x. Dcare will have to be taken to manually load needed modules.. Q8 ]# c# f0 b8 k
/ B7 N3 U! v  U6 U' x3 W+ H% Q+ @
Building the driver
5 ^; v8 v: n( U8 @; n* Q, x/ l4 w/ T-------------------: \! L, C, X# y  m$ t

) z7 A& l; A& i8 xThe driver is built using the Linux kernel build mechanism.  This means5 Q+ J+ z/ ?. M3 N8 P. d5 d. A
you must have some part of the kernel source distribution installed on& Q! G8 c2 x0 R& D3 P# U! n
the machine where you want to build the driver.  In particular, the
! m& ~' ^2 k+ f& @7 Zkernel include files, makefiles, build scripts and configuration must be% M* U4 V( N  e( S5 N
available." V1 F  J9 u1 V! }: I
8 ]* @) X6 @- u) y
This will be present if you built your kernel from source.  Otherwise. S+ Z/ D% P; B, I
you may need to install an additional kernel development package from
0 k# i5 u; l( f8 d8 gyour distribution that would match your kernel.  For example, the7 V. L2 ^6 @, S( h4 @  k) F( U8 \' A
development package for the default kernel is called linux-headers on) Z3 u: F  e+ L  T7 g6 o
Debian and kernel-devel on Fedora Core.  Installing a package with full
2 R( l  _' V+ e+ Bkernel sources should not be generally necessary.& \) \1 k! @% C
% v: E) X- w& p1 ?% m
Note: in the following examples "$" stands for your system prompt;
. m& H% n; ~2 U8 v; [0 ~$ O# J. Ryou're not expected to type that as part of the actual command.  "#"
$ f9 z9 d7 `  e* z6 P9 ystands for the command prompt when the commands must be executed by
2 i: f+ ?1 p7 Lroot.8 c! r# N0 W7 J) S2 M  l  F
5 V3 }  ?# o! E  `9 o# D
Most people can just type:* B; f6 ~: ^: E9 o
. i! v9 e( W% I. o4 M/ x/ a
  $ make6 F/ c/ ?" V+ X4 |6 m

& h" B# b4 p) k& ^' h% vin the top-level MadWifi source directory to build all the modules for
4 d7 f9 {4 i, p4 Bthe currently running system.
0 |, A/ F6 f! a1 r( W" S; ~
1 I+ j/ t' e' i! Z  vYou MUST do a "make clean" before compiling for a different version of
- y& D" c8 o2 H. Z& v$ d8 p# ~Linux, e.g. building for 2.6 after building for 2.4.- V4 s0 T' N+ C/ s( S: |& x

7 N; E" d$ l& N3 \8 U5 p+ g8 HIf you want to compile MadWifi for a different kernel, you need to
1 y. j, i8 C7 I$ _specify the location of the kernel build tree, e.g.:
$ l% Y& K+ ^' Z  J/ U' G. D9 a1 ^- ~$ |" f+ R% y1 V& L
  $ make KERNELPATH=/usr/src/linux-2.6.3! B8 l; q0 g! r( T
1 p, d* a7 j" ^0 C, B
Note that you can also specify this path by setting an environment
; N$ ^8 ^8 w' T& ?; L. S5 ivariable; e.g.1 W' a. _; o7 w; v) V
, q# @$ T5 Q/ P
  $ export KERNELPATH=/usr/src/linux-2.6.3
; S+ B6 l, B: a- y7 a  $ make
- {% X8 `$ o% m0 P# G9 ]& o' y! y6 l$ L& O/ ~. i% L
If the kernel was built outside the source directory, KERNELPATH should# ~" d8 Q) M6 @8 M
point to the output directory where .config is located, not to the
5 `; m  y. w" u1 ?8 @sources.
9 N& v# b9 }- v/ G; {! @- Z2 x8 b& P6 q
MadWifi currently provides four different rate control algorithms,
8 i% L: A" E$ AONOE, AMRR, SAMPLE and MINSTREL.  SAMPLE and MINSTREL are both very
& M8 W/ u5 v( fadvanced, but MINSTREL is quite new.  Consequently, SAMPLE is used by
2 K: A7 j: p* l1 d3 E* q( [default.  In order to make MadWifi use e.g. AMRR instead, you have to2 P$ }: E% [" R. V! j$ ^5 v
specify that as the module parameter e.g.7 E9 J2 N' i5 A2 V. O

1 K. v9 B; g+ e( @8 Y( R  # modprobe ath_pci ratectl=amrr: }& w0 U7 v2 [/ [+ T5 E
* e3 [' T) _* E# d6 h2 w. F2 Q! z
NOTE: Changing the rate control is only required (and recommended) for3 }3 i3 I: q( i  c0 Y5 p" e
      users who want to setup an access point using MadWifi in difficult
: `) ~/ b+ L$ |. Q: t      (e.g. lossy) environments and who know what they are doing.1 P& x- ^: O, H! i8 j1 I% L

% m/ }( i: b( b+ d* O' \' o0 m1 JThis distribution includes support for a variety of target platforms.3 g+ v8 [9 Q( B
Because of the binary nature of the HAL not all platforms are supported
7 ]) T" q/ P9 O4 Q6 ~$ ?$ G, o(the list grows as time permits).  The supported target platforms can be
9 c- {3 m- E/ cfound with:
( E. ^+ r' i3 E* X
5 x: H8 O  C9 k" c5 l/ p  $ ls hal/public/*.inc
. Z) N& [$ E  M: i, T9 G) J/ ~1 N
A target specifies the CPU architecture, byte order (unless implied by
* L" h6 ~' Y+ i& ]the CPU), and the ABI/file format.  For most popular platforms, the5 Z% c4 S7 u, p- _) v
build system will find the appropriate files.  When cross-compiling or
) d- M5 K* M0 b$ Y0 M6 zcompiling for less common platforms, the target platform may need to be  J- K, B4 z* X
specified using the TARGET variable, e.g:
3 Y4 D3 e- l+ {4 Y2 n6 r! H, A
$ o" r% T2 @7 Z+ j( J$ v/ ], I; p$ F  $ make TARGET=armv4-le-elf$ r0 k4 r, |4 T8 r

: Q; C2 e; ]. r0 M, W$ @; u1 \Consult the contents of the .inc file to find out what the target# A  W5 W0 i1 X9 }% h. J/ ~
platform is and what toolchain was used to build the HAL object module.
* T0 M$ x1 ~/ q; ?Beware of mixing toolchains; some target platforms require that the HAL
2 a3 A/ n9 B$ }/ Z- S( v5 vand driver be built with the same toolchain (i.e. compiler, assembler,
) a" E! D3 k' m; ]/ K, Q# i2 I! n7 vand linker) and the same compiler flags.  If you get warnings about: A, h0 n9 I* i- C% g& W8 L, s
incompatible compiler flags, chances are that you are compiling for a
! [4 s! P9 O8 m  b. cwrong target or using an incompatible compiler.
; c- w- |+ D: R$ f4 `" |1 R1 S& U: U& k( e) M3 R# D3 Y# y
, ^" V2 N$ h9 v& H. H- l
Cross-compiling
" Y5 U/ }0 X5 x/ K: n---------------( `2 x9 @9 k5 q' o

( ]9 A$ M8 v& wThe build system is designed to support cross-compiling without any
  B' n1 w% @) F5 w5 Zmodification to the distribution files.  It should be sufficient to
+ R: v! |" K! G! p* Cspecify any parameters on the make command line.
6 Y( N8 `% s# S; o7 G$ H  p% c% O' q% \# Q- Q6 x
In most cases, only KERNELPATH and CROSS_COMPILE need to be defined. + `7 z6 v! L7 p) m  D" f
CROSS_COMPILE is the prefix for cross-compiling tools.  For instance, if1 Z5 M" g. u8 K. p4 b4 E2 g
the cross compiler is called arm-linux-gcc, set CROSS_COMPILE to
; j1 p+ {' \: \7 V% l"arm-linux-":
$ ?4 u3 P8 J0 t, l
. v- K5 |! Q: B4 f  $ make KERNELPATH=/usr/src/linux-arm CROSS_COMPILE=arm-linux-# o+ |" T3 _! Q3 ?3 H
- I" W1 w: a0 E+ z: M$ w& c
The build system determines ARCH and TARGET based on the .config file in
. m: U  ~) l, t, s0 Y7 O+ Pthe Linux build tree.  TARGET still may need to be provided on the& }! ^1 E9 K( m3 q9 `
command line some uncommon systems.  If ARCH is determined incorrectly,
' [" m/ W0 H/ C0 e8 E& C' Oplease report it.
! f# ^! v( ]$ p! y/ g) o5 R3 c) P9 G: A

9 l) j: ]4 c9 M" o9 _& o( Y' @Loading the modules
" O& V/ D) P) g  x; g-------------------
, M- g" G: |9 j2 }- m2 ?1 K; J5 E( b. I  B/ f' X0 |) g
Building the software will generate numerous loadable modules:
1 V: I* I" s8 J; x  O% ]) G% l$ V7 _: B4 L3 S) W5 L. a3 I" j
  ath_pci        Atheros driver for PCI/Cardbus devices
, q4 H( x: C2 W& I  ath_hal        Atheros HAL; A  f5 `6 v/ {# o# n0 H9 \( ]
  wlan            802.11 support layer+ {$ U, q8 h1 O' N
  wlan_wep        WEP cipher support5 m* n/ B% B4 `; M4 V. n4 y4 V
  wlan_tkip        TKIP cipher support
9 E) @) v& p: R6 L5 t  wlan_ccmp        AES-CCMP cipher support; }. N1 a( z) V" v' c& r  n/ r
  wlan_xauth        external authenticator
$ N5 y0 l1 l  i5 U, U  wlan_acl        MAC ACL support for AP operation4 t& G! P0 p/ q# d* k
  wlan_scan_ap        AP scanning support
7 |+ A: ~0 {! O8 e" N  o  wlan_scan_sta        station scanning support
/ L9 S% E8 l) t& |) `  ath_rate_onoe        ONOE rate control* q% d- h) Q* C/ W; O  s7 p' P, a
  ath_rate_amrr        AMRR rate control, d8 A4 L* a; I8 [
  ath_rate_sample    SAMPLE rate control0 R  Q, E9 T2 A# f' @) U
8 e' ?6 D" T9 u0 U, D% r2 q, [
The ath_pci module must be loaded either manually or by the system, e.g.
6 p: s  `+ ^  F# Ythrough the hotplug or card manager support.  The remaining modules are
' o( o  [0 X9 L2 b0 \loaded automatically as needed, so after doing a "make install" you only
7 ~: @9 x3 k# e/ p# Wneed to run following:. L" z4 T. G+ e9 J. m; i9 h. J* ~* J* W

' {( P6 |0 ]8 I+ @3 _5 |) [  # modprobe ath_pci
8 S; d8 v  O/ C" k0 A" u6 g4 S% D2 O, I" M8 j9 k
For automatic module loading you may need to modify your system's
) P1 D" _' G4 \9 {/ k, \configuration files so the necessary modules are loaded when an Atheros( U7 a6 {0 j7 F: l1 v; v' f
device is recognized.  The exact procedure varies from system to system.
1 X7 P$ b. S& @" A1 ~/ v" _* r' E3 x. \4 G# d
There are module parameters available to fit your needs, e.g. you can# O3 Z3 M0 L+ q* [' x1 w
set the countrycode manually if your card's EEPROM does not contain the1 @; J5 Z- I8 }" o
correct one for your location.  See" {9 {" e* x" E0 Q2 n- V
http://www.unicode.org/onlinedat/countries.html to find your code.
; V" z2 M, F" y+ S3 l1 w, I, h, d( ~( ]
To activate German frequencies you would specify:$ R# A2 h! N: C# [* U
% I% i% T" ~0 T$ L  |  c
  # modprobe ath_pci countrycode=276) z! N$ ?( e9 a! a% i, h& u4 O6 p
4 Q. V# A4 \! v6 W; F6 s2 a
To see all available module parameters type:
, k  V) X! }1 m  \6 U+ x& B4 B. L' N' v3 t
  $ modinfo ath_pci
0 r7 s4 P0 l) w: ^) M5 Y, Z$ z  l( l: v0 C

0 @" z4 p: _$ W0 E% }Integrating into the kernel sources! m2 ^6 ~! d8 T6 K8 x# i
-----------------------------------
/ ?! b* A$ W, }2 {, W8 B1 p+ O8 p
It is also possible to patch Linux kernel sources to integrate MadWifi
2 s% M# e( ?1 gdirectly into the kernel tree.  This allows building MadWifi as part of& `- Q1 \9 K# E" ^
the kernel.  This could be useful for embedded systems that don't8 m9 o; E* j2 q7 p9 d+ l
support loadable modules.  Please refer to patches/README for details.
! ^  t" a) S9 L9 F" B
; {/ T0 R, g# a( [6 \4 u7 u3 n0 z* }, V  p  h( z0 w* \
Further information- j- {: ~( ^- R  p3 |
-------------------
' H  M8 q. u  t- \0 w* S5 U% I; n# `7 a: N7 w
Further information on how to work with the driver can be found in the
6 t! w  a! B5 M" Ffile README.  In addition, the project's wiki has a lot of valuable
8 B3 o; H- a6 u& ?, _- w6 Linformation:/ ~7 J7 i! }6 p6 g! _  b4 ]

$ i2 _/ z/ Z/ x, mhttp://madwifi.org/

2292

回帖

4万

积分

536 小时

在线时间

砖家教授

ceng网砖家

灌水天才技术达人

注册时间
2008-7-14
金币
37927 个
威望
30 个
荣誉
11 个
累计签到:149 天
连续签到:0 天
[LV.200]无线新星
发表于 2009-1-13 21:18 |显示全部楼层
沙发呢,我的网卡不是这个芯片的
回复

使用道具 举报

3

回帖

7

积分

2 小时

在线时间

预备兵

注册时间
2009-4-2
金币
4 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2009-4-23 14:50 |显示全部楼层
楼主,您说的软件在哪??& ]8 T+ N$ r. z4 w( @& y$ g
2 \7 h- @5 R, u+ M
怎么什么都没有?去哪里下?怎么下?怎么用?您可要说得清楚些?
回复

使用道具 举报

1517

回帖

4777

积分

359 小时

在线时间

少校

注册时间
2008-6-11
金币
2927 个
威望
31 个
荣誉
7 个

尚未签到

发表于 2009-4-23 20:09 |显示全部楼层
如果BT3下不能直接用的话,建议你不要用BT3了,还不如用ubuntu,archlinux等系统。
回复

使用道具 举报

1848

回帖

9838

积分

739 小时

在线时间

版主

无线哥

技术达人灌水天才高级工程师

注册时间
2009-2-13
金币
6756 个
威望
115 个
荣誉
32 个
累计签到:2 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2009-5-7 14:35 |显示全部楼层
LZ 你的文件发下 看看!!!
回复

使用道具 举报

1517

回帖

4777

积分

359 小时

在线时间

少校

注册时间
2008-6-11
金币
2927 个
威望
31 个
荣誉
7 个

尚未签到

发表于 2009-5-7 23:42 |显示全部楼层
貌似这个芯片就是AR9281,, A5 Q, D* \$ b( E* g- T
ATHEROS的官方驱动:http://partner.atheros.com/Drivers.aspx
$ p' m2 n; S1 I# E( t) mLinux内核里也有支持,就是ath9k
6 |0 F+ R$ @/ \0 ghttp://linuxwireless.org/en/users/Drivers/ath9k
5 C0 q2 m0 f( S- I楼主你再看看吧。
回复

使用道具 举报

6

回帖

13

积分

6 小时

在线时间

新兵上阵

注册时间
2009-4-8
金币
6 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2009-6-2 09:58 |显示全部楼层
未定义操作,请返回。
) U# A( L/ y6 V6 _9 q! o( Q不能下啊
回复

使用道具 举报

193

回帖

1956

积分

105 小时

在线时间

上尉

注册时间
2009-4-24
金币
1566 个
威望
20 个
荣誉
8 个

尚未签到

发表于 2009-6-2 10:15 |显示全部楼层
好象要编译才能用
回复

使用道具 举报

35

回帖

224

积分

14 小时

在线时间

少尉

注册时间
2009-5-14
金币
94 个
威望
6 个
荣誉
6 个

尚未签到

发表于 2009-6-3 19:04 |显示全部楼层
什么东东呀
回复

使用道具 举报

2

回帖

4

积分

1 小时

在线时间

预备兵

注册时间
2009-10-25
金币
2 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2009-10-25 20:50 |显示全部楼层
附件在哪里,没法下载啊。
回复

使用道具 举报

7431

回帖

1万

积分

688 小时

在线时间

上校

注册时间
2011-3-20
金币
7500 个
威望
2 个
荣誉
0 个
累计签到:3 天
连续签到:1 天
[LV.20]漫游旅程
发表于 2011-8-20 20:28 |显示全部楼层
大梦谁先觉?平生我自知
回复

使用道具 举报

1590

回帖

6819

积分

1104 小时

在线时间

中校

注册时间
2011-8-20
金币
4978 个
威望
19 个
荣誉
0 个
累计签到:419 天
连续签到:0 天
[LV.730]常住居民
发表于 2011-8-25 19:11 |显示全部楼层
回复一下,学习学习。。。。。。
回复

使用道具 举报

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

本版积分规则

Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2026-5-23 09:48

返回顶部 返回列表