阅读内容

如何编译debian内核

[日期:2007-09-26] 来源:Linux公社  作者:Linuxidc


5 Configure The Kernel

It's a good idea to use the configuration of your current working kernel as a basis for your new kernel. Therefore we copy the existing configuration to /usr/src/linux:

make clean && make mrproper
cp /boot/config-`uname -r` ./.config

Then we run

make menuconfig

which brings up the kernel configuration menu. Go to Load an Alternate Configuration File and choose .config (which contains the configuration of your current working kernel) as the configuration file:

 

如何编译debian内核如何编译debian内核

Then browse through the kernel configuration menu and make your choices. Make sure you specify a kernel version identification string under General Setup ---> () Local version - append to kernel release. I use -default1 so our kernel .deb package will be named linux-2.6.18.3-default1_2.6.18.3-default1_i386.deb. Please make sure that the string contains a digit (e.g. 1, 2, ...) because otherwise the kernel build process will result in an error.

Please note: After you have installed linux-2.6.18.3-default1_2.6.18.3-default1_i386.deb and decide to compile another 2.6.18.3 kernel .deb package, it is important to use a different version string, e.g. -default2, -default3, etc., because otherwise you can't install your new kernel because dpkg complains that linux-2.6.18.3-default1_2.6.18.3-default1_i386.deb is already installed!

上一页123456下一页  GO
【内容导航】
第1页:如何编译debian内核 第2页:如何编译debian内核
第3页:如何编译debian内核 第4页:如何编译debian内核
第5页:如何编译debian内核 第6页:如何编译debian内核



相关资讯      
本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:

L
I
N
U
X


GOOGLE搜索
Google