设为首页 加入收藏

TOP

如何编译debian内核
2014-11-23 22:28:25 来源: 作者: 【 】 浏览:8
Tags:如何 编译 debian 内核

Version 1.0
Author: Falko Timme
Last edited 11/28/2006


Each distribution has some specific tools to build a custom kernel from the sources. This article is about compiling a kernel on Debian Sarge systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution. It also shows how to patch the kernel sources if you need features that are not in there.


I have tested this on Debian Sarge in VMware Server.


I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!


The goal of this tutorial is to build a kernel .deb package that can be installed on the system, and that you can share with others and install on other Debian Sarge systems which is a big advantage compared to the "traditional" way where you don't end up with a .deb package.



First we update our package database:


apt-get update


Then we install all needed packages like this:


apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev


Please note that we have just installed udev which replaces the old (deprecated) devfs in new kernels. The default Debian Sarge kernel (2.6.8) still uses devfs which isn't available anymore in new kernels.


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Ubuntu编译环境相关 下一篇一公司的Linux内核驱动笔试试题

评论

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