LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 02: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, 03:31 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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, 03: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 03:43 PM.
 
Old 09-06-2003, 03:48 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
step by step with explanations
 
Old 09-06-2003, 04: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, 04:53 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
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


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


All times are GMT -5. The time now is 10:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration