Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1372280
  • 博文数量: 140
  • 博客积分: 8518
  • 博客等级: 中将
  • 技术积分: 1822
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-01 22:23
个人简介

嘿嘿!

文章分类
文章存档

2016年(2)

2015年(5)

2014年(6)

2013年(11)

2012年(11)

2011年(3)

2010年(4)

2009年(4)

2008年(8)

2007年(23)

2006年(26)

2005年(37)

分类: LINUX

2006-03-23 22:39:49

   近日为了安装H323 NAT module for linux_2.6.16,我将Redhat9升级到了kernel-2.6.16。但是在启动过程中发现无法加载内核,系统出现function not implemented报错,提示无法加载内核,虽然Linux内核启动起来了,但是俺的网卡驱动却怎么也起不来。
   究其原因,从网上找了相关资料,零零散散的纪录了这类问题的解决办法。
  主要是因为module-init-tools版本太低了。新的2.6.x的内核模块加载无法使用老的module程序来加载。必须要去升级modules-init-tools包文件
    去 下载最新的module-init-tools文件,我下的是 
    # tar -xvzf init-tools-3.2.tar.gz
      1a) If you want to install in /sbin:
        ./configure --prefix=/
        make moveold (if installing for the first time).
        一定要记住make moveold
  "make moveold" renames the old insmod, modprobe, rmmod and lsmod to
  insmod.old, modprobe.old, rmmod.old and lsmod.old, and the matching
  manpages.
OR,
1b) If you want to install in /usr/local/sbin:
        ./configure
        make links
  "make links" makes links to the previous insmod, modprobe, rmmod and
  lsmod (which are in /sbin) in /usr/local/sbin
2) Now, build it:
        make
        make install
3) If running for the first time, you might want to convert your old
   modules.conf to modprobe.conf:
        ./generate-modprobe.conf /etc/modprobe.conf
  说明:执行新的模块文件,这点说明文件似乎没有说的很详细,我的做法是替换将生成的 modprobe.conf替换为modules.conf文件。有很多人没有做这个步骤,导致了重新启动后仍然无法加载内核模块驱动。
       # cp modprobe.conf modules.conf (覆盖modules.conf文件)
 
4)reboot system
你会惊喜地看到Redhat 9的kernel-2.6.16可以成功的加载模块了。

 
阅读(8490) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~