I’ve decided to take on the task of learning to upgrade the FreeBSD kernel. Here are the steps that I took upgrading to the 6.2 release:
- Copy the standard-supfile to either your home directory or the /root directory.
cp /usr/share/examples/cvsup/standard-supfile /root - Edit the copied standard-supfile to reflect the following changes:
- change the host to a mirror
- make sure the release=csv tag=RELENG_6_2 where 6_2 is the version to upgrade to
- while in the directory where the copied standard-supfile is (in this case, /root):
cvsup standard-supfile
This syncs your /usr/src with the current version. cd /usr/srcmake buildworldThis takes a little time.make buildkernelThis makes the kernelmake installkernel- INSTEAD OF issuing the make buildkernel, make installkernel, you can issue a
make kernelwhich handles both items for you. - Once the kernel has been installed, reboot the system.
- If you are staying within a release (i.e., 6.2 prerelease to 6.2 stable) you can bypass this step…
mergemaster -p - su to root.
cd /usr/srcmake installworld - mergemaster
- reboot
Addition on July 30, 2008:
For a quicker mergemaster, you can do the following after make installworld
- cd /etc/rc.d/
- rm *
- mergemaster -i
ADDITIONAL INFORMATION:
Sometimes it’s necessary to clean up after an old install (I recently got the following:
make: don't know how to make /usr/src/usr.bin/make/sprite.h. Stop
)
cd /usr/src
make cleandir
make cleandir
If that doesn’t work:
cd /usr/obj
chflags -R noschg *
rm rf *
Comments are closed.