LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-26-2012, 01:40 AM   #1
Anders Lind
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
After patch a patch to kernel? Do I need to compile whole kernel again?


After patch a patch to kernel? Do I need to compile whole kernel again?

Thank you
 
Old 02-26-2012, 02:03 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yes. Linux uses a monolithic kernel.
 
Old 02-29-2012, 03:40 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,632
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
"Close enough." Anyway, to my way of thinking the answer is definitely "yes." You always want to be absolutely certain that every part of the kernel which could possibly be affected by your change, however slight, is always incorporated in every scrap of binary code whether in the resident kernel or in any module. It only takes one screw-up to hose your system badly.

The procedure I always use, quite religiously, is as follows:
  1. Make a dated backup copy (not hidden) of the .config hidden file, in some far-away directory (mine's under /root/kernel_configs, a directory name of my own choosing). Write-protect this copy so that it will never be overwritten (by you).
  2. Temporarily rename .config to some other name.
  3. make distclean
  4. Rename the file back.
  5. The usual make .. make install sequence.
  6. LQQK in the target locations to make sure that the kernel image is new, and that all of the modules are new. (Do not assume... actually look.)
Even though the kernel is an extremely important program, it's actually not a big program, nor does it take an extraordinary amount of time to compile.
 
  


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
base Kernel compile - how to patch for apparmor/firewall petersk SUSE / openSUSE 7 03-05-2008 02:06 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
No more modules after kernel compile w/ ck patch uglydot Slackware 3 11-10-2003 03:04 PM
ACPI patch and kernel compile error crisponions Linux - Laptop and Netbook 3 10-29-2003 06:52 PM
Kernel Compile error after applyin bootsplash patch h1tman Slackware 0 10-06-2003 09:05 AM

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

All times are GMT -5. The time now is 08:26 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
Open Source Consulting | Domain Registration