View Single Post
  #4   (View Single Post)  
Old 21st May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Clean out the /usr/obj directory:
Code:
# cd /usr/src
# make cleanworld
Update to the FreeBSD 7.0 source tree by setting tag=RELENG_7_0 in your supfile, then run:
Code:
# csup /path/to/supfile
Build the new world:
Code:
# cd /usr/src
# make -j2 buildworld
(Change the 2 to 1 more than the number of CPUs you have.)

Build a new GENERIC kernel:
Code:
# make buildkernel
Install the new GENERIC kernel:
Code:
# make installkernel
Reboot. If it boots correctly, then you can proceed to install the world:
Code:
# cd /usr/src
# make installworld
Then run mergemaster (be sure to only install files you haven't edited, and to merge files you have edited, like passwd and group):
Code:
# mergemaster -iU
Then reboot once more to load the new world. And then rebuild all your ports. If everything is working correctly, then you can edit your kernel config file, and build your custom kernel:
Code:
# cd /usr/src
# make KERNCONF=MYKERNEL buildkernel
# make KERNCONF=MYKERNEL installkernel
(where MYKERNEL is whatever your kernel config file is called)
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote