Getting the Right Version
The only version of Darwin that should work with your copy of Mac OS X is the same one that Apple used. Your mileage may vary if you try to use an older or newer version. So, before you try anything like that, get the correct version and use that as a dry run to verify that you can build and install a working kernel.
First, find your Darwin version with the uname -v command. The output you’re looking for is the xnu (Darwin kernel) version, shown in italic type:
% uname -v Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT 2002; root:xnu/xnu-344.obj~1/RELEASE_PPC
You need to translate that number into an Apple CVS tag, by replacing
the period (.) with a dash (-)
and prefixing the version with Apple-. So, the
Apple CVS tag for the xnu version previously
shown would be Apple-344. This is the version you
must supply with the -r flag. Now that you know
the CVS tag, you can check it out:
cvs -z3 checkout -rAPPLE_CVS_TAGmodulename
Where APPLE_CVS_TAG is the CVS tag you
computed, and modulename is
xnu. For example:
% cvs -z3 checkout -r Apple-344
cvs server: Updating xnu
U xnu/APPLE_LICENSE
U xnu/Makefile
U xnu/PB.project
U xnu/README
.
.
.Tip
The CVS tags are symbolic names associated with a snapshot of the source code in time. An easy way to browse the available tags is through the Darwin CVSWeb archive, available at http://www.opensource.apple.com/tools/cvs/. You will need to provide your registered username and password to access the archive. You can also ...