Thursday, September 18, 2008

Rebuilding kmod for latest kernel.

Blob is bad but life is a bitch . After pushing my system from 2.6.25 to 2.6.26 the kmod-madwifi module borked out thus no wifi for me using internal system.

So i decided to pullof the madwifi src from livna-testing . Before that reason why i admire yet hate my wireles device is here.

We cannot use the source from livna repo (since it's using an unpatched madwifi) instead we need to download it from livna-testing .

Prelim:

$ yum install rpmdevtools kmodtool kernel-devel
$ rpmdev-setuptree /* as normal user not root. */

Steps:

$ cd ~/rpmbuild/SRPMS/
$ yumdownloader --disablerepo=* --enablerepo=livna-testing --source kmod-madwifi
$ rpmbuild --rebuild madwifi-kmod-0.9.4-49.r3698.lvn9.src.rpm --define "kernels $(uname -r)" --target "$(uname -m)"

Simple explanation

--define refering to which kernel
--target refering to which architecture/platform (i386,ppc,i686,x86-64)

Now go to ~/rpmbuild/RPMS/i686 thus the package is there.. u can use rpm -Uvh or since i love yum so much.

$ yum -C --nogpgcheck localinstall kmod-madwifi-2.6.26.3-29.fc9.i686-0.9.4-49.r3698.fc9.i686.rpm

Or if all of this sounds giberish and you are on kernel 2.6.26.3-29 here`s the precompiled RPM

No comments: