LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Patching RH9 with ACPI (https://www.linuxquestions.org/questions/linux-newbie-8/patching-rh9-with-acpi-315637/)

oookiezooo 04-21-2005 06:08 AM

Patching RH9 with ACPI
 
Does anybody have any experience in patching redhat 9 with acpi? I have been trying to follow tutorials on the web but none of them seem relevant. I am using a compaq N800c laptop, i have downloaded the most recent acpi patch from here . I have never edited my kernel before so i followed the instructions at the bottom of the page, which throws out a load of text then asks me which files i want to patch...and i don't know, i don't have a /usr/src/linux file so do i need to patch another file? i create one, or am i doing this TOTALLY wrong? any help appreciated

oookiezooo

__J 04-21-2005 06:15 AM

you want to patch a kernel source tree, by doing so it will require you to rebuild and install a new kernel ( make sure you leave your old one untouched until you get your new one the way you want it). head over to kernel.org and grab the source corresponding to the patch you want to use, extract it ( it doesn't have or need to be in /usr/src, I usually leave my sources in $HOME/apps/kernels but it can be anywhere) and apply the patch by following the directions on the page you referenced.

oookiezooo 04-21-2005 07:42 AM

ok, thanks for the speedy reply, but i'm still not sure, there are only a few kernels on kernel.org and i assume i need the top one (the latest stable version) is that correct?
If it is i have downloaded it and unpacked it, do i then need to apply the acpi patch to that kernel?

do i do this using the command: bunzip2 -c acpi-20050309-2.6.11.diff.bz2 | patch -p1

this then asks which patch i want to apply this to, i wrote the kernel file name but this failed, what am i doing wrong?

Also, are there any good books on this?

cheers oookiezooo

__J 04-21-2005 02:51 PM

yeah on the first page there are only a few, but follow the links above and you will find all of the kernel source code, for whatever version you want.

for applying the patch, extract the kernel source ( tar xvfjp linux-xxxxx ( this is for tar.bz2 files, for tar.gz use tar zxvf)) uncompress the patch ( bzip2 -d xxxxxx.patch.bz2), move the patch into the kernel source directory, cd into the kernel source directory and do:

patch -Np0 -i ./xxxxxx.patch

to apply the patch. configure and build the kernel as normal.


All times are GMT -5. The time now is 12:56 AM.