Freebsd building a kernel

Aus xinux.net
Zur Navigation springen Zur Suche springen

Prerequisites

Install subversion

  • pkg install -y subversion
  • rehash

Get the kernel

Kernel building

Go to the right directory

  • cd /usr/src/sys/`uname -m`/conf

Save the generic config

  • cp GENERIC XINUXKERNEL

Add an option to the new file

  • XINUXKERNEL

Example:

cd to /usr/src

  • cd /usr/src

Build

  • make buildkernel KERNCONF=XINUXKERNEL

Install

  • make installkernel KERNCONF=XINUXKERNEL

Reboot

  • reboot

Links