QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2827|回复: 2

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

[复制链接]
发表于 2008-10-19 21:40:15 | 显示全部楼层 |阅读模式
"将Redhat 9的内核编译升级到Linux 2.6以上的任何一个版本时,内核升级必要的包需要那些?编译内核的步骤是什么?在编译过程中可能遇到的问题有哪些,解决的办法是什么?"
以上是计算机老师布置的作业,由于我是刚刚接触计算机语言编译,就是个路盲,渴望计算机高手帮我一下这个计算机后进的人吧!
发表于 2008-10-26 10:34:37 | 显示全部楼层
别折腾了……
换吧……

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

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

使用道具 举报

发表于 2008-11-3 21:10:45 | 显示全部楼层
1.内核升级必要的包。想升级到哪个版本的2.6就看那个版本内核的Documentation下的Changes文件。例如linux-2.6.27.4的

  1. ..............................................................(省略)

  2. Current Minimal Requirements
  3. ============================

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

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

  12. o  Gnu C                  3.2                     # gcc --version
  13. o  Gnu make               3.79.1                  # make --version
  14. o  binutils               2.12                    # ld -v
  15. o  util-linux             2.10o                   # fdformat --version
  16. o  module-init-tools      0.9.10                  # depmod -V
  17. o  e2fsprogs              1.29                    # tune2fs
  18. o  jfsutils               1.1.3                   # fsck.jfs -V
  19. o  reiserfsprogs          3.6.3                   # reiserfsck -V 2>&1|grep reiserfsprogs
  20. o  xfsprogs               2.6.0                   # xfs_db -V
  21. o  pcmciautils            004                     # pccardctl -V
  22. o  quota-tools            3.09                    # quota -V
  23. o  PPP                    2.4.0                   # pppd --version
  24. o  isdn4k-utils           3.1pre1                 # isdnctrl 2>&1|grep version
  25. o  nfs-utils              1.0.5                   # showmount --version
  26. o  procps                 3.2.0                   # ps --version
  27. o  oprofile               0.9                     # oprofiled --version
  28. o  udev                   081                     # udevinfo -V
  29. o  grub                   0.93                    # grub --version

  30. Kernel compilation
  31. ==================

  32. GCC
  33. ---

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

  36. Make
  37. ----

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

  39. Binutils
  40. --------

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


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

[ 本帖最后由 cnhnln 于 2008-11-4 19:43 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 02:40 , Processed in 0.214928 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表