|
发表于 2004-10-8 20:43:15
|
显示全部楼层
如果E文不错,看看下载的内核里的README,DOCS里的文档,会有些收获.
我是先在根目录下创建了一个/4install,在root下,断开网络,一次就搞定了.后来又编译一边,说是需要什么包,下载一个,这些东西,自己琢磨很重要.
后下载的有:
module-init-tools-3.1-pre6.tar.gz
http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
先在两个内核都能用,尽管新内核有点问题,比如RPM,IEEE1394等,但速度快了,高级电源管理也好了,不像以前风扇狂转.
在编译前最好先在/boot建2目录 mkdir /boot/before
mkdir /boot/now
然后,把除了boot.b,chain.b,os2_d.b,kernel.h外的文件全部移到/boot/before 下,并且修改/boot/grab/grab.conf中的相应路径(注:相对于/boot,实际很简单如下:
[code:1]
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,6)
# kernel /vmlinuz-version ro root=/dev/hda12
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Linux (2.6.9-rc3)
root (hd0,6)
kernel /v2.6.9/vmlinuz-2.6.9-rc3 ro root=LABEL=/
initrd /v2.6.9/initrd-2.6.9-rc3.img
title Red Hat Linux (2.4.20-8)
root (hd0,6)
kernel /v2.4.20/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /v2.4.20/initrd-2.4.20-8.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1
[/code:1]
原来的
[code:1]
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,6)
# kernel /vmlinuz-version ro root=/dev/hda12
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,6)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1
[/code:1]
编译完后,会在/boot下产生一些新文件:
initrd-yournewkernelversion,
System.map -> System.map-newversion,
vlinuz-> vlinuz-newversion,
全部移到/boot/now 下.并把/安装目录/kernel-version/下的vmlinux也拷贝过来(其实似乎不用,不过原来人家就有一个)
另外,我在动所有配置文件之前,先保存一个原来的副本. |
|