Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > Failed To Compile 2.6 Kernel in RHEL AS4 (VMWARE)
【标  题】:Failed To Compile 2.6 Kernel in RHEL AS4 (VMWARE)
【关键字】:Failed,To,Compile,2.6,Kernel,in,RHEL,AS4,VMWARE
【来  源】:http://www.cublog.cn/u/17789/showart.php?id=120825

Failed To Compile 2.6 Kernel in RHEL AS4 (VMWARE)

Your Ad Here
Failed to compile 2.6 kernel :
 
1.Install a fresh RHEL AS4
 
2.Test creating a new ramdisk under the current kernel
 
#cd /boot
#mkinitrd initrd-george 2.6.9-5.EL
Ok,you will get a new ramdisk file named initrd-george.It means that there is nothing wrong with the version of 'mkinitrd'
 
3.Dowload the latest compressed kernel package and put it into /tmp
 
4.Decompress it.
#cd /tmp
#tar xjvf linux-2.6.16.18.tar.bz2 -C /usr/src
 
5.Go on comiling new kernel
#cd /usr/src/linux-2.6.16.18
#make menconfig
(You needn't change anything here,just highlight"Load an Alternate Configuration File" and press ENTER key,Enter the absolute path "/boot/config-2.6.9-5.EL"of the configuration file which has been used in current kernel.Press OK and then exit with saving the configrutation )
#make;make modules;make modules_install
 
6.Post comiling
If you want to finish this stage manually,please go to step 7
#make menuconfig
(IMPORTANT:The reason why we got such an error "no module mptbase found ...." is that we did something wrong when we executed 'make menuconfig'.It had  nothing to do with the version of the package mkinitrd.So ,if you want to get through compiling a new kernel smoothly,you must  be more careful of making change to kernel configuraton when you do 'make menuconfig'.Make sure you have choose to make modules for MPT by tick all options with "M" in Device Drivers->Fusion MPT Device Support)
#reboot
 
7.Manually copy bzImage,System.map,.config to /boot
#find /usr/src -name bzImage
#cp /usr/src/linux-2.6.16.18/arch/i386/boot/bzImage /boot/vmlinuz-2.6.16.18
#find /usr/src -name System.map
#cp /usr/src/System.map /boot/System.map-2.6.16.18
#find /usr/src -name .config
#cp /usr/src/.config /boot/config-2.6.16.18
 
8.Create ramdisk
#/sbin/mkinitrd /boot/initrd-2.6.16.18.img 2.6.16.18
(This command would create a new ramdisk for kernel 2.6.16.18.The kernel veresion "2.6.16.18" in the above command tells mkinitrd to search /lib/modules/2.6.16.18 for files that are needed .Because all module files are put here.)
 
9.Edit GRUB configuration file with vi and add some items in the end of the file:
 
title Red Hat Enterprise Linux AS (2.6.16.18)
           root (hd0,0)
           kernel /vmlinuz-2.6.16.18 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
           initrd /initrd-2.6.16.18.img
10.Restart system and boot from the new kernel by choosing "Red Hat Enterprise Linux AS (2.6.16.18)" when GRUB menu appears.
 
There are no errors during the compiling process,but when I boot the new kernel,I still got kernel panic.This is a bug?Some guys said that because I used a wrong version mkinitrd.The version I should use may be  mkinitrd-4.2.21-1.i386.rpm.Even though the latest version of mkinitrd hasn't resolve this problem yet.But ,Jesus,where can i find such a damn version?
 
You can read the following pages for some tips:
 
关于linux环境下信号SIGCHLD的排队机制:【上一篇】
crond 和 crontab 乱七八糟地搞清楚:【下一篇】
【相关文章】
  • 关于linux环境下信号SIGCHLD的排队机制
  • linux下的线程linuxthreads和NPTL的比较
  • Linux下ADSL上网
  • Relentless violence in Iraq kills 54 (5.31)
  • 在linux下如何启用framebuffer
  • X Window System运行原理与启动过程
  • An Introduction to Embedded Linux Development
  • websphere 5.1 for linux安装手记
  • 什么是Linux?
  • 3.从技术上说,Linux有什么优点?
  • 【随机文章】
  • 索尼套充促销:讲耐力,你未必係佢对手
  • 服务器优化——Sysctl、Apache、MySQL
  • 服务器,服务器租用,网络电信
  • WebSpider的编码问题(乱码)浅析
  • access数据库操作类
  • 利用adodb.stream直接下载任何后缀的文件(防盗链)
  • 智能陈桥安装出错解决办法
  • TCP/IP协议基础知识介绍教案
  • 在Linux下使用DOS/Windows磁盘
  • 日期分组(SQL SERVER/ORACLE)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.