LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-19-2004, 09:49 PM   #1
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Rep: Reputation: 15
Compiling a Kernel


I was just looking over some guides on compiling kernels at the top of this page, and I was just wondering... what is the point? The guide on this page seems like it would be pretty easy to follow, but what does recompiling a kernel do? Why would I want to do it? Thanks.
 
Old 01-19-2004, 10:15 PM   #2
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
Yes, it is pretty easy to follow. However in my case, I have quite many problems to follow after that.
 
Old 01-19-2004, 10:19 PM   #3
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
There are 2 main reasons why people recompile a kernel.

1. Speed: The kernel can be compiled to take advantage of your specific CPU architecture which of course would mean a little more speed. Cutting out all the stuff you DON'T need from the kernel might also increase speed.

2. Hardware support: The kernel contains drivers for a lot of hardware and sometimes needs to be compiled to support things that weren't compiled by default.

There are other reasons as well. I sometimes experiment with it out of boredom
Just to learn is another. Some people might say, "if it ain't broke, don't fix it!"

Last edited by Scruff; 01-19-2004 at 10:21 PM.
 
Old 01-20-2004, 05:11 AM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Re: Compiling a Kernel

Quote:
Originally posted by Corallis
I was just looking over some guides on compiling kernels at the top of this page, and I was just wondering... what is the point? The guide on this page seems like it would be pretty easy to follow, but what does recompiling a kernel do? Why would I want to do it? Thanks.
well for instance, the default IDE kernel in Slack 9 is 1.1 megs, I just re-compiled and got the size of vmlinuz down to 462.4 kb
and also the size your System.map will also get reduced. You should goto Slackware.com and get the Slackware Essentials book!! This will tell you How to re-compile the Slackware way.
 
Old 01-20-2004, 06:15 AM   #5
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
if the kernel and modules do the job for you... that is; if all works.. don't bother if you've got something else to do like enjoying a dvd or ripping your entire CD collection to mp3...
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:32 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