设为首页 加入收藏

TOP

Debian Linux 2.6.23.8内核编译过程
2014-11-23 22:39:21 来源: 作者: 【 】 浏览:5
Tags:Debian Linux 2.6.23.8 内核 编译 过程

Debian Linux 2.6.23.8内核编译全过程:


准备:
安装make ,gcc, make-kpkg,运行menuconfig等等和编译内核相关的工具。
apt-get install build-essential kernel-package libncurses5-dev
或者(?)
[apt-get install gcc make automake autoconf gawk m4 kernel-package initrd-tools]
[apt-get install build-essential bin86 kernel-package]
[apt-get install libqt3-headers libqt3-mt-dev]


下载内核:
http://www.kernel.org
cp ./linux-2.6.23.8.tar.bz2 /usr/src
tar -xvf linux-2.6.23.8.tar.bz2
ln -s ./linux-2.6.23.8 linux


make mrproper 清理以前编译的包


如果使用以前内核配置的话
cp /boot/config-`uname -r` ./.config 拷贝使用的内核的config


make config
或者 make menuconfig (需要libncurses5-dev) 或者 make xconfig (需要QT库)或者make gconfig (需要Gtk+)


推荐的有
Processor type and features 部分包含了处理器的特征。
Subarchitecture Type 必须选PC
Processor family 这就是问处理器了,选自己的。
preemption Model 根据自己的情况选 从上到下是服务器 桌面 低配置桌面。
High Memory Support 大内存支持,如果内存小于等于1g就使用off。
Timer frequency 建议改为1000hz。
kexec system call 这个是快速重启系统,启动它需要另外一个kexec-tool的支持,有机会再详细谈谈它的使用。


IO Schedulers 部分包含了IO的设置。
推荐关闭Anticipatory I/O scheduler Deadline I/O scheduler 仅仅留下CFQ。


Kernel hacking 部分里关闭kernel debugging


make-kpkg clean 清一次包


make-kpkg --append-to-version= <486> --initrd revision= kernel_image kernel_headers


耗时约一个半钟头。Athlon 2000+ 1.25G 256MB Mem


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇在Linux下获取cpu的个数 下一篇Vi加行码

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: