第一次编译Linux内核

在http://www.kernel.org/上下载一个合适版本的内核源码包

解压到/usr/src/kernels/目录

ln -s linux-2.6.30.10 linux

cd /usr/src/linux

cp /boot/config-release-distro .config        #复制当前系统的内核配置文件

make menuconfig                                       #配置内核选项

选择

Load an Alternate Configuration File

再选择刚才复制的.config文件

然后退出保存

make all                        #编译开始

make modules_install   #把内核查模块安装到/lib目录
make instal                   #把内核文件安装到/boot目录,并修改启动配置文件grub.conf

 

基本的步骤就这些

 

参考资料:

http://www.cromwell-intl.com/unix/linux-kernel.html

http://xudaiyang.blog.sohu.com/100373750.html

http://www.faqs.org/docs/Linux-HOWTO/Kernel-HOWTO.html

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-custom-kernel-modularized.html

你可能感兴趣的:(html,linux,redhat,unix,Blog)