![]() |
Now serving 104 guides. |
|
Compile a Custom Kernel (Legacy) General Information Want to speed up your system a bit as well as reduce boot time and resource usage? Or compile extra features into your kernel? The best way to do that is to compile your own custom kernel yourself. It is much simpler than you would think, ESPECIALLY if you've ever tried it in Linux. ;)Requirements
Configuration Log in or su to root
First you want to make a copy of GENERIC and give it a name of your own. For this guide we will just call it EXAMPLE.
Go down through the file and add any options that you wish to add into your kernel (assuming you know what your doing), and comment out stuff that you don't need. For example, if your not using SCSI you can comment out all the SCSI device lines, and the lines for NICs that your not using. Now be careful with the NICs, if your interface shows up as, say, xl0 and you comment out device xl then you might just want to stick with Windows. You can also safely comment out anything related to IPv6, INET6, FAITH, and GIF. You're not going to need those for a long time, if ever with this system. Also, if you are not sure what something is, there is usually an explanation next to it with a brief description. More detailed descriptions can be found in LINT.After you have finished commenting out what you don't need and adding what you want, save EXAMPLE and exit your text editor. It is now time to configure and build your kernel.
It is now time to actually build and install the kernel.
When you come back the new kernel will be compiled and installed (barring any screw-ups), and all you have to do is reboot.
If the system halts during boot or the kernel panics, then you made a boo-boo. Hard reset the computer (the reset button). The bootloader will give you the option to enter custom boot settings. I forget exactly what it says, but it's pretty obvious. Just type boot kernel.GENERIC and it should load the system normally. Then just figure out what you screwed up, fix it, rebuild and install the kernel, and hope for the best.If you need more help you can find me in #Beowulf or #freebsd on the SqueakNet IRC network (irc.squeaknet.net). This guide is © 2003 - 2008 Derrick Lewis. Author: Derrick Lewis 1 Comment Posted by Jon on August 07, 2004 at 11:23:09 pm EEST
LINT will appear if you are running 4.x. If you are running 5.x then you won't see LINT as it has been replaced with NOTES.
|
Copyright 2003 - 2008 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

