LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2004, 12:27 AM   #1
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question Patching the kernel


I have a question about kernel patches that will upgrade the kernel one release, say from 2.4.22 to 2.4.23. It seems that while recompiling the whole kernel will create a 2.4.23 folder and name everything 2.4.23, using a patch to upgrade will keep the 2.4.22 folder but upgrade the files in it. Can I rename this folder from 2.4.22 to 2.4.23 now without causing problems? Is there anything else besides /lib/modules/2.4.22 that don't change with a patch but do change with a recompile? In other words, is there anything else I'll need to rename/change? I'm afraid if I change the name of this folder I'll still have things out there looking for a 2.4.22 kernel when it doesn't exist anymore. What tells programs that you are using a 2.4.23 kernel... is it just the name of this folder?

Thanks,
Johnathan
 
Old 06-29-2004, 01:39 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In /lib/modules/<version-mumble>/
there's a symlink to the kernel-directory
it was compiled from ...

If you rename the directory for the newly
patched kernel the build will point into the
void.


Cheers,
Tink
 
Old 06-29-2004, 11:48 AM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
So what then is the proper way to let the system know you are running 2.4.23 instead of 2.4.22? In otherwords, how does "uname -r" and other programs know what the kernel is. Right now uname -r shows 2.4.22 even though I've patched it to 2.4.23.

Last edited by jrdioko; 06-29-2004 at 11:59 AM.
 
  


Reply



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
Kernel patching.. new.thing Linux - Hardware 3 07-13-2005 06:36 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
Patching the kernel grazie Fedora 4 11-09-2004 03:29 PM
Patching the Kernel LinuxBlackBox Linux - Software 2 06-16-2004 06:54 AM
Kernel Patching? wr3ck3d Linux - General 4 04-13-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 PM.

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
Open Source Consulting | Domain Registration