Ubuntu8.04 Atheros AR242x无线网卡驱动成功安装

来源:互联网 发布:淘宝发短信软件 编辑:程序博客网 时间:2024/06/10 04:15
被无法找到无线网卡的问题困扰了2天了,之前使用ndiswrapper安装过windows下的驱动,但还是无法找到无线网卡。今天在ubuntu.org.cn上发现Atherors AR242x的无线网卡在ubuntu中就是无法显示出来,但给出的解决方案的链接却不发打开。于是,自己goolgle一把,发现http://ubuntuforums.org/showthread.php?t=902860讨论了这个问题,并且有人给出了详细的步骤,现摘录如下:

First under System/Administration/HarwareDrivers disable both the Atheros HAL and the Atheros wireless thing and then reboot.

The kernel headers and the compiler are needed to build this driver soI started by installing build-essential. In a terminal window(Applications/Accessories/Terminal) enter:

Code:
sudo apt-get install build-essential
The driver code will be downloaded with the subversion source code manager so I installed subversion:

Code:
sudo apt-get install subversion
I needed a place to put the driver source without mixing it up with other stuff so I changed directory to my home directory:

Code:
cd ~
Created a directory:

Code:
mkdir madwifi
And changed to the new dirctory:

Code:
cd madwifi
Use subversion to download (checkout) a copy of the code:

Code:
svn co https://svn.madwifi.org/madwifi/branches/madwifi-hal-0.10.5.6
The above command failed for me at first because subversion couldn't find svn.madwifi.org
Madwifi will probably have their DNS problems worked out by the timeyou read this. But if not then see the section at the bottom of thispost titled "Cant find svn.madwifi.org" for a solution beforecontinuing.

After the driver code is downloaded by subversion, change to the directory, which should be madwifi-hal-0.10.5.6

Code:
cd madwifi-hal-0.10.5.6
Run the make script to have the compiler build the driver:

Code:
make
Install the driver

Code:
sudo make install
Add the Atheros kernel module to the list of modules to beautomatically loaded at boot by adding "ath_pci" (without the quotes)to the end of the /etc/modules file. I used the vi editor which I won'tdescribe here. Gedit is probably easy to use so try:

Code:
sudo gedit /etc/modules
Now you can reboot and it should work. To get it working without a reboot you need to load the module manually:

Code:
sudo modprobe ath_pci
That should do it. The little wireless button seems to alwaysstay lit orange. When I press it it seems to disable the wireless butit still stays lit orange. WPA works for me. I assume WEP will also. Ihaven't tried WPA2



CANT FIND svn.madwifi.org

If subversion has a hard time finding svn.madwifi.org then add it's IP address to your hosts file. I found this page http://madwifi.org/ticket/1982at madwifi.org that gives the IP address 217.24.1.142 ofsvn.madwifi.org in one of the last messages. I tried just givingsubversion the command to connect to the IP address instead of thedomain name, but it failed before finishing the checkout. Edit the file/etc/hosts and add "217.24.1.142 svn.madwifi.org" (without the quotes).I added it just after the 127.0.1.1 line

Code:
sudo gedit /etc/hosts
Now you can continue with the subversion checkout. You shouldprobably remove this line from your hosts file when you're done withthis so that if you want to go back there some day and they've moved itthen DNS will give the most recent IP address.
原创粉丝点击