Freebsd 编译内核

#更新源代码:
cp /usr/share/examples/cvsup/stable-supfile /root/stable-supfile
cd /root/
ee stable-supfile 
#更改 default host = cvsup3.freebsdchina.org
#PING一下选择最快的

cvsup -L2 stable-supfile
#待更新完毕
cd /sys/i386/conf
cp GENERIC /root/kernel
cd /root/
ee kernel
#修改内核配置
ln - s kernel /sys/i386/conf/kernel
cd /usr/src
make buildkernel KERCONF=kernel
#视机器配置二十分钟至一小时不等编译完毕
make installkernel KERCONF=kernel
reboot
uname -a
#查看当前版本

如果有问题请用:
unload
boot kernel.old

原文地址:https://www.cnblogs.com/apexchu/p/1108394.html