Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.47 KB

low-level.md

File metadata and controls

54 lines (40 loc) · 2.47 KB

Talking to a device directly

One command per protocol, each doing one thing to the device in that mode. They take --timeout SECONDS (30) per action, name a device like every command (devices.md), and take its lock.

dfu

The boot ROM's DFU protocol.

Command Does
dfu enter brings the connected device into DFU mode, as palera1n -D: a device running iOS goes into recovery mode by itself, then the button steps follow for its model; it starts nothing there (--wait SECONDS). orchard run does the same first when the device isn't in DFU mode yet
dfu status prints the DFU state and status
dfu clear-status clears an error status; the device returns to idle
dfu abort abandons a transfer in progress; the device returns to idle
dfu send FILE sends an image, which the boot ROM runs: the device comes back as whatever the image is
dfu reset resets the device's USB port

recovery

iBoot, in recovery mode.

Command Does
recovery send FILE uploads a file into iBoot's load buffer
recovery command "LINE" runs one iBoot command
recovery getenv NAME prints one environment variable
recovery auto-boot on|off sets auto-boot and saves it (setenv auto-boot, saveenv); on then restarts the device, which starts iOS instead of recovery mode again (--no-reboot leaves it there). iOS 18's iBoot rejects saveenv: the setting then holds until the next restart only, and the command says so

pongo

PongoOS's shell.

Command Does
pongo output prints the shell's new output and whether it is busy
pongo send FILE uploads a file into Pongo's load buffer
pongo command "LINE" sends one command line to the shell

m1n1

m1n1's proxy. Numbers are decimal or 0x hex.

Command Does
m1n1 ping checks that the proxy answers
m1n1 call OPERATION [ARGS…] runs one proxy operation with up to six arguments and prints its result
m1n1 read ADDRESS SIZE writes device memory to stdout (--json: address, size, SHA-256)
m1n1 write ADDRESS FILE writes a file into device memory
m1n1 pack FILE --kernel K --dtb D… [--initramfs I] [--bootargs "…"] [--logo L] -o OUT (--out) packs m1n1 and what it is to boot into one image; needs no device

A command that the device cannot confirm (it is gone once the code runs) reports unconfirmed instead of acknowledged.