backporting 2.6.18 to sarge
Hi,
I have just succesfully backported 2.6.18, and for future reference I
have written down all the things that I needed to do.
This instruction is unmodified, so it's more than sure that
- paths will be different
- may not work for you, because I have some backported packages that you
don't have, so you will need to find out the problem yourself, and
install needed packages.
I'm using hibernate from suspend2.net, this instruction includes
patching the kernel. I'm using nvidia drivers, adding them is here too.
Also I'm modifying build-depends by hand, so this is not a clean
solution, a bugreport should perhaps be submitted....
More (necessary for you) info about getting hibernate to work on sarge
is here:
http://wiki.suspend2.net/DistroAndHardwareSetup/DebianInitrd
first you need to modify relevant line in /etc/apt/sources.list and
change it to:
deb-src ftp://ftp.pl.debian.org/pub/debian/ sid main non-free contrib
The instructions:
=======================================================
# DON'T DO THAT IF YOU DON'T UNDERSTAND EVERY STEP HERE
# chances are that you are going to break something
# You need to understand this because it WILL be
# different on your computer
apt-get source kernel-package
cd kernel-package-10.062
fakeroot debian/rules binary
sudo dpkg -i ../kernel-package_10.062_all.deb
# also backport findutils in a similar manner
aptitude install python2.4
apt-get source linux-kbuild-2.6.18
cd linux-kbuild-2.6-2.6.18
sudo apt-get build-dep linux-kbuild-2.6.18
mkdir debian/stamps
fakeroot debian/rules binary
dppkg -i ../*deb
#####################################################
apt-get source linux-image-2.6.18-1-k7
vim /var/lib/apt/lists/ftp.pl.debian.org_pub_debian_dists_sid_main_source_Sources
# edit this file to:
# replace build-dep for linux-image-2.6.18-1-k7 from python2.4-minimal to python2.4
# replace build-dep from gcc-4.1 to gcc-3.3
sudo apt-get build-dep linux-image-2.6.18-1-k7
# download patch from http://www.suspend2.net/
# copy the actual patch file to ./debian/patches
# add this patch file to /debian/patches/series/1
# remove patches related to vserver and xen from /debian/patches/series/*
vim debian/control
:%s/gcc-4\.1/gcc-3.3/g
:%s/python2.4-minimal/python2.4/g
vim ./debian/arch/defines
:%s/gcc-4\.1/gcc-3.3/g
# remove all archs except for i386
# delete xen and vserver
vim ./debian/arch/config
# add to the top:
CONFIG_SUSPEND2=y
CONFIG_SUSPEND2_FILEWRITER=y
CONFIG_SUSPEND2_SWAPWRITER=y
CONFIG_SUSPEND2_USERSPACE_UI=y
CONFIG_CRYPTO_LZF=y
vim ./debian/arch/i386/defines
# delete all except k7 (or i686 you you are not using AMD processor...)
fakeroot debian/rules binary
sudo dpkg -i ../*deb
# correct /lib/modules/2.6.18-1-k7/build to point to YOUR build dir.
# simulateneously while doing 'sudo dpkg -i ../linux-image*deb'
vim /boot/config-2.6.18-1-k7
# fix by hand $UNAME_RELEASE (you will figure that out)
mkdir /home/janek/usr/deb-src/nvidia/nvidia-2.6.18-8774
cp /usr/src/nvidia-kernel-source.tar.gz /home/janek/usr/deb-src/nvidia/nvidia-2.6.18-8774/
cd /home/janek/usr/deb-src/nvidia
unp nvidia-kernel-source.tar.gz
export KSRC=/lib/modules/2.6.18-1-k7/build
export KVERS=2.6.18-1-k7
#fix the number from 8762 to 8774 in ./debian/changelog
debian/rules binary_modules
dpkg -i ../*deb
# it's possible that you will need to install the older (sarge) version of
# findutils I had some errors during bootup because of newer findutils.
--
Janek Kozicki |
Reply to: