From Fedora Project Wiki

No edit summary
No edit summary
 
Line 10: Line 10:


http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/kernel-2.6.27.4-58.fc10.src.rpm
http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/kernel-2.6.27.4-58.fc10.src.rpm
http://download.fedora.redhat.com/pub/fedora/linux/development/x86_64/os/Packages/kernel-firmware-2.6.27.4-58.fc10.noarch.rpm
http://download.fedora.redhat.com/pub/fedora/linux/development/x86_64/os/Packages/kernel-firmware-2.6.27.4-58.fc10.noarch.rpm



Latest revision as of 08:30, 30 October 2008

Hi! My name is Tyler. I am a Fedora user and this is my page.


Installing 2.6.27 kernel in F9

If you are an Atheros N card holder or just want to use a 2.6.27 kernel in Fedora 9, these are the steps I went through.

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/fedora/linux/development/source/SRPMS/kernel-2.6.27.4-58.fc10.src.rpm

http://download.fedora.redhat.com/pub/fedora/linux/development/x86_64/os/Packages/kernel-firmware-2.6.27.4-58.fc10.noarch.rpm

Next, make sure the correct tools are installed.

yum install rpmdevtools -y

Next up, install the kernel source package(this will extract the source code)

rpm -Uvh kernel-2.6.27.4-58.fc10.src.rpm
cd /usr/src/redhat/SPECS

And then build the rpm

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

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.

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

gedit /boot/grub/menu.1st

Copy the section, and paste it in here

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.

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


Reboot, and enjoy!