Configure Kernel Source Code make menuconfig Upgrade New Kernel

make menuconfig Features
1)configure the Linux kernel Source Code,
2)Allow to choose the Feature of the Linux kernel.
3)make menuconfig target in the Linux kernel makefile.
4)it is Located under /usr/src/kernel/'uname -r'
Example Path : /usr/src/kernels/2.6.18-238.el5-x86_64
Under these path we have to enter the following command.
#make menuconfig
It will open the window here we can configure kernel Features.
Dependencies are
a)Linux Kernel Source
b)Make tool
3)C compiler
4)ncurses - n curses Library


How To Upgrade New Kernel.
1) Download Kernel form the kernel.org, which one we need to install.
2) Extract .tgz into Kernel Source Directory /usr/src/kernels.
Ex tar kernel.tar.gz -C /usr/src/kernel
3) cd /usr/src/kernel/Kernel_Path_Name/
#make menuconfig -> choose the Features Depends on Requirement
#make Command Build the Kernel Module.
4)Build vmlinuz Package
#make bzImage -- it will Build the vmlinuz Package.
Root device is (3, 1)
Setup is 12760 bytes (padded to 12800 bytes).
System is 1995 kB
CRC accf1f38
Kernel: arch/x86/boot/bzImage is ready  (#55)
Output Kernel File is
/usr/src/kernels/linux-2.6.30.4/arch/i386/boot/bzImage
4.1)Copy the bzimage into /boot directory in name of vmlinux-Kernel_version
#cp /usr/src/kernels/linux-2.6.30.4/arch/i386/boot/bzImage /boot/vmlinuz-2.6.30.4
5) create initrd image using mkinitrd Command.
#make modules_install
#mkinitrd  /boot/initrd-Kernel_version.img  Kernel_version
If we are not making modules_intall then we will get the following Error Message.
# mkinitrd  /boot/initrd-2.6.30.4.img  2.6.30.4
/lib/modules/2.6.30.4 is not a directory.
6) Edit the grub.conf file with New Kernel and initrd image.
Then reboot the system from the New Updated Kernel.

Post a Comment

1 Comments