aibornew 发表于 2008-10-19 21:40:15

Redhat 9的内核编译升级问题?渴求各位师兄师姐指导!

"将Redhat 9的内核编译升级到Linux 2.6以上的任何一个版本时,内核升级必要的包需要那些?编译内核的步骤是什么?在编译过程中可能遇到的问题有哪些,解决的办法是什么?"
以上是计算机老师布置的作业,由于我是刚刚接触计算机语言编译,就是个路盲,渴望计算机高手帮我一下这个计算机后进的人吧!

jiangtao9999 发表于 2008-10-26 10:34:37

别折腾了……
换吧……

恩,我说的是让你换老师。
如果不能挑老师,这个题至少还要换 modules-init-tools 。先把它升级,之后 2.6 内核才能正常的载入模块。
不过升级完他,最好在升级 glibc ,打开他的 2.6 内核支持。不过升级了 glibc ,RH9 里面的所有软件包基本都要重新编译或者升级。不然有可能无法运行。

编译内核步骤请看教材。或者其他资料,这个牵扯到很多资料。

cnhnln 发表于 2008-11-3 21:10:45

1.内核升级必要的包。想升级到哪个版本的2.6就看那个版本内核的Documentation下的Changes文件。例如linux-2.6.27.4的
..............................................................(省略)

Current Minimal Requirements
============================

Upgrade to at *least* these software revisions before thinking you've
encountered a bug!If you're unsure what version you're currently
running, the suggested command should tell you.

Again, keep in mind that this list assumes you are already
functionally running a Linux 2.4 kernel.Also, not all tools are
necessary on all systems; obviously, if you don't have any ISDN
hardware, for example, you probably needn't concern yourself with
isdn4k-utils.

oGnu C                  3.2                     # gcc --version
oGnu make               3.79.1                  # make --version
obinutils               2.12                  # ld -v
outil-linux             2.10o                   # fdformat --version
omodule-init-tools      0.9.10                  # depmod -V
oe2fsprogs            1.29                  # tune2fs
ojfsutils               1.1.3                   # fsck.jfs -V
oreiserfsprogs          3.6.3                   # reiserfsck -V 2>&1|grep reiserfsprogs
oxfsprogs               2.6.0                   # xfs_db -V
opcmciautils            004                     # pccardctl -V
oquota-tools            3.09                  # quota -V
oPPP                  2.4.0                   # pppd --version
oisdn4k-utils         3.1pre1               # isdnctrl 2>&1|grep version
onfs-utils            1.0.5                   # showmount --version
oprocps               3.2.0                   # ps --version
ooprofile               0.9                     # oprofiled --version
oudev                   081                     # udevinfo -V
ogrub                   0.93                  # grub --version

Kernel compilation
==================

GCC
---

The gcc version requirements may vary depending on the type of CPU in your
computer.

Make
----

You will need Gnu make 3.79.1 or later to build the kernel.

Binutils
--------

Linux on IA-32 has recently switched from using as86 to using gas for
assembling the 16-bit boot code, removing the need for as86 to compile
your kernel.This change does, however, mean that you need a recent
release of binutils.


..............................................................(省略)
2.升级步骤查看内核源码目录下的README文件
3.遇到的问题千差万别,解决方法就是查看源码附带的文档,解决不了再上网查找

[ 本帖最后由 cnhnln 于 2008-11-4 19:43 编辑 ]
页: [1]
查看完整版本: Redhat 9的内核编译升级问题?渴求各位师兄师姐指导!