Freebsd building a kernel: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Thomas (Diskussion | Beiträge)
Zeile 14: Zeile 14:
Example:
Example:
  options        IPSEC_NAT_T
  options        IPSEC_NAT_T
==cd to /usr/src==
*cd /usr/src
==Build==
*make buildkernel KERNCONF=XINUXKERNEL
==Install==
*make install KERNCONF=XINUXKERNEL


=Links=
=Links=
*https://www.digitalocean.com/community/tutorials/how-to-customize-and-recompile-your-kernel-on-freebsd-10-1
*https://www.digitalocean.com/community/tutorials/how-to-customize-and-recompile-your-kernel-on-freebsd-10-1
*https://www.freebsd.org/doc/de/books/handbook/kernelconfig-config.html
*https://www.freebsd.org/doc/de/books/handbook/kernelconfig-config.html

Version vom 1. November 2017, 11:04 Uhr

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:

options         IPSEC_NAT_T

cd to /usr/src

  • cd /usr/src

Build

  • make buildkernel KERNCONF=XINUXKERNEL

Install

  • make install KERNCONF=XINUXKERNEL

Links