[CentOS-devel] centOS 6.0 custom kernel load fails

kasi viswanath kashinj at yahoo.com
Tue Jan 24 14:52:57 UTC 2012


HI,

I'm trying to build centOS6.0 custom kernel using the steps given at URL http://wiki.centos.org/HowTos/Custom_Kernel
Kernel: 2.6.32-71.el6.x86_64.

I'm following centOS5.0 steps for building custom kernel (This is the latest one to refer). After I get rpms in `/rpmbuild/RPMS'
i installed the following RPMS to boot with the new custom kernel.
su -c "rpm -ivh $HOME/rpmbuild/RPMS/x86_64/kernel-2.6.32-71.el6.kasivj.x86_64.rpm \
 $HOME/rpmbuild/RPMS/x86_64/kernel-firmware-2.6.32-71.el6.kasivj.x86_64.rpm \
 $HOME/rpmbuild/RPMS/x86_64/kernel-headers-2.6.32-71.el6.kasivj.x86_64.rpm \
 $HOME/rpmbuild/RPMS/x86_64/kernel-devel-2.6.32-71.el6.kasivj.x86_64.rpm"

This will add a new kernel entry in /boot/grub/menu.lst along with oldone. (default 0) followed by new kenel.
I checked for initramfs, vmlinuz, config, system-map files created for new kernel as shown below.

bash-4.1$ ls /boot/
=============
config-2.6.32-71.el6.kasivj.x86_64         symvers-2.6.32-71.el6.kasivj.x86_64.gz
config-2.6.32-71.el6.x86_64                symvers-2.6.32-71.el6.x86_64.gz
efi                                        System.map-2.6.32-71.el6.kasivj.x86_64
grub                                       System.map-2.6.32-71.el6.x86_64
initramfs-2.6.32-71.el6.kasivj.x86_64.img  vmlinuz-2.6.32-71.el6.kasivj.x86_64
initramfs-2.6.32-71.el6.x86_64.img         vmlinuz-2.6.32-71.el6.x86_64
initrd-2.6.32-71.el6.x86_64kdump.img

menu.lst:-
========
default=0
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS Linux (2.6.32-71.el6.kasivj.x86_64)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.32-71.el6.kasivj.x86_64 ro root=UUID=d755a526-1318-4ee0-91e5-439b978c1d80 console=tty0 console=ttyS0,9600n8 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb
        initrd /boot/initramfs-2.6.32-71.el6.kasivj.x86_64.img
title CentOS Linux (2.6.32-71.el6.x86_64)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=d755a526-1318-4ee0-91e5-439b978c1d80 console=tty0 console=ttyS0,9600n8 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb
        initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

two questions:-
1. Grub menu centOS6-2.6.32-71.el6.kasivj is not displayed
2. If I remove old kernel and keep the new kenel, then new kernel is not booting.

 I suspect that below step given in the URL I was not able to do it for centOS6.0.

[[[Starting at line 698, there is a 25 line block of code that needs to be commented out to build customised CentOS-5 kernels (  This step is not required to build customised CentOS-4 kernels): ]]]]]

Am I missing somethign here to build custom kernel centOS6.0

Reason for building: LKLM modules built on 2.6.32-71.el6.x86_64 i'm not able to load them.
thanks and regards,
Viswa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20120124/e315c4c5/attachment.html>


More information about the CentOS-devel mailing list