ShadowStar 发表于 2003-12-23 15:26:13

请问2.6的内核与2.4的内核可不可以共存??

安装完modules-init-tools包
使用如下命令将modules转换为modprobe.conf
/generate-modprobe.conf /etc/modprobe.conf
转换完成后将modules.conf移除或更名。
再用2.4的内核进入时,网卡和声卡就无法驱动了。
显示“无法打开或找到/dev/mixer”
8139的网卡无法自动找到硬件。

是不是2.4.*的内核与.6.*的无法同时在一个机器上使用啊???

luckisme 发表于 2003-12-23 15:45:34

答案是肯定的

2.6 和2.4是可以共存的

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=48332

ShadowStar 发表于 2003-12-23 16:21:46

2.4.20要用的modules.conf移除或更名后,2.4.20能否找到modules???

zhllg 发表于 2003-12-24 01:53:36

其实何必呢,我现在已经不打算再用2.4了
因为2.6比2.4强多了
花点时间好好配置配置,彻底投入2.6的怀抱吧

tigerleo 发表于 2003-12-28 10:42:23

Re: 请问2.6的内核与2.4的内核可不可以共存??

安装完modules-init-tools包
使用如下命令将modules转换为modprobe.conf
/generate-modprobe.conf /etc/modprobe.conf
转换完成后将modules.conf移除或更名。
再用2.4的内核进入时,网卡和声卡就无法驱动了。
显示“无法打开或找到/dev/mixer”
8139的网卡无法自动找到硬件。

是不是2.4.*的内核与.6.*的无法同时在一个机器上使用啊???

To make kernel 2.4 get along well with kernel 2.6, my solution on RH9 is:

1. keep both the /etc/modules.conf and /etc/modprobe.conf, and rename all the necessary modules' names in /etc/modprobe.conf, such as usb,network card(eg. my network card is one of BroadCom 4400 series, its module name in kernel 2.4 is bcm4400, but in kernel 2.6 it's been renamed as b44),etc.
2. make a directory in /etc, say myscripts, then cd into the directory, make 3 subdirectories named 2.4, 2.6, def (or what ever you like), then copy /etc/rc.sysinit to these 3 directories. as result, you'll get 3 rc.sysinit files,each in /etc/myscripts/2.4,/etc/myscripts/2.6 and /etc/myscripts/def
3. edit your /etc/myscripts/2.6/rc.sysinit, rename all the symbols that are renamed in kernel 2.6, such as ksyms to kallsyms.
4. edit your /etc/rc.sysinit, clear all its original content, input as following:
KERNEL_VERSION=`/bin/uname -r|/bin/cut -c -3`
if [ "$KERNEL_VERSION" = "2.4" ]; then
. /etc/myscripts/2.4/rc.sysinit
elif [ "$KERNEL_VERSION" = "2.6" ]; then
. /etc/myscripts/2.6/rc.sysinit
else
. /etc/myscripts/def/rc.sysinit
fi
5. check again carefully, before you reboot your machine :-)

Cheers

spitfirebay 发表于 2004-1-6 19:37:52

我这样改了,只是提示似乎多了些,还是能正常启动

spitfirebay 发表于 2004-1-6 19:40:55

if [ "$KERNEL_VERSION" = "2.4" ]; then
. /etc/myscripts/2.4/rc.sysinit
elif [ "$KERNEL_VERSION" = "2.6" ]; then
. /etc/myscripts/2.6/rc.sysinit
else
. /etc/myscripts/def/rc.sysinit
fi
能不能加点脚本,比如启动2.6时自动重命名/etc/modules.conf为modules.conf.bak,启动2.4时自动重命名/etc/modprobe.conf为modprobe.conf.bak?

foxlooly 发表于 2004-1-12 13:38:21

我的还没有编译!不知道该怎么做!今天回去试试安装!
页: [1]
查看完整版本: 请问2.6的内核与2.4的内核可不可以共存??