Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Targets

A target is a kind of machine PureDarwin is built for. PureDarwin builds for x86_64, arm64, armv6 and riscv64. x86_64 is the main target. The others are at different stages of bringup, which means getting a system to start on a new machine for the first time.

TargetBoots to a shellDisplayPage
x86_64 PCs and laptopsYesThe Argon desktop, with AMD, Intel and NVIDIA GPU driversx86_64
arm64, QEMU virtYesA simple framebuffer, and a Wayland imagearm64 virt
armv6, Raspberry Pi ZeroNot yet, it reaches dyld-Pi Zero

arm64 Hardware

These don’t have a page of their own yet.

MachineState
NVIDIA Jetson TX1Has booted to the desktop. GPU work is still in progress
Lenovo ThinkPad X13s (Snapdragon 8cx Gen 3)In bringup. Board support and the kernel build, and the USB driver starts on it
Orange Pi Zero 3 (Allwinner H618)Board support is in, but it hasn’t been tested on hardware yet. No Wi-Fi, and no GPU because its Mali driver is GPL
Orange Pi Zero 4 (Allwinner A733)Board support is in, but it hasn’t been tested on hardware yet. No Wi-Fi
Google Pixel 3a (Snapdragon 670)In bringup. Board support, a serial console and an Android boot image build
Snapdragon 410 (MSM8916) USB stickIn bringup. Its storage works, and its GPU and Wi-Fi drivers are being written
Apple A9 (iPhone 6s)Runs under the Inferno emulator
Apple M1Bringup in progress
riscv64, QEMU virtBuilds, bringup in progress

Earlier Targets

The Raspberry Pi 3 and the iPad 6 booted to a shell on PureDarwin’s older Darwin 20.5 tree. Their pages, Pi 3 and iPad 6, describe that work. Support for the iPad 6 is being brought over to the current tree.

How the Boards Boot

The arm64 boards start xnu-loader as if it were a Linux kernel, from the board’s own bootloader. The loader reads the device tree, the description of the hardware the board passes in. Board-specific code is only needed where the device tree can’t describe the hardware.

What All Targets Share

Every target uses the same launchd and userland. All of them except armv6 boot through a kernel collection, a single file that holds the kernel and its drivers. armv6 uses the older prelinked kernel format. What differs is the platform driver, the list of kexts and how the kernel is loaded.

Most of the kernel and kext code is shared between architectures. ARM work can break x86_64 without anyone noticing until an image fails to boot. After you touch shared kernel or kext code, build and boot an x86_64 image. This is the most common way a working tree stops working.