Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-27-2003, 10:38 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
How do I recompile the kernel?

I'm running Slackware 9.1 with the adaptec.s kernel on a dual Pentium II system. I want to recompile to kernel and add support for the second CPU.

Can someone please point me to some instructions on this process?

I have no clue on how to recompile the kernel. I've been using Redhat for a few months but I'm new to slackware.

I never needed to recompile the kernel with Red Hat so I have no clue on how to do this.

Thanks (in advance)
Old 09-27-2003, 10:47 PM   #2
LQ Newbie
Registered: Sep 2003
Location: Earth
Posts: 7

Rep: Reputation: 0

You should check out for an in depth guide for compiling your own kernel. It can be somewhat complicated for someone who has never done it before. You should first check if you have the kernel source. This usually lives under /usr/src/.

Hope this helps...
Old 09-27-2003, 11:17 PM   #3
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
sure, switch to /usr/src/linux (or downnload and unpack the latest kernel from and then switch to the source directory
then do a make menuconfig (for a text based menu for configuring the kernel) or make xconfig, for an X based version of the same, go through ALL the menu options, checking what you need and unchecking what you don't need, some items can be built as modules, that is to say they can be inserted or removed without recompiling, once you have it comfigured to meet your needs then exit, saving your configuration of course, then do a
'make dep clean bzImage modules"
followed by
'make install, modules_install'
this is all done as root of course
and make sure you leave a copy of your old kernel some how to fall back on in case something goes wrong
Old 09-28-2003, 09:31 AM   #4
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Pop over to the Slackware forum here on LQ and read DaOne's sticky thread on compiling your own kernel. I've followed his procedure and it has never failed me once.


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
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 02:02 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
Recompile kernel 2.6 heema Linux - General 3 05-26-2004 11:29 AM
9.2 kernel recompile dukeinlondon Mandriva 3 11-10-2003 07:34 AM
Recompile Kernel ? Amerist Linux - Newbie 5 04-16-2002 05:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:18 AM.

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