- Update FreeBSD to latest patch
freebsd-update fetch
freebsd-update install - Install git
pkg install git - Updating source file
git clone -o freebsd https://git.FreeBSD.org/src.git /usr/src
cd /usr/src
git checkout stable/13 - prepare custom kernel file
mkdir /root/kernels
cd /usr/src/sys/amd64/conf
cp GENERIC /root/kernels/MYKERNEL
ln -s /root/kernels/MYKERNEL - add/remove options in the MYKERNEL file
- Compile and install MYKERNEL, then reboot
cd /usr/src
make buildkernel KERNCONF=MYKERNEL
make installkernel KERNCONF=MYKERNEL
reboot - Check if MYKERNEL is installed correctly
uname -a
If correct, it should show MYKERNEL
Compiling Custom Kernel
Last modified by Yu Pang Law on 2023/01/24 12:36