2009年7月30日星期四

vanilla内核安装卸载

从kernel.org下载下来的kernel叫做vanilla kernel,大部分Linux版本都会有自己的kernel,比如我用的fedora,社区会给他打很多补丁。因此直接想要在fedora上边装载 vanilla kernel是不行的,至少我试了几次都直接开机崩溃了,一次是kernel panic,一次是X window死了。

按我老师的说法是:
Well, Fedora can and can't use a Vanilla kernel. The Fedora kernel is a
vanilla kernel with a bunch of patches on it. If you try to use a vanilla
kernel on fedora, it may work fine -- or you may run into odd problems that
have to do with some fedora user-land applications expecting the kernel
patches to be in there. I think most distributions apply their own custom
patches to the kernel. Debian may be an exception, I am not sure.

我折腾了半天把那个vanilla kernel装上去了。开不了机,只好使用grub换到原来的内核。下面还要把vanilla kernel删掉
wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2
tar xjf linux-2.6.24.tar.bz2
cd linux-2.6.24
make defconfig
make all
su -c "make modules_install install"

这个好像只能手动删除
/usr/src/linux-2.6.29
/lib/modules/2.6.29
/boot/vmlinuz-2.6.29 or kernel-2.6.29
/boot/initrd-2.6.29
/boot/System.map-2.6.29

就算完事了。。。还得去弄那个src.rpm包。。。命苦阿。。。

没有评论:

发表评论