[FSUG-Bangalore] Help needed : how to apply patch to linux kernel

rajkumar vbalakrishnasamy rajkumar.lynx at gmail.com
Sat Mar 6 12:13:42 IST 2010


Hi all,
     I need to install Gobohide tool in my Fedora core 11 system and i
download the software from http://www.gobolinux.org and extracted.Then i
navigated to the GoboHide/bin directory and executed the ./gobohide -h
command.The output is:
*
[root at localhost bin]# ls
go  gobohide
[root at localhost bin]# ./gobohide -h go
ioctl: Inappropriate ioctl for device
[root at localhost bin]#

*Then i noticed that i need to patch Linux kernel.So how to patch linux
kernel.And from which directory i have to patch Linux kernel.And this
command is right or wrong

patch -i /path/to/gobohide.patch -p1

if i excecuted this command i get the output as:

[root at localhost bin]# patch -i
/home/user/Download/Linux/2.6.29.1-r1/01-gobohide.patch -p1

patching file fs/gobohide.c
can't find file to patch at input line 404
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.29.1.orig/fs/ioctl.c linux-2.6.29.1/fs/ioctl.c

|--- linux-2.6.29.1.orig/fs/ioctl.c	2009-04-02 17:55:27.000000000 -0300
|+++ linux-2.6.29.1/fs/ioctl.c	2009-04-26 12:21:56.000000000 -0300
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.

2 out of 2 hunks ignored
can't find file to patch at input line 434
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.29.1.orig/fs/Kconfig linux-2.6.29.1/fs/Kconfig

|--- linux-2.6.29.1.orig/fs/Kconfig	2009-04-02 17:55:27.000000000 -0300
|+++ linux-2.6.29.1/fs/Kconfig	2009-04-26 12:30:17.000000000 -0300
--------------------------
File to patch:



kernel version of linux: 2.6.29.4-167.fc11.i686.PAE


-- 
राजकुमार
follow me
http://twitter.com/krisrajkumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm.gnu.org.in/pipermail/fsug-bangalore/attachments/20100306/398c41d6/attachment.htm 


More information about the FSUG-Bangalore mailing list