LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-02-2007, 06:41 AM   #1
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Rep: Reputation: 18
Kernel rebuild?


Hi
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
linux-2.6.18


Thanks.
 
Old 03-02-2007, 07:17 AM   #2
uv256
Member
 
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
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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
make

*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!


ps:
google is your friend also
 
  


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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