Howto: ath9k in Fedora.

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
tylerwylie
Junior Member
Junior Member
Posts: 475
Joined: Wed Dec 19, 2007 5:40 pm
Location: Champaign, IL
Contact:

Howto: ath9k in Fedora.

#1 Post by tylerwylie » Thu Oct 30, 2008 2:45 pm

If you are an Atheros N card holder, and can't stand Ubuntu like me, I've made a little howto on using the ath9k driver in Fedora on a 2.6.27 kernel.

First you'll need to gather the source RPM for the kernel, as well as the kernel-firmware package, available here:

http://download.fedora.redhat.com/pub/f ... 10.src.rpm

http://download.fedora.redhat.com/pub/f ... noarch.rpm

Next, make sure the correct tools are installed.

Code: Select all

yum install rpmdevtools -y
Next up, install the kernel source package(this will extract the source code)

Code: Select all

rpm -Uvh kernel-2.6.27.4-58.fc10.src.rpm
cd /usr/src/redhat/SPECS
And then build the rpm

Code: Select all

rpmbuild -ba kernel.spec
Now we wait, this will take a while. Took over a couple hours on my Thinkpad T61. After this is completed, you'll first want to back up your /boot, as the new install erases your current /boot

Code: Select all

cp -a /boot ~/bootbackup
Now the kernel package has a few requirements, if you have 3rd party drivers installed you will need to build those from source. It also tries to pull in a few dependencies that I discovered are not needed at the moment.

Remember to enter your appropriate architecture where applicable.

Code: Select all

rpm -Uvh --force --nodeps ../RPMS/x86_64/kernel-2.6.27.4-58.fc9.x86_64.rpm ../RPMS/x86_64/kernel-devel-2.6.27.4-58.fc9.x86_64.rpm
Now you'll want to copy the entry for the 2.6.27 kernel into your back up menu.1st

Code: Select all

gedit /boot/grub/menu.1st
Copy the section, and paste it in here

Code: Select all

gedit /root/bootbackup/boot/grub/menu.1st
Then overwrite the new one, and add the old kernel images that got erased as well as initrd images.

Code: Select all

cp /root/bootbackup/boot/grub/menu.1st
cp /root/bootbackup/boot/*.x86_64 /boot/
cp /root/bootbackup/boot/*.img /boot/

Reboot, and enjoy!
Samuel Adams wrote:The natural liberty of man is to be free from any superior power on Earth, and not to be under the will or legislative authority of man, but only to have the law of nature for his rule.

Post Reply

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 1 guest