LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Newbie question: Applying kernel patch for Thinkpad laptop (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/newbie-question-applying-kernel-patch-for-thinkpad-laptop-567936/)

lchxr 07-09-2007 06:40 PM

Newbie question: Applying kernel patch for Thinkpad laptop
 
I am using kernel-2.6.21.5 on Slackware 12.0 on my IBM thinkpad laptop. I would like to re-compile kernel to enable acpi support, so I downloaded a patch file "thinkpad-acpi-0.14-20070701_v2.6.21.5.patch.gz" from
http://ibm-acpi.sourceforge.net/
What I did is unzip the patch file and apply the patch
Code:

# gunzip /home/chunhua/Downloads/thinkpad-acpi-0.14-20070701_v2.6.21.5.patch.gz
# patch -d /usr/src/linux-2.6.21.5/ < /home/chunhua/Downloads/thinkpad-acpi-0.14-20070701_v2.6.21.5.patch
The next patch would delete the file ibm-acpi.txt,
which does not exist!  Assume -R? [n]
Apply anyway? [n]

Am I doing something stupid? I should answer yes or no? I have never applied any patches before. Can someone instruct me how to apply a patch?

dxqcanada 07-09-2007 07:10 PM

Hmm, try this:
cd to the Linux kernel source directory
then run patch with -p1
Code:

# cd /usr/src/linux-2.6.21.5
# patch -p1 < /home/chunhua/Downloads/thinkpad-acpi-0.14-20070701_v2.6.21.5.patch


lchxr 07-09-2007 07:22 PM

haha,

Thanks.


All times are GMT -5. The time now is 06:24 AM.