Stock kernel Patches: |
|---|
| BadRAM-2.6.25.patch |
| BadRAM-2.6.24.patch **FIXED** (BadRAM-2.6.24.3.patch from Rick's web site (credit goes to Augusto Born de Oliveira) + minor white space fix BadRAM-2.6.24.3-white-space.patch) |
| BadRAM-2.6.23.patch |
| BadRAM-2.6.22.patch |
| BadRAM-2.6.21.patch |
| BadRAM-2.6.20.patch |
| BadRAM-2.6.19.1.patch **FIXED** (BadRAM-2.6.19.1.patch from Rick's web site (credit goes to Michal Schmidt) + header fix ups BadRAM-2.6.19.1-header-fixup.patch) |
fedora 8 |
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Starting fedora 8, kernel configs are applied differentially. The patch patches the base kernel config file whose name doesn't change every release. A new patch is needed only if new kernel from kernel.org is released (e.g. 2.6.23 to 2.6.24) (Not really true, as I learnt after kernel-2.6.23.9-85.fc8.src.rpm, check section below) |
||||||||||||||||
|
All patches on this page have been fixed on April 18th 2008 with a critical bug that caused crashes (especially for 64 bit machines).
Credit goes to Philippe Wautelet. Check this link for details.
while ((str = get_longoptions (str, 3, (int *) opts), *opts)) {
with this:
while ((str = get_longoptions (str, 3, (long *) opts), *opts)) {
These patches are meant to be applied to source rpm that you download from fedora (or a mirror) site. Follow the same compilation instruction after patch application.
Googling "compile kernel fedora way" will get you nice information about how to compile fedora kernel. I found http://www.howtoforge.com/kernel_compilation_fedora very informative.
Here are logical steps of compiling kernel-2.6.21-1.3228.fc7.BadRAM as an example:
rpm -ivv kernel-2.6.21-1.3228.fc7.src.rpm
patch -p1 < /tmp/kernel-2.6.21-1.3228.fc7.src.rpm.BadRAM.patch
Here is a tiny script that I use:
#!/bin/bash if [ 1 -ne $# ]; then echo "what kernel?" exit 0 fi cd rpmbuild.$1 diff -pruN orig patched > $1.BadRAM.patch rm -rf rpmbuild ../rpmbuild cd .. which fedora-buildrpmtree > /dev/null 2>&1 if [ $? -gt 0 ] then echo "no \"fedora-buildrpmtree\" found, falling back to \"rpmdev-setuptree\" (fedora 8 onwards)." rpmdev-setuptree else echo "found fedora-buildrpmtree" fedora-buildrpmtree fi rpm -i $1 cd rpmbuild patch -p1 < ../rpmbuild.$1/$1.BadRAM.patch cd SPECS if [ -e "kernel.spec" ] then time rpmbuild -ba --target=i686 --with baseonly kernel.spec else time rpmbuild -ba --target=i686 --with baseonly kernel-2.6.spec fi cd ../.. mv rpmbuild rpmbuild.$1An excellent hint from Mike Maravillo, add "--with baseonly" to your compilation command, that will skip kernel-debug, kernel-PAE, kernel-PAE-debug etc.
Follow this link for my Sony VAIO T260p story.