LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel rebuild? (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-rebuild-533869/)

Whynot 03-02-2007 06:41 AM

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.

uv256 03-02-2007 07:17 AM

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

nx5000 03-02-2007 07:19 AM

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


All times are GMT -5. The time now is 09:51 PM.