Ubuntu8.04 Atheros AR242x無線網絡卡驅動成功安裝
阿新 • • 發佈:2019-01-08
被無法找到無線網絡卡的問題困擾了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 so I started by installing build-essential. In a terminal window (Applications/Accessories/Terminal) enter:
Code:
The driver code will be downloaded with the subversion source code manager so I installed subversion:
Code:
Code:
Code:
And changed to the new dirctory:
Code:
Code:
Madwifi will probably have their DNS problems worked out by the time you read this. But if not then see the section at the bottom of this post titled "Cant find svn.madwifi.org" for a solution before continuing.
After the driver code is downloaded by subversion, change to the directory, which should be madwifi-hal-0.10.5.6
Code:
Run the make script to have the compiler build the driver:
Code:
Code:
Code:
Code:
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/1982 at madwifi.org that gives the IP address 217.24.1.142 of svn.madwifi.org in one of the last messages. I tried just giving subversion the command to connect to the IP address instead of the domain 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:
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 so I started by installing build-essential. In a terminal window (Applications/Accessories/Terminal) enter:
Code:
sudo apt-get install build-essential
Code:
sudo apt-get install subversionI 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
Code:
cd madwifiUse subversion to download (checkout) a copy of the code:
Code:
svn co https://svn.madwifi.org/madwifi/branches/madwifi-hal-0.10.5.6The 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 time you read this. But if not then see the section at the bottom of this post titled "Cant find svn.madwifi.org" for a solution before continuing.
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
Code:
makeInstall the driver
Code:
sudo make installAdd the Atheros kernel module to the list of modules to be automatically 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't describe here. Gedit is probably easy to use so try:
Code:
sudo gedit /etc/modulesNow 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_pciThat should do it. The little wireless button seems to always stay lit orange. When I press it it seems to disable the wireless but it still stays lit orange. WPA works for me. I assume WEP will also. I haven'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/1982 at madwifi.org that gives the IP address 217.24.1.142 of svn.madwifi.org in one of the last messages. I tried just giving subversion the command to connect to the IP address instead of the domain 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/hostsNow you can continue with the subversion checkout. You should probably remove this line from your hosts file when you're done with this so that if you want to go back there some day and they've moved it then DNS will give the most recent IP address.