[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

2.4 kernel on FC2 - how I did it

I have seen some questions about installing a 2.4 kernel on
fedora core 2 ( fc2 ) when searching on google on that topic.
But I didn't find any detailed instructions about it.

Anyway, here's a sketch of how I did it. Warning!: I haven't verified
the correctness of these instructions.

It seems that you need to install gcc32 to build a 2.4 kernel.
That piece of advice I read here:


rpmbuild --rebuild gcc32-3.2.3-6.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/gcc32-3.2.3-6.i386.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/gcc32-debuginfo-3.2.3-6.i386.rpm

( You probably don't need the policy rpm package if you're skipping the
2.6 kernel. I removed it. But if I would do this installation procedure
once more, I would try to keep it. The reason I removed it was because
of a rpm dependency problem. I don't remember the details. It may be
needed for booting up in 2.6 kernel ( I haven't verified that ). So this
step might render your machine unbootable. Just do it if you can handle
a rescue cd. Tell me if you managed to skip this step. )
rpm -e policy


Find out what architecture you're having right now:
rpm -q --qf "%{arch}\n" kernel

Use that for --target

rpmbuild --rebuild --target i686 kernel-2.4.22-1.2188.nptl.src.rpm

rpm -i --oldpackage

rpm -i --oldpackage

( I don't remember if I rebooted inte the 2.4 kernel at this point or
not )

You have to rebuild the kernel-module-alsa package. I'm not
sure about alsa-driver, alsa-lib, alsa-driver-debuginfo, alsa-utils. But
it won't hurt if you rebuild them too. 


rpmbuild --rebuild --target i686 --define 'kernel 2.4.22-1.2188.nptl'

rpm -Uvh
rpm -Uvh --replacefiles
rpm -Uvh

rpmbuild --rebuild alsa-lib-1.0.4-1.1.fc1.fr.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/alsa-lib-*

rpmbuild --rebuild alsa-utils-1.0.4-1.1.fc1.fr.src.rpm

rpm -Uvh /usr/src/redhat/RPMS/i386/alsa-utils-*

The /etc/modules.conf is named /etc/modprobe.conf for the 2.6 kernel.
If you're lucky just do
cp /etc/modprobe.conf /etc/modules.conf

You probably, though, have to edit that /etc/modules.conf to fit your
needs. Maybe it's a better way to find a /etc/modules.conf from an older
redhat installation to have as starting point for your editing instead
copying from /etc/modprobe.conf.

Boot up into the 2.4 kernel and if everything works nice,

edit /boot/grub/grub.conf
and change default=1
to default=0

I wrote these instructions rather quickly as a sketch. If I missed 
something please tell me.

Erik Sjölund

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]