Skip to content
OrchardLinuxPublic

About

Linux for the whole Apple A-series platform, iPads and iPhones from A5 to A13: device descriptions, kernel configs, firmware recipes and the build recipes the orchard command runs

Resources

Contributing

Stars

190 stars

Watchers

3 watching

Forks

Latest commit

 

History

1,676 Commits

Folders and files

Repository files navigation

Orchard

Linux and the full Omarchy A desktop for the whole Apple A-series platform: iPads and iPhones from A5 to A13.

Linux on Apple devices. This repository holds everything a device needs: device descriptions, kernel configuration, Pongo patches, firmware recipes, the recovery and device runtime, and the build recipes. The orchard command from OrchardLinux/tools builds, boots and installs it from them. Distributions such as omarchy-a and minimal-linux build on it.

Start

curl -fsSL https://raw.githubusercontent.com/OrchardLinux/tools/main/install.sh | sh
git clone https://github.com/OrchardLinux/orchard && cd orchard
orchard run examples/minimal-boot

The first line installs the orchard command (one program, from OrchardLinux/tools). orchard doctor shows what this computer has and lacks for building and booting (Podman, git, Python, USB access on Linux); orchard setup NAME gets one of them. Put the device in DFU mode before orchard run: it builds what is missing for the attached board, then boots it. The first build compiles Linux, which takes a while; later ones reuse it.

Supported hardware

Does my device work? See the table.

Every device in that table runs the full Omarchy A desktop.

Every board, chip and feature state: device compatibility.

Install a system

Follow the install instructions of a distribution, e.g. omarchy-a. Every release of a distribution carries its installer:

curl -fsSL https://github.com/OrchardLinux/omarchy-a/releases/latest/download/install.sh | sh

It needs no Python, uv or checkout: install.sh installs the orchard command (OrchardLinux/tools) and runs orchard install for that release. The command stays on PATH for launch, devices and the rest. To install only the command:

curl -fsSL https://raw.githubusercontent.com/OrchardLinux/tools/main/install.sh | sh

To start an installed system again, connect the device in DFU mode and run orchard launch. The host sends only Pongo and m1n1; m1n1 reads the boot entries from the device's boot partition and starts the default system by itself, as a PC's boot loader does: the one installed last, or whichever a system made the default since. orchard launch --list lets you pick an entry, --entry ID starts one entry once. Any computer with Orchard can launch any installed system.

Connect to a running system

orchard shell, exec, push and pull discover a running device over USB by default. To use Wi-Fi instead, pass an SSH address, for example orchard shell --host 192.168.0.19 --user tablet or orchard exec --host 192.168.0.19 --user tablet -- uname -a. The installed system must allow this computer's Orchard SSH key: the installer offers that as its last question, and orchard ssh-access adds it later to a system installed without it, by signing in once on the device's USB serial console with the user's password. For a RAM payload, use --host 192.168.0.19 --ram instead; it connects as root with the RAM key. The payload must have SSH and Wi-Fi configured.

Network connections accept and remember a new SSH host key on first use; unlike USB RAM sessions, this does not verify the device's identity over serial. Verify the key out of band. Changed keys are rejected. RAM payloads generate a new key each boot; to trust a new boot, remove the old address with ssh-keygen -R 192.168.0.19 -f ~/.cache/orchard/private/ram-ssh/network_known_hosts (adjust the cache path if configured differently).

Develop

The orchard command is a program of its own, from OrchardLinux/tools; this repository is its data: the recipes, producers and board descriptions. It builds from the newest nightly's recipes and board data (orchard data update fetches them). To work on orchard itself, run a checkout's own bin/orchard by its path: it is the same command on that checkout's recipes and data, from any directory. bin/orchard python … runs Python in the checkout's environment.

A payload is built for every board of one platform (out/apple-16k/, out/apple-4k/). orchard run takes the platform from the attached board; orchard build from --device BOARD, --platform, a device in the checkout's orchard.local.toml (never committed) or the attached board. Nothing in a repository names a board.

Bring up a device or try a driver in a worktree of its own:

git worktree add ../orchard-gpu -b gpu-a10
cd ../orchard-gpu/examples/minimal-boot
orchard run

The examples are starting points: minimal-boot (a serial shell), charger-001 (a read-only observation), hardware-check (a report on what a device offers). orchard python ARGS runs Python in the checkout's environment, e.g. a distribution's own scripts or orchard python -m unittest discover -s tests. See BUILD.md for building components directly.

A distribution checkout has an orchard.toml with a [release] table naming its build entry (name = "...", [release] build = "tools/build.py"). There orchard build builds a whole release into out/releases/dev-DATE-TIME, orchard run boots its recovery on the attached device without installing, and orchard install installs the last build (tooling).

The repository contains recipes and code, not private Apple firmware, calibration, device trees captured from hardware, or session credentials. Device-specific inputs are prepared on the user's host.

License

See LICENSE, NOTICE, LICENSES/, and per-file SPDX identifiers for component licenses and upstream credits.

About

Linux for the whole Apple A-series platform, iPads and iPhones from A5 to A13: device descriptions, kernel configs, firmware recipes and the build recipes the orchard command runs

Resources

Contributing

Stars

190 stars

Watchers

3 watching

Forks

Releases

Contributors

Languages