Operating System - Linux
1828243 Members
2534 Online
109975 Solutions
New Discussion

Re: How to rebuild Linux Kernel??

 
SOLVED
Go to solution
Kenneth Leung_2
Frequent Advisor

How to rebuild Linux Kernel??

I haven't touch linux for a long time...I used to use the "make" command to rebuild the kernel years ago......is it the same now?? Can anyone show me any ref or links for rebuilding kernel on the latest Linux version?? Many thanks...
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: How to rebuild Linux Kernel??

Vitaly Karasik_1
Honored Contributor

Re: How to rebuild Linux Kernel??

in fact, you can customize/tune linux kernel *without* re-compiling in 99% cases.

Asif Sharif
Honored Contributor
Solution

Re: How to rebuild Linux Kernel??

Sung Oh
Respected Contributor

Re: How to rebuild Linux Kernel??

Hi Kenneth,

Here is things to consider if you decide to migrate to kernel 2.6.x

http://thomer.com/linux/migrate-to-2.6.html

Regards,
Sung
dirk dierickx
Honored Contributor

Re: How to rebuild Linux Kernel??

which distro are you using, if you don't know that perhaps you can tell which kernel version you would like to compile.
Prasoon
New Member

Re: How to rebuild Linux Kernel??

hi
nowadays its not so different but some more steps are added due to xtra modules & features
1.download the kernel from ftp.kernel.org
2.cp in /usr/src
3.make mrproper
4. make dep (not so important)
5. make (x|g|old|menu|)config or other options chk the untarred kernel documentation for details.
6. make bzImage
7. make modules
8. make modules_install
9. make install

dats it

for hardware specific,chk the hardware compatibility list in Red Hat site

Thanks
Prasoon
George Liu_4
Trusted Contributor

Re: How to rebuild Linux Kernel??

No big change.

Just
make mrproper
make [...]config
make
make modules
make install
make modules_install
Charles Harris
Super Advisor

Re: How to rebuild Linux Kernel??

It's also generally a good idea to update your bootloader with the new kernel too as I'm sure your aware! - Easy to forget especially if your 'new' kernel boots with the same version info as your old one! ;-)

Just my 2 c.

-=ChaZ=-