Chinaunix

标题: 求LINUX内核编译的详细过程 [打印本页]

作者: huangjiyun007    时间: 2009-10-22 16:52
标题: 求LINUX内核编译的详细过程
本人现在学习linux
对于内核的编译很是头疼
对于每一步的意义没有完全理解。。
希望哪位高手来看看
作者: nntp    时间: 2009-10-22 16:54
google  how to compile linux kernel 2.6
作者: jiang870320    时间: 2009-10-22 17:59
一种是rpm包   rpm -ivh kernel*.rpm
一种是src.rpm   rpm  -ivh kernerl.*src.rpm  
cd /usr/src  
rpmbulid -ba --target=$(uname -i){例如i686}  ./kernel*.spec
make menuconfig
make
make modules
make moudes_install
make install

还有一种就是tar.gz/bz2
解开后就
make menuconfig
.
.
.
下面和中间的一种一样

在看一下vim /etc/boot/grub/grub.conf 有没有多出来几行   看一下/boot 是不是有 vmlinuz   initrd*.img 文件 不要删掉老的内核 测试成功稳定再使用新内核
作者: nelab    时间: 2009-10-22 21:39
google
作者: nelab    时间: 2009-10-22 21:41
http://blog.chinaunix.net/u1/38871/showart.php?id=2073085
作者: chenyx    时间: 2009-10-22 21:50
http://www.linuxfromscratch.org/ ... apter08/kernel.html
作者: emmoblin    时间: 2009-10-24 12:27
有一个金步国的讲解内核编译选项的文章,你搜搜去
作者: gamester88    时间: 2009-10-24 12:39
http://linux.chinaunix.net/bbs/viewthread.php?tid=1110688

marsaber 做的pdf,你可以下下来看看
作者: kns1024wh    时间: 2009-10-28 22:41
标题: 回复 #1 huangjiyun007 的帖子
2.4之后的内核重新编译已经是非常简单的了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2