FreeBSD 9 How-to Compile a Custom/New Kernel

April 1st, 2012 by Regaz
This short Guide will Show you the Condensed Commands to Compile a Custom Kernel on FreeBSD 9.
Here is the List of Steps and Commands Involved in the Process of a New Kernel Creation.
Running a Custom Kernel has Several Advantages in Performances and Functionality over a Generic one… And is Indispensable for Installing the VMWare Tools for FreeBSD9!
Incandescent FreeBSD
  1. Open a Terminal Window
    (Press “Enter” to Execute Commands)
  2. Login as SuperUser
    su 

    If Got “User is Not in Sudoers file” then Look: Solution

  3. Download and Install the Distribution Sources
    svn checkout svn://svn.freebsd.org/base/releng/9.0//usr/src

    Here you need to Wait for a Wile until the Process is Completed.

  4. Make a New Kernel Configuration File
    cd /usr/src/sys/i386/conf
    cp GENERIC MYKERNEL
  5. Build the Custom Kernel
    cd /usr/src
    make buildkernel KERNCONF=MYKERNEL

    Be Patient and Wait until the Process is Achieved.

  6. Install the New Kernel
    make installkernel KERNCONF=MYKERNEL

Tags: , , , , , , , , , ,