LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-27-2003, 09:38 PM   #1
dake-bonoist
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, 09:47 PM   #2
KidEvil
LQ Newbie
 
Registered: Sep 2003
Location: Earth
Posts: 7

Rep: Reputation: 0
Cool

You should check out http://www.tldp.org 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, 10:17 PM   #3
frieza
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: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
sure, switch to /usr/src/linux (or downnload and unpack the latest kernel from www.kernel.org) 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, 08:31 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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