Jun 282008
 


MadWifi is one of the most advanced WLAN drivers available for Linux. With openSUSE 11.0 users of systems with Atheros wireless card are not able to install and use Madwifi drivers to set the Atheros Wireless Card.

madwifi 0.9.4-1-i586 may install OK but you may face the following error when trying to install madwif-kmp-pae 0.9.4_2.6.25_26-1-i586

“nothing provides kernel(vmlinux)=1f623d7fcfa1b112 needed by madwifi-kmp-pae 0.9.4_2.6.25_26-i586.”

To resolve this problem, simply rebuild the RPMs from the original source RPM packages.

So here is how it works.

Install Kernel Source and Kernel Syms package

To rebuild the madwifi Source RPMS, you need to have the

Kernel Source package (kernel-source)

Kernel Syms package (kernel-syms)

GNU C Compiler (gcc)

Make utility (make)

Switch user to root and install the above

SAIBABA:~# yast2 –install kernel-source kernel-syms gcc make

This should install the pre-requisites.

Download Source RPM packages

SAIBABA:~ #  wget http://madwifi.org/suse/11.0/src/madwifi-0.9.4-1.src.rpm

Rebuild RPMs

SAIBABA:~ #  rpmbuild –rebuild madwifi-0.9.4-1.src.rpm

This should rebuild the Madwifi RPMs from the source at save them at

/usr/src/packages/RPMS/i586

Change directory to the above and confirm if the following created

madwifi-0.9.4-1.i586.rpm
madwifi-debuginfo-0.9.4-1.i586.rpm
madwifi-debugsource-0.9.4-1.i586.rpm
madwifi-devel-0.9.4-1.i586.rpm
madwifi-kmp-debug-0.9.4_2.6.25.5_1.1-1.i586.rpm
madwifi-kmp-default-0.9.4_2.6.25.5_1.1-1.i586.rpm
madwifi-kmp-pae-0.9.4_2.6.25.5_1.1-1.i586.rpm
madwifi-kmp-xen-0.9.4_2.6.25.5_1.1-1.i586.rpm

Install Madwifi RPMS

Now confirm, the Kernel Version and the proceed to install the RPMs

SAIBABA:~ # uname -a

Install Madwifi

SAIBABA:~ # rpm -Uvh madwifi-0.9.4-1.i586.rpm

Install Madwifi-kmp

SAIBABA:~ # rpm -Uvh madwifi-kmp-pae-0.9.4_2.6.25.5_1.1-1.i586.rpm

Blacklist athk5k Module

echo “blacklist ath5k” >> /etc/modprobe.d/blacklist

Update Network Manager

Update the latest Networkmanager patch

SAIBABA:~ # yast2 –install knetworkmanager

Reboot your computer

SAIBABA:~ # reboot

Update Network Manager Setup

Once back after reboot, open YAST and open Yast – Network Devices – Network Settings. On the ‘Global options’ tab uncheck the “user controlled with networkmanager” option under Network Setup.

Delete any old wireless entry. To confirm that edit it and click on the hardware tab. The old one has the module name of ath5k. Now edit the new connection with the ath_pci module. Define all parameters for your local setup including encryption, DHCP etc. Save and exit. Logout and back into KDE.

This should work.