orchard run [DIRECTORY] [--boot ROUTE]builds the project in DIRECTORY (this one by default), as
build does and with its options, and boots what it built in
RAM on the device in DFU mode. Nothing is installed.
DIRECTORY can also be the name of one of orchard's examples:
orchard run hardware-check builds and boots examples/hardware-check of the
recipes in use (the newest nightly's, or --data's), with no checkout. A name
is a word without a /; a directory of that name here wins, and the first
line says which one is used. The example's build stays in the cached copy of
the nightly and goes when that copy is replaced. An unknown name lists the
examples. orchard build NAME builds one the same way.
The device is started by its boot route
(install.md): --boot ROUTE, or
--ibss, --palera1n, --checkra1n, --autogo. m1n1 then boots the kernel, which
goes up in one upload behind it where it fits. What is too large for a
patched iBoot's upload (more than 40 MiB by the ibss route) goes through
m1n1's proxy once it runs; --proxy asks for that way whatever the size.
| To | Give |
|---|---|
| boot the last build as it is | --no-build |
| build the project with a kernel tree of your own | --kernel DIR, as for build |
| boot files of your own | --kernel FILE --dtb D… --initramfs I [--bootargs "…"]: nothing is built |
| start m1n1 alone and leave it waiting on USB | --bare |
| use a local m1n1 | --m1n1 FILE: the plain build for palera1n and checkra1n, the Mach-O build for ibss |
| use a local Pongo | --pongo FILE, for the palera1n and checkra1n routes |
| use a local loader of Cascadia's on the autogo route | --loader FILE, as for build |
| give the ibss route its firmware keys | --keys FILE (also ORCHARD_FIRMWARE_KEYS): see Firmware keys |
| add the board's peripheral firmware to the initramfs | --firmware |
| end once the start has gone out, for a system that never shows up on USB | --no-wait |
| wait for DFU mode | --wait SECONDS |
| bound the device work | --timeout SECONDS (300) |
On the A12 boards (iPhone XR, XS, XS Max; iPad mini 5, iPad Air 3, iPad 8)
the ibss route is the one there is, and no tool of ours enters their boot
ROM either: a board running usbliter8 does, with the device plugged into it.
The device then shows as usbliter8 under Pwned in devices, and from there
orchard run goes on as from gaster: Apple's iBSS, patched, then m1n1. The
iBSS takes any manifest, so no ticket of the device is needed. Found in plain
DFU mode, the device is waited for in pwned DFU mode, up to
ORCHARD_PWNED_DFU_SECONDS (600); --no-wait ends at once instead, with
status 5.
On the 32-bit boards (A5 to A6X: iPad 2, iPad mini, iPad 3, iPad 4,
iPhone 5) the ibss route is the same as on every other board: Apple's iBSS
and iBEC, patched, then m1n1, then Linux. Only the way in differs, as no tool
of ours enters their boot ROM. The device has to be in DFU mode with a boot
ROM that checkm8 from a Raspberry Pi Pico entered (it shows as pwned checkm8 in devices), or in kDFU mode, which a jailbroken iOS enters with
kloader. kDFU looks like DFU mode without a mark; a board the data lists
with the kdfu entry ([boot] entries in its device.toml) is taken to
be in it. From there:
orchard run
orchard run --bare
orchard run --kernel zImage --dtb board.dtb --initramfs initramfs.cpio.gzApple's iBSS and iBEC are sent patched, the iBEC takes Apple's device tree
and m1n1's 32-bit build as its kernel, and bootx starts it. The device
tree goes decrypted where the board data (or --keys) has its key: an iBEC
started from kDFU takes nothing encrypted, as iOS has turned the device's
key off. The 32-bit m1n1 is Orchard's published one; --m1n1 FILE gives
another. The firmware's keys are in the board data (--keys gives others).
The kernel is a zImage and goes up behind m1n1; --proxy is not for these
boards yet. The same sequence booted Linux on an iPhone 5 from kDFU
(OrchardLinux/m1n1#17, 2 December 2026).
--autogo is the other route of these boards, Project Cascadia's, and the
one they are known to boot by. It needs no m1n1: the patched iBEC enters
what it is sent as soon as an upload ends, and is sent Cascadia's loader
with the kernel, the board's device tree and the initramfs.
orchard run --autogo
orchard run --autogo --kernel zImage --dtb board.dtb --initramfs initramfs.cpio.gzThe loader is the project's own build of it, --loader FILE, or the one
Orchard publishes for the board. Boot arguments are the device tree's;
--bootargs replaces them there. --m1n1, --proxy and --bare are for
the routes that end in m1n1. Both routes start the same patched iBSS and
iBEC the same way, so where --ibss fails and --autogo boots, the fault
is in m1n1. Not run on a device.
In a distribution checkout (orchard.toml with [release]), run builds
the release and starts its installer system on the device from RAM, by the
same route and in the same way install starts it. Nothing is installed:
the system is there to look around in. --no-build takes the last build.
The options for a kernel of your own (--m1n1, --proxy, --firmware,
--bootargs, --dtb, --initramfs) are not for it.
A build leaves run's options for what it built in
out/PLATFORM/run.toml, which is what run then reads. DIRECTORY can also
be such a file, or a directory with one in it.
kernel = "/…/Image.gz"
dtb = ["/…/t8010-j71b.dtb", "/…/t8010-j171.dtb"]
initramfs = "initramfs.cpio.gz" # counted from the file's directory
bootargs = "console=tty0 loglevel=7 rdinit=/init"
firmware = true # as --firmware
loader = "/…/loader.bin" # Cascadia's, on a 32-bit build--dtb, --initramfs, --bootargs and --firmware on the command line
count over the file's. With several device trees, m1n1 takes the board's.
The run's log is logs/DATE-TIME-run.log in the cache
(reference.md); a failed run names it.
Each boot route is one function in crates/runtime, the same that
install and launch take, and follows the device through a session
(devices.md).