Page 1 of 1

Howto: ath9k in Fedora.

Posted: Thu Oct 30, 2008 2:45 pm
by tylerwylie
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!