[问题]Atheros Communications Inc. AR242x

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
hj_545
帖子: 134
注册时间: 2008-02-12 19:09
联系:

[问题]Atheros Communications Inc. AR242x

#1

帖子 hj_545 » 2008-08-07 16:35

这个无线网卡驱动怎么装?
网上找到FEDORA安装的方法,对吗?UBUNTU能用马?
Last week I helped a friend configure wireless driver on his brand new HP Compaq Notebook PC. Fedora 9 X86_64 did not detect the wireless device automatically.

The first thing I did was list all PCI devices on the laptop PC.
lspci

At the end of the output I noticed
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

MadWifi provides Linux kernel drivers for wireless LAN devices with Atheros chipsets. Therefore my next task was to install MadWifi on the notebook PC. Before installing the kernel drivers it is recommended to update all the packages on the computer, especially the kernel. I updated all the packages.

rpm.livna.org repository for Fedora contains the MadWifi rpm. I enabled the rpm.livna.org repository on the laptop and installed the MadWifi rpm using
yum install kmod-madwifi

and restarted the computer. The wireless device was not detected. I also tried aliasing wifi0 and ath0 to ath_pci. Nothing solved the problem. I uninstalled kmod-madwifi and recompiled madwifi. At this point system-config-network detected the hardware device as "other wireless device". But I could not connect to the Wifi network.

After researching for a while on the Internet, I noticed many people had difficulty obtaining the proper driver for Atheros AR242x wireless chipset on 64 bit Linux. My next best available option was to use Fedora 9 i386 on the laptop PC. I tried the rpm.livna.org MadWifi rpm again. It failed once again. I removed kmod-madwifi and rpm.livna.org and recompied madwifi.

These are the steps that actually worked. I launched the terminal and switched to super user mode using su -. The remaining steps are documented below.

Step 1. Download the latest madwifi snapshot from madwifi.org.
wget http://snapshots.madwifi.org/special/ma ... 007.tar.gz

Step 2: Extract the tarball and change directory
tar -zxvf madwifi-ng-r3366+ar5007.tar.gz

Step 3: Change directory
cd madwifi-ng-r3366+ar5007

Step 4: Install the necessary tools to compile madwifi.
yum install gcc kernel-devel kernel-headers make

Step 5: make

Step 6: make install

Step 7: Restart the computer

Step 8: Configure the network using either system-config-network or NetworkManager

I could see the ath5k and ath_pci modules in the Linux Kernel using lsmod.

$lsmod | grep ath

dm_multipath 18056 0
dm_mod 49236 2 dm_mirror,dm_multipath
ath5k 110344 0
mac80211 181992 1 ath5k
cfg80211 25096 2 ath5k,mac80211
ath_rate_sample 15104 1
ath_pci 162092 0
wlan 206008 5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 281184 3 ath_rate_sample,ath_pci

If you follow the same steps and do not see the ath_pci kernel module, try
modprobe ath_pci

and restart the computer.

You may also try
modprobe ath5k

and restart the computer.
hj_545
帖子: 134
注册时间: 2008-02-12 19:09
联系:

#2

帖子 hj_545 » 2008-08-08 9:15

之前下载madwifi驱动一直不行,后来下载madwifi-hal编译安装就可以了,具体过程如下:
First go to System> Administration-> Hardware Drivers and make sure the following option is ticked (enabled)

Atheros Hardware Access Layer (Hal)


sudo apt-get install build-essential

wget http://snapshots.madwifi.org/madwifi-ha ... 716.tar.gz

tar xvfz madwifi-hal-0.10.5.6-r3772-20080716.tar.gz

cd madwifi-hal-0.10.5.6-r3772-20080716

sudo make && sudo make install
sudo modprobe ath_pci

然后重新启动就可以了
根据上面的方法安装后,网卡设置那里多了无线网卡的设置,可是如论怎么设置,无线网卡的灯都是不亮的!
我已经把有线的给拔了,还是不亮灯!
xxjhappy
帖子: 11
注册时间: 2006-01-11 10:52

#3

帖子 xxjhappy » 2008-08-10 19:01

楼上的请参考这篇文章http://madwifi.org/wiki/UserDocs/EnableLEDs
我是将以下两行写到

代码: 全选

dev.wifi0.ledpin = 3
dev.wifi0.softled = 1
/etc/sysctl.conf文件中成功解决无线网卡灯的问题的,祝你好运
hj_545
帖子: 134
注册时间: 2008-02-12 19:09
联系:

#4

帖子 hj_545 » 2008-08-14 18:48

xxjhappy 写了:楼上的请参考这篇文章http://madwifi.org/wiki/UserDocs/EnableLEDs
我是将以下两行写到

代码: 全选

dev.wifi0.ledpin = 3
dev.wifi0.softled = 1
/etc/sysctl.conf文件中成功解决无线网卡灯的问题的,祝你好运
解决灯问题后,能上网吗?
xxjhappy
帖子: 11
注册时间: 2006-01-11 10:52

#5

帖子 xxjhappy » 2008-08-17 11:18

hj_545 写了:
xxjhappy 写了:楼上的请参考这篇文章http://madwifi.org/wiki/UserDocs/EnableLEDs
我是将以下两行写到

代码: 全选

dev.wifi0.ledpin = 3
dev.wifi0.softled = 1
/etc/sysctl.conf文件中成功解决无线网卡灯的问题的,祝你好运
解决灯问题后,能上网吗?
当然可以,不能上网,亮个灯有什么用
回复