Monday, December 31, 2012
FreeBSD CUSTOM kernel recompile
=========================
PREPARE 1st source kernel build world
=========================
oGcServ# cd /boot
oGcServ# cp -Rp kernel kernel.good-09-08-2011
### if stable then, stable-supfile, else standard-supfile
# if you have installed fastest_cvsup mirror go cmd:
oGcServ# csup -h `/usr/local/bin/fastest_cvsup -q -c us` /usr/share/examples/cvsup/standard-supfile
# else
oGcServ# csup -L 2 -h cvsup2.freebsd.org /usr/share/examples/cvsup/standard-supfile
oGcServ# cd /usr/src
oGcServ# less UPDATING - check for important notes
oGcServ# make -j4 buildworld &
oGcServ# make -j4 buildkernel &
oGcServ# make KODIR=/boot/kernel.release installkernel &
oGcServ# nextboot -k kernel.release
oGcServ# shutdown -r now
oGcServ# mv /boot/kernel.release /boot/kernel
oGcServ# mergemaster -p
oGcServ# make installworld
oGcServ# mergemaster -viU
oGcServ# shutdown -r now
===================
RECOMPILE CUSTOM
===================
oGcServ# cd /usr/src/
oGcServ# make -j4 buildkernel KERNCONF=OGCBOX &
oGcServ# make KODIR=/boot/kernel.ogcbox KERNCONF=OGCBOX installkernel &
oGcServ# nextboot -k kernel.ogcbox
oGcServ# shutdown -r now
oGcServ# cp -Rp kernel kernel.bak-29-08-2011
oGcServ# mv /boot/kernel.ogcbox to /boot/kernel
oGcServ# shutdown -r now
Note: putting " & " for backgroud process. even we got disconnect from interenet, the process remain in remote server as background. helpful for Myanmar users who are using internet from stupid no stable internet connection provider. like ME. lmao rofl
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment