Darwin Development Tools
Getting the Source Code
Building and Installing the Kernel
Kernel Configuration
Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT 2002; root:xnu/xnu-344.obj~1/RELEASE_PPC
Just because you can build your kernel, does that mean you should? For most users, the answer is no, for the following reasons:
For many users, configuring a Unix kernel involves little more than choosing and configuring device drivers. On Darwin, most devices are not in the kernel; they have their own top-level directory in the CVS archive. So, you do not need to configure Darwin to set up additional hardware support.
Apple hardware is predictable. Most of you will be building Darwin for a G3 or G4 machine, and the range of possible chipsets is limited.
A Safety Net
If you have enough disk space to install two copies of Mac OS X, please do so before you start playing around with your working kernel. That way, you will have an operating system you can boot into if things go bad. (On most G3 and G4 Macintoshes, you can hold down the Option key when booting to select a boot disk.) Most importantly, your spare install of Mac OS X will contain backups of important files, such as the kernel and critical frameworks. If you're low on disk space, why not treat yourself to a FireWire drive? If you have a newer Macintosh with a built-in FireWire port, you can boot from a Mac OS X-compatible FireWire drive.
The Darwin kernel requires a collection of development tools that are not part of the Mac OS X Developer Tools package. To get these tools, visit the Darwin project at http://developer.apple.com/darwin/ and follow the links for the Darwin Development Environment for Mac OS X. Those links lead to a package called darwintools.pkg, which you should install. This package installs a number of header files, libraries, and tools into /usr/local. The tools are described in Table 7-1. The source code for these utilities and libraries can be found in the cctools, mkisofs, Libstreams, and bootstrap_cmds CVS modules. If you are working with an interim or seed release of Darwin or Mac OS X that is out of sync with the current Darwin Development Environment, you may need to check these utilities out and install them yourself.
Copyright © 2003 O'Reilly & Associates. All rights reserved.