As every user has options with gnu/linux you can also see this howto. The instructions there will let you keep restricted modules working.
http://ubuntuforums.org/showthread.p...hlight=MADWIFI
This howto will install the latest svn snapshot of the madwifi-ng driver for pci devices based on the atheros chipset. The difference between this and the other howto on madwifi in this section is the other will update to the latest madwifi-old module and this installs madwifi-ng.
The newer features found in the -ng version can be found here.
This update is not necessary unless
1. your pci device is not working with current version that comes with breezy.
2. Or you can use if you removed restricted modules to use latest nvidia/fglrx drivers
3. You build a custom kernel but note these instructions do not include steps to properly make and install when using custom kernel. I can add these later as I'm not sure of all steps and currently don't have a custom kernel to work with. If somebody else wants to post some instructions, I'll edit them into the original post.
Note: madwifi does not currently support USB devices with the atheros chipset and the roadmap shows it will be sometime before USB support is built into the driver(version 2.0). You can watch progress at www.madwifi.org
Warning:
The atheros driver that comes with Breezy is part of the restricted-modules package. This will need to be removed before you can install the latest driver. All modules in this package will be removed and may affect areas such as your graphic driver. If you need to use a module in this package then you will also have to recompile and install that module. There are howtos on the latest nvidia and fglrx in the tips and tricks section.
Here are the modules in the restricted-module package
Currently the following modules are included:
- madwifi (Atheros)
- fglrx (ATI)
- nvidia
- fcdsl, fcdsl2, fcdslsl, fcdslslusb, fcdslusb, fcdslusb2, fcdslusba,
fcpci, fcpcmcia, fcpcmcia_cs, fcusb, fxusb (AVM ISDN)
- ltmodem (Winmodem)
HOWTO: latest fglrx
HOWTO: latest nvidia
.1 Preperation
You will need a working internet connection to complete this howto.
Basic knowledge of moving around in the terminal is required
1. Remove the following package
Code:
sudo apt-get --purge linux-restricted-modules-`uname -r`
2. Install the following packages
Code:
sudo apt-get install build-essential linux-headers-`uname -r` gcc-3.4 subversion sharutils
1.0 Download
Code:
sudo svn checkout http://svn.madwifi.org/trunk madwifi-ng
move into the directory that was created
Code:
cd /usr/src/madwifi-ng
1.1 Build
There is an error that comes up if you don't follow this step first.
Open Makefile.inc
Code:
sudo gedit Makefile.inc
towards the bottom is a line line that needs to be modified.
COPTS+= -Werror
change this line and remove the -Werror part so line now looks like this.
COPTS+=
This will not affect driver in anyway, it's just something in the way ubuntu built the kernel for breezy which will prevent installing the driver.
Note: I and others have been able to build, install, and use this driver with no problems but as provided by marcantonio, see about setting up file to ensure gcc-3.4 is used to build driver in this post.
http://ubuntuforums.org/showpost.php...2&postcount=35
Now
There will be some warnings but you can ignore those. Look for any errors as these will need to be addressed before moving on to next step.
1.2 Install
You may get this warning
Code:
WARNING:
It seems that there are modules left from previous MadWifi installations.
You should consider removing them before you continue, or else you might
experience problems during operation. Remove old modules?
[l]ist, [r]emove, [i]gnore or e[x]it (l,r,i,[x]) ?
You should remove with option r
If all goes well your last few lines should look like this.
Code:
(export MODULEPATH=/lib/modules/2.6.15-8-686/net; depmod -ae)
echo "KERNELRELEASE=2.6.15-8-686" > ./install.log
echo "DESTDIR=" >> ./install.log
1.3 Insert module
Code:
sudo modprobe ath_pci
1.4 Create the interface
Code:
wlanconfig ath0 create wlandev wifi0 wlanmode sta
You should now have the latest madwifi driver working. Just configure your network and connect.
If it does not then try to restart your network
Code:
sudo /etc/init.d/networking restart
or reboot after completing the next step.
2.0 Configure for boot
Edit Feb 4th: With latest driver, this part is no longer needed. Kept in howto for historical reference.
When you reboot the interface will not be set up. Add a line like this for the interface in the /etc/network/interfaces
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode sta
Example
iface ath0 inet dhcp
pre-up wlanconfig ath0 create wlandev wifi0wlanmode sta
wireless-essid xxxx
wireless-key xxxx
3.0 Uninstall
If you want to uninstall this module just move back to the directory
Code:
cd /usr/src/madwifi-ng
and
Code:
sudo make uninstall
Notes
If you want to use wpa encryption with -ng driver you will need latest wpasupplicant. See instructions here.
Bookmarks