|
http://ubuntuforums.org/archive/index.php/t-105437.html HOWTO: Latest madwifi svn snapshot Lambert
December 18th, 2005, 12:39 PM
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.php?t=113405&highlight=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 (http://ubuntuforums.org/showthread.php?t=75451i) 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 (http://madwifi.org/wiki/ngFeatures). 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 (http://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 (http://ubuntuforums.org/showthread.php?t=78466&highlight=fglrx) HOWTO: latest nvidia (http://ubuntuforums.org/showthread.php?t=75074&highlight=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 sudo apt-get --purge linux-restricted-modules-`uname -r` 2. Install the following packages sudo apt-get install build-essential linux-headers-`uname -r` gcc-3.4 subversion sharutils 1.0 Download cd /usr/src sudo svn checkout http://svn.madwifi.org/trunk madwifi-ng move into the directory that was created 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 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?p=628632&postcount=35 Now sudo make 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 sudo make install You may get this warning 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. (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 sudo modprobe ath_pci 1.4 Create the interface 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 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 cd /usr/src/madwifi-ng and sudo make uninstall Notes If you want to use wpa encryption with -ng driver you will need latest wpasupplicant. See instructions here (http://madwifi.org/wiki/UserDocs/802.11i). |
