往Atheros AR9280中烧写wifi模块过程

1.      ubnt下将ath9k,mac80211,include\net中的代码替换,位置分别在:

ath9k:

backfire1—backfire—build_dir—linar71xx—compat—driver—net—wireless—ath—ath9k

mac80211:

……                                    …… --net—mac80211

net:

……                                    ……--include—net

2.      --cd backfire的地址

--sudo make V=99

3.      编译好后,在backfire1—backfire—bin—ar71xx中获取烧写系统的文件:

openwrt-ar71xx-ubnt-bullet-m-squashfs-factory

再在packages文件夹中获取两个模块的文件:(以后修改ath9k,mac80211代码编译后只需要烧写这两个模块,不用每次都烧系统、web配置了)

kmod-ath9k_2.6.32.27+2011-11-15-1_ar71xx.ipk

kmod-mac80211_2.6.32.27+2011-11-15-1_ar71xx.ipk

4.      烧写系统:长按reset键,灯全亮后松手,cmd下输入:

tftp  -i  192.168.1.20 put  (把系统文件拖进来)

5.      web配置:打开ie,进入192.168.1.1

a)        密码设为s

b)        无线开启、模式设置为adhoc模式,网络采用新定义的wlan

c)        设置wlan地址为192.168.10.1(入网为10.2),lan地址为192.168.1.1(入网为2.1,设置之后需要修改主机IP地址为192.168.2.10,默认网关为2.1,之后再从新进入)

d)        设置防火墙全部打开

e)        设置静态路由:

lan:192.168.2.1    255.255.255.0          192.168.10.2

wlan:同上(入网的话就是1.1,10.1)

6.      打开SecureCRT,输入帐号root密码s进入超级终端

dmesg:查看打印的信息( printk(“…”); )

iw dev wlan0 station dump查看wlan端口信息(接受发送数据速率,包数等)

iw dev wlan0 set bitrates legacy-2.4 54设置速率为54Mbps

7.      如果需要烧写ath9k,mac80211模块,输入以下命令:

rmmod ath9k

rmmod mac80211

opkg remove kmod-ath9k

opkg remove kmod-mac80211 –force-depends

打开hfs虚拟服务器,把那两个模块文件拖进去,修改ip地址为1.10,复制此时文件的网络地址

opkg install 将复制的mac80211的地址加进来

opkg install 将复制的ath9k的地址加进来

reboot

Atheros AR8131 网卡驱动下载地址:(包括windows 驱动 和 Linux驱动) http://partner.atheros.com/Drivers.aspx Atheros AR9285无线网卡驱动,由开源项目MadWifi支持 在sourceforge搜索MadWifi可以找到: http://sourceforge.net/projects/madwifi/ 最新的Atheros无线网卡驱动主页: http://madwifi-project.org/ 对于新版本linux kernel 2.6.25之后(现在都是这个以上的内核),要用新的current版本。 http://snapshots.madwifi-project.org/madwifi-0.9.4-current.tar.gz In case you use kernel 2.6.25 or newer, you need to get this snapshot of the madwifi-0.9.4 branch instead of the v0.9.4 release! That snapshot is basically v0.9.4 plus compilation fixes for recent kernels. Atheros无线网卡驱动介绍: http://wireless.kernel.org/en/users/Drivers/Atheros AR9285无线网卡驱动 http://wireless.kernel.org/en/users/Drivers/ath9k Any distribution shipping a kernel >= 2.6.27 will have ath9k present but the ath9k driver on 2.6.32 is the oldest one recommended, anything older than that is completely unsupported. Below is a list of the minimal distribution requirements to either use ath9k from 2.6.27 or from compat-wireless, which lets you install newer drivers on older kernels. Ubuntu Intrepid (8.10) Fedora Core 10 openSUSE 11.1 Mandriva Linux 2009.0 (formally known as Mandrake Linux) ARCH Linux Gentoo Linux Red Flag Linux 7.0 (based on Fedora 10) RHEL5 2.6.18 kernel being tested When it went in ath9k was announced to have been merged into Linux-2.6.27-rc3 by Linus on Tue, 12 Aug 2008 19:33:16 -0700 (PDT), and consisted of 58.8% of the entire rc3 patch. Early distributions which picked it up OpenWrt became the first distribution to pick up ath9k and contribute to it.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值