Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 09-12-2003, 07:28 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
kernel compling examples

I am newbie for Linux, who is trying to play around with kernel
I have been searching for different Linuxes and how they handle their kernel on the net. I couldnot find much, especially about Redhat-Suse differences if there is any at all.
As far as I know, to compile a kernel you have to write a script to put all the necessary stuff together and then do "make" and "make install". It is this script I am looking for. Are there any RedHat and Suse kernel compling scripts on the net? Where can I find them? Can any of you paste the scripts here if you have them? I am really drown into this kernel compling thing so badly that I am about run out of air

Please help this newbei

Thanks in advance....
Old 09-12-2003, 07:46 AM   #2
LQ Newbie
Registered: Sep 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 4

Rep: Reputation: 0
You want to compile a new kernel?

here's a guide
Old 09-12-2003, 07:53 AM   #3
LQ Newbie
Registered: Sep 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 4

Rep: Reputation: 0
I think you need this?

Kernel compilation script

For every one, who compile a Linux kernel more than 3 times per day...
It's named coke (compile kernel).

it can be found at:

Old 09-15-2003, 03:51 AM   #4
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Here's a nice script that I use from Simply Linux and Crux linux.

It should work for you and any distro.

Compiling Kernel
It is where the fun begins.
Every computer is not created equal. What works for me might not work for you. The command lines are the same, but the kernel configurations are not. Find out as much about your computer hardware as possible. Things like makes and models are helpful in configuring Linux.
First, you write a little script for compiling and recompiling kernel. You'll definitely need it a couple of times or more. The script will automate all the compiling processes and save you time. The date and ls commands let you know when the compilation is done and if it is done thoroughly. If the compilation breaks, you won't get new vmlinuz and files. Because of the script, you will have to set up /etc/lilo.conf once before the first compilation.
1) Enter "pico /bin/compkern" and enter as follows:

cd /usr/src/linux-2.4.20
make menuconfig
make dep && make clean bzImage modules modules_install

cp arch/i386/boot/bzImage /vmlinuz
cp /
lilo -v
cd /
ls -lh

2) Exit & save
3) Enter "chmod 700 /bin/compkern"
4) Enter "pico /etc/lilo.conf" and edit as follows:


Note: Replace hda1 with the right one. Assuming the computer has only one CD drive or burner.

5) Exit & save
6) Enter "compkern" to fire Linux Kernel Config up ( Note: To back out of it, hit CTRL-C )


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
compling kernel using gcc4 linuxmandrake Debian 7 09-30-2005 02:01 PM
how to start configuring the kernel when compling. dr_zayus69 Linux - Software 6 05-02-2005 01:29 AM
Compling A New Kernel mullet Slackware 7 08-26-2004 05:04 PM
problem in compling kernel 2.6.6 rexhack Linux - Software 0 05-25-2004 02:21 AM
When compling kernel... nutshell Linux - General 1 03-09-2002 08:12 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:24 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
Open Source Consulting | Domain Registration