Project

General

Profile

Feature #811

Compile a Custom Kernel for VIMAGE Support on FreeBSD

Added by Daniel Curtis almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/15/2016
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:

Description

This is a guide on how I compiled VIMAGE support into a custom FreeBSD 10.2 kernel.

Download the kernel sources

  • Install subversion:
    pkg install subversion
    
  • Download the FreeBSD 10.2 kernel sources
    svn checkout http://svn.freebsd.org/base/release/10.2.0/ /usr/src
    

Create a custom kernel config

  • Change into the kernel source directory and create a new kernel
    cd /usr/src/sys/amd64/conf
    cp GENERIC NEWKERNEL
    
  • Edit the new kernel config file:
    vi NEWKERNEL
    
    • And add the following:
      options         VIMAGE
      options         RACCT
      options         RCTL
      

Build and install the new kernel

  • Change to the kernel source directory, then build and install the new kernel:
    cd /usr/src
    make buildkernel KERNCONF=NEWKERNEL
    make installkernel KERNCONF=NEWKERNEL
    

    NOTE: This process took about 2 hours on the VM I used.

Resources

Also available in: Atom PDF