LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2003, 01:04 PM   #1
nuhn123
LQ Newbie
 
Registered: Sep 2003
Posts: 25

Rep: Reputation: 15
kernal compiling


how do i compile the kernal.
 
Old 09-06-2003, 02:31 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
First, its kernel, not kernal.
Your not the first to ask this, I would have to suggest searching here and maybe reading the kernel howto at www.tldp.org.

"kernel compile recompile" search here: http://www.linuxquestions.org/questi...der=descending

The kernel howto at tldp.org:
http://www.ibiblio.org/pub/Linux/doc...nel-HOWTO.html
 
Old 09-06-2003, 02:34 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Some tips :

Your scenario might be different but there should be something useful here - Using 2.4.22, Red Hat 9 and LILO as an example.

Download the source
extract source into /usr/src
If there's a symlink to an old source tree in /usr/src, delete it, then
create a symlink to new source directory with

ln -s /usr/src/linux-2.4.22 /usr/src/linux

cd into new source directory via symlink ie

cd /usr/src/linux

make xconfig
make dep
make clean
make bzImage
make modules
make modules_install

cp System.map /boot/System.map-2.4.22
cp arch/i386/boot/bzImage /boot/bzImage-2.4.22

Kedit /etc/lilo.conf

copy the previous Red Hat stanza to make a new one - change the image directive to

image=/boot/bzImage-2.4.22

change the label name to what you want

save

as root

/sbin/lilo

Last edited by Skyline; 09-06-2003 at 02:43 PM.
 
Old 09-06-2003, 02:48 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
step by step with explanations
 
Old 09-06-2003, 03:27 PM   #5
nuhn123
LQ Newbie
 
Registered: Sep 2003
Posts: 25

Original Poster
Rep: Reputation: 15
how long

How long will this take, like hours .
 
Old 09-06-2003, 03:53 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
depends on your system, i will be generous, and give it 45 mins at minimum...it depends what you choose to compile, and like i said, it also depends on your system...
 
  


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 kernal in Debian 3.0 swmok Debian 2 03-31-2005 06:17 AM
Compiling a kernal(first time) sergeantroach Linux - Software 6 02-11-2004 01:10 AM
compiling kernal ronss Slackware 6 06-02-2002 03:50 PM
Compiling Kernal Error jdreg Linux - Software 3 04-06-2002 03:09 PM
Compiling the Kernal AMDPwred Linux - General 5 03-12-2002 08:19 AM

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

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