LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2005, 06:08 AM   #1
oookiezooo
Member
 
Registered: Apr 2005
Distribution: FC 4
Posts: 30

Rep: Reputation: 15
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
 
Old 04-21-2005, 06:15 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
Old 04-21-2005, 07:42 AM   #3
oookiezooo
Member
 
Registered: Apr 2005
Distribution: FC 4
Posts: 30

Original Poster
Rep: Reputation: 15
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
 
Old 04-21-2005, 02:51 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RH9 + ACPI -> help (poweroff) BrianK Red Hat 2 04-12-2005 11:20 PM
ACPI patch RH9 2.4.20_30.9 crazibri Linux - Newbie 0 03-25-2004 11:20 PM
ucspi patching issues rh9 ewlnxnewB Programming 0 11-27-2003 02:44 AM
Does RH9 support ACPI out of the box? nidua18 Red Hat 1 09-25-2003 05:51 PM
patching the kernel for acpi support spyderusa11 Linux - Laptop and Netbook 1 07-24-2003 03:21 AM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration