Configuring the FreeBSD Kernel
2009-05-13 01:28:00来源:未知 阅读 ()
for FreeBSD 5.X by Joel Dahl.1、Why Build a Custom Kernel?
Traditionally, FreeBSD has had what is called a “monolithic” kernel. This
means that the kernel was one large program, supported a fixed list of devices,
and if you wanted to change the kernel's behavior then you had to compile a new
kernel, and then reboot your computer with the new kernel.
Today, FreeBSD is rapidly moving to a model where much of the kernel's
functionality is contained in modules which can be dynamically loaded and
unloaded from the kernel as necessary. This allows the kernel to adapt to new
hardware suddenly becoming available (such as PCMCIA cards in a laptop), or for
new functionality to be brought into the kernel that was not necessary when the
kernel was originally compiled. This is known as a modular kernel.
Despite this, it is still necessary to carry out some static kernel
configuration. In some cases this is because the functionality is so tied to the
kernel that it can not be made dynamically loadable. In others it may simply be
because no one has yet taken the time to write a dynamic loadable kernel module
for that functionality.
Building a custom kernel is one of the most important rites of passage nearly
every BSD user must endure. This process, while time consuming, will provide
many benefits to your FreeBSD system. Unlike the GENERIC
kernel, which must support a wide range of hardware, a custom kernel only
contains support for your PC's
hardware. This has a number of benefits, such as:
Faster boot time. Since the kernel will only probe the hardware you have on
your system, the time it takes your system to boot can decrease
dramatically.
Lower memory usage. A custom kernel often uses less memory than the GENERIC kernel, which is important because the kernel must
always be present in real memory. For this reason, a custom kernel is especially
useful on a system with a small amount of RAM.
Additional hardware support. A custom kernel allows you to add in support for
devices which are not present in the GENERIC kernel,
such as sound cards.
2、Building and Installing a Custom Kernel
First, let us take a quick tour of the kernel build directory. All
directories mentioned will be relative to the main /usr/src/sys directory, which is also accessible through the
path name /sys. There are a number of subdirectories
here representing different parts of the kernel, but the most important for our
purposes are arch/conf,
where you will edit your custom kernel configuration, and compile, which is the staging area where your kernel will be
built. arch represents one of i386, alpha, amd64, ia64, powerpc, sparc64, or pc98 (an alternative development branch of PC hardware,
popular in Japan). Everything inside a particular architecture's directory deals
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:在特定的时间做特定的事
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash