Freebsd building a kernel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) Die Seite wurde neu angelegt: „=Links= *https://www.digitalocean.com/community/tutorials/how-to-customize-and-recompile-your-kernel-on-freebsd-10-1“ |
Thomas (Diskussion | Beiträge) |
||
| (11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Prerequisites= | |||
==Install subversion== | |||
*pkg install -y subversion | |||
*rehash | |||
==Get the kernel== | |||
*svn co https://svn0.us-east.FreeBSD.org/base/stable/10 /usr/src | |||
=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= | =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 | |||
Aktuelle Version vom 1. November 2017, 12:23 Uhr
Prerequisites
Install subversion
- pkg install -y subversion
- rehash
Get the kernel
- svn co https://svn0.us-east.FreeBSD.org/base/stable/10 /usr/src
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