Re: Problem applying Patch to linux 2.6 kernel

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

 



On 3/13/06, swapnil <[email protected]> wrote:
>
> hello,
> I am trying to apply the patch to linux 2.6 kernel on linux fedora core 4.
>
> As per Kernel-HOWTO I should do the following:
> i have downloaded the patch "patch-2.6.15.bz2" from www.linuxhq.com site
> ,kept that patch in /usr/src.
> Changed dir using cd /usr/src and did a
> bzip2 -dc patch-2.6.15.bz2 | patch -p0.
>
> I followed the instructions mentioned, the following happens:
>
> # bzip2 -dc patch-2.6.15 | patch -p0
> can not find file to patch at input line 5 Perhaps you used the wrong -p or

change into the dir holding the actual kernel source - like
~/download/linux-2.6.14/ or wherever you store your kernel source,
then apply the patch with  patch -p1

> --strip option?
> The text leading up to this was:
> --------------------------
> |diff --git a/Documentation/hwmon/it87 b/Documentation/hwmon/it87 index

As you can see from the path, the diff was generated between two dirs
named "a" and "b", since your kernel is not stored in a dir called "b"
-p0 won't work, instead change into the root of the source dir and
tell patch to strip the first dir with -p1.

>
> What steps I am doing wrong while applying the kernel patch?
> Please let me know how can apply the above mentioned patch to mykernel...
> and why I am getting the above mentioned error message...
>
> My current kernel version is 2.6.11-1.1369_FC4 and I am trying to apply
> 2.6.15 kernel patch.
> Is it necessary to apply patches such as 2.6.12,2.6.13,2.6.14 in-order
> before I will have to apply 2.6.15 kernel patch or should I apply 2.6.15
> kernel patch directly without applying intermediate patches?
>
1) the 2.6.15 patch applies to 2.6.14, *not* to 2.6.11, to go from
2.6.11 to 2.6.15 you need to first apply the 2.6.12 patch, then the
2.6.13 patch, then 2.6.14 and finally 2.6.15.

2) don't apply patches for the vanilla kernel to vendor supplied
kernel sources. Vendors, such as RedHat, usually patch the vanilla
kernel with patches of their own, so the vanilla patches will no
longer apply.
Either use vanilla kernels or vendor kernels - don't mix.

>
> Please suggest me to solve this patching problem.
>
It's documented in the kernel source :
http://sosdg.org/~coywolf/lxr/source/Documentation/applying-patches.txt

--
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux