Compile a Custom Kernel

General Information

There may be two main reasons as to why you would want a custom kernel on your system: 1) You want to add some functionality to your system such as audio support, or 2) you may want to remove some unused drivers to conserve memory.

Either way, making a custom kernel will help your machine to be a faster box rather than using the GENERIC kernel.


  1. A FreeBSD system (5.x or greater)
  2. Your favorite text editor


We will want to use sysinstall to get the src:

 # sysinstall 

  1. select Configure
  2. select Distributions
  3. select src
  4. select sys (/usr/src/sys (FreeBSD Kernel))
  5. press Enter
  6. press Enter
  7. select CDROM (Or choose FTP if you chose NOT to install from CDROM)
  8. select Install

This will take a few minutes to install via CDROM.


Once you have the source installed we can then start on the kernel customization:

 # cd /usr/src/sys/i386/conf 

This is where FreeBSD keeps its kernel configuration files for Intel computers. nike air max tn soldes adidas superstar femme The generic kernel config is in the file GENERIC. nike free buy ff14 gil new balance femme Adidas soldes All the possible kernel options can be found in the NOTES file. air jordan 11 What we will want to do first is copy GENERIC to a new Kernel name.

Note: *NEVER* edit the GENERIC file.

A few notes about editing your new kernel file:

1) Here is an example line from the kernel

 device ppbus # Parallel port bus (required) 

Any line that says (required) means exactly that. buy bns gold asics gel lyte v acheter chaussures nike nike requin ffxiv Items Don’t comment it out or delete it. timberland 6-inch premium nike air max tn soldes nike air presto So in this example, you can delete everything below that section if you don’t have a Printer, TCP/IP over parallel, or a Parallel port interface device.

2) Don’t delete any lines. adidas femme nike internationalist nike air max pas cher Comment them out with a # in the front.

3) Always change your ident line as follows

Scroll down the line that reads:

 ident GENERIC 

Change the line to read:


4) If you’re not sure what you have or don’t have for devices, you can check this in /var/log/messages (provided it hasn’t been forever since your last reboot).

This is a great example. adidas gazelle soldes ugg australia classic adidas femme nike air max 2016 cheap ffxiv gil There are a ton of Network Card drivers in the kernel and you really only need one. nike air max 90 timberland soldes hommes timberland soldes adidas ultra boost Let’s look in /var/log/messages for your Ethernet Card. nike air max homme new balance france adidas superstar adidas zx flux homme I’ll use my NIC as an example:

 fxp0:  port 0xec00-0xec3f mem 0xdf100000-0xdf100fff,0xdf000000-0xdf0fffff irq 11 at device 9.0 on pci0 

So if we edit MYKERNEL and scroll down to the PCI and make sure you keep the following lines in there and comment everything else in the PCI and ISA Network card sections:

 device miibus # MII bus support device fxp # Intel EtherExpress PRO/100B (82557, 82558) 

So go ahead and make all the changes from there.

Once you are done, it’s time to compile the kernel.

 # cd /usr/src # make buildkernel KERNCONF=MYKERNEL 

If you get some errors you screwed up. adidas pas cher Go fix it or copy GENERIC back to MYKERNEL and start over.

Speak Your Mind