André Berger wrote:
* Hugo Vanwoerkom (2007-06-07):
 André Berger wrote:
* Hugo Vanwoerkom (2007-06-05):
 André Berger wrote:
Let me give you an example to illustrate what I would like to know:
Given, kernel 2.6.22 was out, and 2.6.21.3 was the latest previous
stable kernel. Is there a patch against 2.6.21.3, for an easy upgrade
to 2.6.22?
 Are you referring to Debian packages or kernels from www.kernel.org?
Sorry: the kernel.org sources.
 The latter will publish a patch against 2.6.21 when 2.6.22 goes stable.
Could you point me to a URL please? Would I have to remove the
patches 1-3 (in my example) prior to using this patch against 2.6.21?
I've been using the incremental patches from
<http://www.kernel.org/pub/linux/kernel/v2.6/incr/>, but they only
work "within" a release cycle (2.6.21.1-2, for example). Not exactly
what I'm thinking of for my slow box.
 So here:
 http://www.kernel.org/
 they now have:
 The latest stable version of the Linux kernel is:      2.6.21.3
 and that last piece refers to:
 http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.21.3.bz2
 which is a patch against the 2.6.21 kernel.
 When 2.6.22 goes stable that line will read:
 The latest stable version of the Linux kernel is:       2.6.22
 and that last piece will refer *probably* to:
 http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.22.bz2
 which *still* is a patch against the 2.6.21 kernel.

The thing is: both patches seem to apply to 2.6.21 not 2.6.21.* (your
ex. 1). So I would have to downgrade to 2.6.21 in order to use any of
these. Right?


If you created *once*, and do not have the pieces anymore, a 2.6.21.*, then yes, you would have to downgrade to 2.6.21 for any of their patches to apply.

Below is the script that I use to build a kernel, from their patches since 2.6.9:

#!/bin/bash

set -x
FROMHD=hda6
ROOTDIR=`df / | xargs echo | awk '{ print $8 }' | cut -d / -f 3`
PLACE=/home/hugo/linux-2.6.21-2-build

cd $PLACE
tar -xjvf /hda10/backup.files/linux-2.6.9.tar.bz2
cd $PLACE/linux-2.6.9
patch -p1 < /hda10/backup.files/patch-2.6.10
cd $PLACE
mv $PLACE/linux-2.6.9 $PLACE/linux-2.6.10
cd $PLACE/linux-2.6.10
patch -p1 < /hda10/backup.files/patch-2.6.11
cd $PLACE
mv $PLACE/linux-2.6.10 $PLACE/linux-2.6.11
cd $PLACE/linux-2.6.11
patch -p1 < /hda10/backup.files/patch-2.6.12
cd $PLACE
mv $PLACE/linux-2.6.11 $PLACE/linux-2.6.12
cd $PLACE/linux-2.6.12
patch -p1 < /hda10/backup.files/patch-2.6.13
cd $PLACE
mv $PLACE/linux-2.6.12 $PLACE/linux-2.6.13
cd $PLACE/linux-2.6.13
patch -p1 < /hda10/backup.files/patch-2.6.14
cd $PLACE
mv $PLACE/linux-2.6.13 $PLACE/linux-2.6.14
cd $PLACE/linux-2.6.14
patch -p1 < /hda10/backup.files/patch-2.6.15
cd $PLACE
mv $PLACE/linux-2.6.14 $PLACE/linux-2.6.15
cd $PLACE/linux-2.6.15
patch -p1 < /hda10/backup.files/patch-2.6.16
cd $PLACE
mv $PLACE/linux-2.6.15 $PLACE/linux-2.6.16
cd $PLACE/linux-2.6.16
patch -p1 < /hda10/backup.files/patch-2.6.17
cd $PLACE
mv $PLACE/linux-2.6.16 $PLACE/linux-2.6.17
cd $PLACE/linux-2.6.17
patch -p1 < /hda10/backup.files/patch-2.6.18
cd $PLACE
mv $PLACE/linux-2.6.17 $PLACE/linux-2.6.18
cd $PLACE/linux-2.6.18
patch -p1 < /hda10/backup.files/patch-2.6.19
cd $PLACE
mv $PLACE/linux-2.6.18 $PLACE/linux-2.6.19
cd $PLACE/linux-2.6.19
patch -p1 < /hda10/backup.files/patch-2.6.20
cd $PLACE
mv $PLACE/linux-2.6.19 $PLACE/linux-2.6.20
cd $PLACE/linux-2.6.20
patch -p1 < /hda10/backup.files/patch-2.6.21

cd $PLACE
mv $PLACE/linux-2.6.20 $PLACE/linux-2.6.21
cd $PLACE/linux-2.6.21

exit





























--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to