我是靠谱客的博主 阳光高山,最近开发中收集的这篇文章主要介绍在redhat rel 内核版本2.6.18-53.el5xen安装 linux2.6.22,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

下载自己想要的内核,
以linux-2.6.22.tar.gz内核为例。(rel5 linux kernel is 2.6.18)
>tar -zxvf linux-2.6.22.tar.gz
>su
>password:
>mv linux-2.6.22 /usr/src
>cp /usr/src/linux-2.6.22
>cp /boot/.config  ./    //use the defaut kernel config that your current linux config
>make menuconfig

choose Load an Alternate Configuration File . use .config  (in the current dirctory)

press TAB key choose OK  to go to main menu ,then  TAB key to exit

>make bzImage
for 20 min , then compile ok!

>make modules  // compile modules that selected by default config  through  .config file

for 20min ,then compile OK!

>make modules_install //install modules

>make install // install kernel

that is ok!

Look the change of /boot/gurb/grub.conf

>cat /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.22)
        root (hd0,0)
        kernel /vmlinuz-2.6.22 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.22.img
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.el5
        module /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        module /initrd-2.6.18-53.el5xen.img
title Red Hat Enterprise Linux Server-base (2.6.18-53.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-53.el5.img

the first title is the new kernel !!

>reboot

enter the timeout interface ! please enter ESC key to choose selecting kernel UI

test!!!!!!


Also you can modify /boot/grub/grub/gurb.conf to set default kernel

default=1  //default kernel
timeout=10

default=1 // defalut : the second title is default val


最后

以上就是阳光高山为你收集整理的在redhat rel 内核版本2.6.18-53.el5xen安装 linux2.6.22的全部内容,希望文章能够帮你解决在redhat rel 内核版本2.6.18-53.el5xen安装 linux2.6.22所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(31)

评论列表共有 0 条评论

立即
投稿
返回
顶部