- Get a source from www.kernel.org
Go for the latest stable release. - Untar the source.
- Enter the source directory
- Copy an old kernel config file, from /boot, into this directory and rename the file to '.config'
A .config file contains response (yes/no/build-module) for various configuration options such as support for a particular network card. Ideally, one shall go through all the options and select the ones needed - but there are too many options to be configured! So, we copy the config file supplied with your distribution. - make silentoldconfig
This reads the already present .config file in source directory and asks for responses of the remaining options - press enter for all the remaining options to select the default option. - make -jn (where n is 2*num_cpu_cores)
Parallel make is fast as it divides the work between multiple cores. - sudo make modules_install
This installs the modules in /lib/modules/$KERNEL_VERSION directory - sudo make install
This executes distribution dependent installation script, which for example, copies the built kernel in /boot directory. - sudo update-initramfs -c -k $NEW_KERNEL'S_VERSION
Creates ramdisk needed for booting. - sudo update-grub
Adds entry for the new kernel in your grub.
Cheers,
Nipun
A lot of persons including me get goosebumps installing and using open source softwares.So u r really doing gud work in this regard.Thanx a lot.
ReplyDelete