QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2613|回复: 0

给内核打补丁patch命令问题?

[复制链接]
发表于 2008-9-6 21:52:23 | 显示全部楼层 |阅读模式
如果要给内核打补丁的话,首先要下载内核及其补丁文件,然后用patch给内核打补丁,但是有个问题搞不懂,patch后面接的参数p0、p1、p2是什么意思?还有我用这个命令给系统打补丁的时候提示很多要按‘y’或者‘n’的东东出来,本人英文水平有限看不懂啥意思!!?
就像下面这样

  1. dwj@beyond:/tmp$ patch -p0 < /home/dwj/Downloads/patch-2.6.26.3
  2. The next patch would delete the file a/Documentation/ftrace.txt,
  3. which does not exist!  Assume -R? [n]
  4. Apply anyway? [n]
  5. Skipping patch.
  6. 1 out of 1 hunk ignored
  7. can't find file to patch at input line 1364
  8. Perhaps you used the wrong -p or --strip option?
  9. The text leading up to this was:
  10. --------------------------
  11. |diff --git a/Documentation/networking/udplite.txt b/Documentation/networking/udplite.txt
  12. |index 3870f28..855d8da 100644
  13. |--- a/Documentation/networking/udplite.txt
  14. |+++ b/Documentation/networking/udplite.txt
  15. --------------------------
  16. File to patch:
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 05:47 , Processed in 0.060013 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表