|
发表于 2003-12-28 10:42:23
|
显示全部楼层
Re: 请问2.6的内核与2.4的内核可不可以共存??
[quote:565c4ac78b="ShadowStar"]安装完modules-init-tools包
使用如下命令将modules转换为modprobe.conf
/generate-modprobe.conf /etc/modprobe.conf
转换完成后将modules.conf移除或更名。
再用2.4的内核进入时,网卡和声卡就无法驱动了。
显示“无法打开或找到/dev/mixer”
8139的网卡无法自动找到硬件。
是不是2.4.*的内核与.6.*的无法同时在一个机器上使用啊???[/quote]
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 |
|