Difference between revisions of "Darwin"

From AwkwardTV
Jump to: navigation, search
(Installing Darwin on USB drive and boot generic PC from there)
(Installing Darwin on USB drive and boot generic PC from there)
Line 29: Line 29:
 
# Boot
 
# Boot
 
</pre>
 
</pre>
 +
 +
This easily fits on a 512 MB USB stick, and probably can be slimmed down further (e.g. for embedded applications).
 +
 +
This does boot, but as soon as the kernel is supposed to appear, it reboots the PC (even before printing a kernel panic).

Revision as of 14:51, 14 April 2007

About Darwin

As Apple advertises, Mac OS X is built on a "secure, reliable, Open Source foundation", namely Darwin.

We want to use this system. There are a couple of reasons why Darwin is great:

  • It can read and write HFS+ Journaled natively
  • Mac and Apple TV users are familiar with the workings of the system
  • There is lots of Open Source applications available, including a graphical X desktop

This page

As there is little information left since the OpenDarwin project (which is NOT to be confused with the Darwin project itself) closed, this page is here in order to collect information on how to practically use Darwin.

The first goal will be to install Darwin on a USB drive and boot a generic PC from there. This serves as a starting point for further projects based on Darwin.

Please note that this page is about 100% legitimate uses of the Darwin Open Source system only.

Installing Darwin on USB drive and boot generic PC from there

This is not working yet. Any help is greatly appreciated.

# Get Darwin 8.0.1 ISO for i386 from Apple
# Mount ISO
# Prepare USB drive by formatting it as HFS+ (Journaled) and enabling permissions
# Copy /usr /bin /sbin /System /Library /private /cores /mach_kernel from ISO to USB drive
# Bless USB drive and set partition active
# Change Boot.plist 
# Boot

This easily fits on a 512 MB USB stick, and probably can be slimmed down further (e.g. for embedded applications).

This does boot, but as soon as the kernel is supposed to appear, it reboots the PC (even before printing a kernel panic).