Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-02-2007, 06:41 AM   #1
Registered: Jan 2005
Posts: 70

Rep: Reputation: 18
Kernel rebuild?

How can i rebuild a kernel?
I have a working system with kernel ,but i did some changes in my kernel .config file and now i want to rebuild it.

kernel 2.6.18

#ls /usr/src

Old 03-02-2007, 07:17 AM   #2
Registered: Feb 2007
Location: Israel
Distribution: openSuSE
Posts: 59

Rep: Reputation: 15
1: make xconfig

2: make dep bzImage modules modules_install

3: cp your created bzImage to the /boot/ directory

4: add your new kernel to your boot loader
Old 03-02-2007, 07:19 AM   #3
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
What distribution do you use? There might be a specific method for yours.

The generic is:

*as user:

cd linux-2.6.18
make oldconfig => this will take your running /boot/config-`uname -r` file as a reference.
change your settings here (don't modify by hand the .config!!)
make clean

*as root:
make install

Then update your /boot/grub/menu.lst to add a new section for your new kernel.

Keep your old kernel and old kernel section in grub in case something goes wrong!

google is your friend also


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 should I rebuild the Kernel waterox SUSE / openSUSE 5 10-02-2006 03:45 PM
kernel name after rebuild ekdya Debian 0 09-18-2006 04:59 PM
How do you rebuild a kernel? Thaidog Linux - General 4 07-26-2005 12:15 PM
kernel rebuild Present Yoper 9 11-26-2004 06:08 PM
Rebuild kernel And then !!! left-hand Linux - Software 4 02-06-2004 09:59 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

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