Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

howto apply 2.6.x.y on 2.6.x

0 views
Skip to first unread message

lovecrea...@gmail.com

unread,
Nov 19, 2009, 3:15:39 AM11/19/09
to
can I apply patch-2.6.26.1.bz2 on kernel linux-2.6.26? I failed to do
so with patch-kernel utility.

$ ls
linux-2.6.26 patch-2.6.26.1 patch-2.6.26.1.bz2
$ linux-2.6.26/scripts/patch-kernel linux-2.6.26 patch-2.6.26.1
Current kernel version is 2.6.26 ( Rotary Wombat)
cannot find patch file: patch-2.6.27
$

lovecrea...@gmail.com

unread,
Nov 19, 2009, 3:21:18 AM11/19/09
to
On Nov 19, 4:15 pm, "lovecreatesbea...@gmai1.c0m"

can it be done by patch command on command line other than `patch-
kernel'. linux-2.6.26/README says patch `2.6.x.y' can be directly
applied to kernel `2.6.x':

" Unlike patches for the 2.6.x kernels, patches for the 2.6.x.y
kernels
(also known as the -stable kernels) are not incremental but instead
apply
directly to the base 2.6.x kernel.
"

lovecrea...@gmail.com

unread,
Nov 19, 2009, 3:49:50 AM11/19/09
to
On Nov 19, 4:21 pm, "lovecreatesbea...@gmai1.c0m"

I tried it, and it works. But don't know why patch-kernel can't do the
patching.

$ pwd
/home/jhl/working/tmp/linux-2.6.26
$ bzip2 -dc ../patch-2.6.26.1.bz2 | patch -p1
..
$ bzip2 -dc ../patch-2.6.26.1.bz2 | patch -p1 -R
..
$

Tilman Schmidt

unread,
Nov 22, 2009, 7:45:29 PM11/22/09
to

The patch-kernel script is not the optimal tool for that.
You'd normally just do:

bzcat patch-2.6.26.1.bz2 | ( cd linux-2.6.26 ; patch -p1 )

If you absolutely want to do it with patch-kernel, have a
look at the usage text at the beginning of the script.
Hint: the second argument is "patchdir", not "patchfile".

HTH
T.

0 new messages