Freebsd building a kernel
Zur Navigation springen
Zur Suche springen
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