LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-27-2003, 11:39 AM   #1
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
Question A little confused over kernel patching??


I am preparing to recompile my kernel to 2.4.20 to get ACPI support for my laptop. My question is "what is this patch I downloaded from kernel.org's main page? It's called patch-2.4.20.bz2. I also downloaded the actual kernel.

Can someone give me a little more information on the linuxquestions kernel I downloaded from sourceforge? What was removed for performance?
 
Old 03-27-2003, 01:34 PM   #2
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
I'm not sure about your second issue, but as far as the first one, there is a really good place to go to learn about the kernel in general and kernel patching.

Main site : http://www.linuxhq.com/

and you will probably find your answers about patching here :

http://www.kernelnewbies.org/

Look at the FAQ in the left column and look for patching info. It seems to cover alot.

JC
 
Old 03-27-2003, 08:26 PM   #3
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
Exclamation kernel upgrades in Redhat

A kernel patch updates your kernel source tree to the current version. The whole kit-in-kaboodle, which is very large, simply overwrites the kernel source tree.
Before you try to update your Redhat kernel, think really hard. Redhat has a lot of complex driver support, and recompiling your kernel can cause you to lose some of this support (i.e. acceleration for your video card.) Also, Redhat has just released v9.0 (aka 8.1 - the non-beta of what you have now). The ISO's will be available for free download in about a week.
If you still need to recompile your kernel to get better hardware support, use Redhat's config. Copy the appropriate file from /usr/src/linux/configs to usr/src/linux and rename it ".config". Then, if upgrading the kernel, run "make oldconfig" or, if recompiling the current kernel with new options, run something like "make xconfig". Then, run "make dep".
Before you run "make bzImage" and the like, edit /usr/src/Makefile to remove the "custom" tag from it (if the tag is there - it may not be). This way, Redhat will think the kernel is installed in RPM form - even if you compiled it (trust me, this is a good thing).
Good luck!
 
Old 03-27-2003, 09:48 PM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Original Poster
Rep: Reputation: 46
Thanks for the great replies. kc8tbe I will take your advise about the options, but I still need the newer support that the 2.4.20 kernel provides for laptops. If I lose anything critical during this process I will go back to my old trusty RH kernel and keep studying until I get this kernel stuff right.
Thanks for everything....
 
Old 03-30-2003, 07:49 AM   #5
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
Careful there - you can go back to an old kernel (i.e. vmlinuz.old), but usually not old modules. And its the modules that are going to support things like your video card.

Redhat 9.0 (which you can download from Redhat's ftp in about a week) might have an updated version of the kernel. Try to find someone who knows - you might be able to just upgrade your system.

Last edited by kc8tbe; 03-30-2003 at 07:50 AM.
 
Old 04-04-2003, 03:46 PM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Original Poster
Rep: Reputation: 46
It has the 2.4.20 kernel. And once again they failed to include acpi support by default. Arrrg!! I still have to recompile. I got a 2.4.20 kernel that I compiled to boot, but with massive errors. I have now picked up the RPM versions of the kernel from Redhat (now that I am a subscriber Doh!) but can I add things like acpi to a RPM kernel?

Oh yeah, and my laptop uses a completely unsupported ATI mobility Radeon chip currently running the VESA (generic) driver so I already lack any cool features for my chipset.

Last edited by Pcghost; 04-04-2003 at 03:49 PM.
 
Old 04-05-2003, 03:59 PM   #7
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
You can still recompile 9.0's kernel as described above.
I don't know why you are using a VESA diver for a ati radeon mobility chip. The version of Xfree86 that comes with RH8.0.94 supports acceleration of the chip just fine. Please let me know what version of the chip you have and what version of Xfree86 you are running.

And if you don't want to subscribe to RH to get stuff, you can usually find it on LMule (emule for linux). RH makes 9.0 available publicly April 7.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Patching the kernel rickthemick Linux - General 1 11-24-2004 04:18 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM
Kernel Patching? blmartin777 Linux - Software 1 05-10-2004 03:56 PM
Kernel Patching? wr3ck3d Linux - General 4 04-13-2003 03:17 PM
kernel patching erikm103 Linux - General 2 03-19-2003 12:12 PM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration