我来问问Rh9的内核问题`
我在想,RH到底让不让我编译内核?我装RH8用他们自己提供的内核编译模块从来没成功过,现在用RH9一样不成功。
到是我用RH8的时候下了一个内核编译模块一点问题都没有。还把内核升级了一下。 most of the time, i compile the kernel from rh9 and it also failed. but i know for certain configuration, it is ok.
if u want to do serious kernel programming, i suggest you to use a vanilla kernel. cd /usr/src/linux-2.xxxx
make mrproper
cp configs/kernel-2.xxx-i686.config .config
make oldconfig/ make menuconfig / make xconfig
make dep ; make clean ; make install ; make modules ; make modules_install yes, the .config from rh is ok. but guys always want to customize it.
:-D:-D:-D make mrproper 这一步很重要。不做他就不可能编译下去
拷贝了RH的config 以后,就可以用make menuconfig或者 make xconfig 修改了。不过一般情况下除了打开NTFS以外值得修改的地方不多。 that depends on what kind of machine is used. 刚才试了一下make mrproper,不就是我平时用的make clean嘛,我编译的时候,make bzImage没问题,就是编译模块通不过。 make mrproper 主要是一些和体系结构有关的路径初始化。 iceblood, u are wrong, there are difference as YaoFei said. u can read Makefile to know it.
页:
[1]