红联Linux门户
Linux帮助

fedora 9 如何打内核补丁?

发布时间:2008-10-21 22:52:20来源:红联作者:rgr
我下了patch-2.6.27.2,放到/usr/src/kernels,下然后进入./2.6.26.5-45.fc9.i686
[root@localhost 2.6.26.5-45.fc9.i686]# patch -p1 < ../patch-2.6.27.2
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
|index 65a0c1b..f509cfc 100644
|--- a/arch/x86/kernel/alternative.c
|+++ b/arch/x86/kernel/alternative.c
--------------------------
File to patch:

貌似是没找到替换的文件,是不是源码树不在这里,要怎么解决?
文章评论

共有 1 条评论

  1. rtl 于 2008-10-21 23:03:26发表:

    patch-2.6.27.2 用在 2.6.26 的内核上 瀑布汗
    patch-2.6.27.2 只能用在 linux-2.6.27.tar.gz 或 linux-2.6.27.tar.bz2
    patch文件均??相?的?件包 ,否??不能patch、patch后不正?、或者patch出?是?的

    [ 本帖最后由 rtl 于 2008-10-21 23:07 编辑 ]