| 您的位置:首页 > 文档 > drivers > |
文章分类热门文章 |
如何更换linux的内核?---为了特定的硬件驱动创建:2005-10-28 00:08:02 作者:Unlinux 来自: http://www.Unlinux.com 现在网上许多硬件如声卡,网卡,内置modem等驱动都是针对rh7.3的。而大家的linux系统却都更新为rh8.0了。一般来讲,这些驱动是无法在rh8.0下正常使用的。解决的办法是:把rh8.0的内核换成rh7.3的。其方法如下: 1、取得rh7.3的内核rpm包(kernel-2.4.18-3.i686.rpm)。有两种徒径:从rh7.3安装盘中取得或从网上获得: http://rpmfind.net/linux/redhat/7.3...4.18-3.i686.rpm 2、进入rh8.0并以root登陆,安装kernel包: rpm -ivh --nodeps --force kernel-2.4.18-3.i686.rpm #注意:后面的参数一定是-ivh,如果是-Uvh则会覆盖现有的内核! 3、修改grub或lilo配置文件。这里以grub为例 (如果用lilo方式启动,修改/etc/lilo.conf后再执行lilo,其内容和menu.lst基本相似): 打开/boot/grub/menu.lst,原来内容如下: default=2 timeout=10 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title Red Hat Linux (2.4.18-14) root (hd0,1) kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ initrd /boot/initrd-2.4.18-14.img title Windows XP rootnoverify (hd0,0) chainloader +1 title Mandrake Linux 9.0 root (hd0,7) kernel (hd0,7)/boot/vmlinuz ro root=/dev/hda8 initrd (hd0,7)/boot/initrd.img title Mandrake Linux 9.0 with ESS root (hd0,7) kernel (hd0,7)/boot/vmlinuz-2.4.18-3 ro root=/dev/hda8 initrd (hd0,7)/boot/initrd-2.4.18-3.img title FreeBSD 4.7 rootnoverify (hd0,2) chainloader +1 然后再在第三行后插入: title Red Hat Linux (2.4.18-3) root (hd0,1) kernel /boot/vmlinuz-2.4.18-3 ro root=LABEL=/ initrd /boot/initrd-2.4.18-3.img 当然你的分区与我的也许不一样,你可根据需要修改。这样可重启选取Red Hat Linux (2.4.18-3)来启动。这时你可安装for rh7.3的驱动了。 转载自:http://www.unlinux.com/doc/drivers/20051028/5431.html 【评论】 【加入收藏夹】 【大 中 小】 【打印】 【关闭】 ※ 相关链接
|