http://linux.chinaitlab.com/kernel/729943.html
编译安装升级内核的方法
一、
#cd /usr/src
#make world
#cd sys/i386/conf
#cp GENERIC NEWKERNEL
#/usr/sbin/conf NEWKERNEL
#cd ../../compile/NEWKERNEL
#make
#make install
二、
#cd /usr/src
#mergemaster –p
#make buildworld
#make buildkernel KERNC
#make installkernel KERNC
# reboot
启动到单用户模式下。然后执行:
#mount –u /
#mount -a
# mergemaster -p
# make installworld
# mergemaster
# reboot
三、(适用于大内存高CPU)
cvsup先
# /usr/local/bin/cvsup -g -L 2 /etc/ports-supfile
# /usr/local/bin/cvsup -g -L 2 /etc/stable-supfile
cd /usr/src
# make -j 80 buildworld
# make -j 80 buildkernel
# make -j 80 installkernel
转载于:https://blog.51cto.com/axlrose/1292921