Skip to content

Latest commit

 

History

History
68 lines (57 loc) · 2.91 KB

launch.md

File metadata and controls

68 lines (57 loc) · 2.91 KB

launch

orchard launch

starts a system installed on the connected device, as Orchard (the launcher) does. The device is taken to m1n1, which reads the boot entries on the device's own boot partition and starts one.

  • One system installed: it starts.
  • Several: they are listed, the default under the mark. ↑ and ↓ (or j and k) move the mark and Enter starts that system; a number starts that row; Esc or q leaves without starting. Without a terminal the default starts.
  • --list prints the systems (id, title, kernel, which is the default) and starts nothing. The device stays in m1n1; to start a system, put it in DFU mode again.
  • --entry ID starts exactly that entry. An unknown id ends the run with exit status 2.
  • Nothing installed: exit status 6.

The run ends when the start command is out; the system continues on the device by itself.

Finding the device, DFU mode, naming one device, the boards it works on and how the device is entered are the same as for install, with --palera1n-version and --port-reset: --boot ROUTE, with --ibss, --palera1n and --checkra1n as its short forms here, where a route can only mean the boot route. That includes the guided run from recovery mode in a terminal, and the usual DFU steps without one. --wait SECONDS and --log FILE too.

Any Ctrl-C ends the run (exit status 8).

From a disk file

orchard launch --disk [FILE]

starts a system that was installed into a disk file on this computer (orchard install NAME --disk, install.md) and serves the file to the device until the system shuts down. The device must be in DFU mode; --wait SECONDS waits for it.

  • Without FILE it is the disks folder's disk file made with this device (the ECID its boot partition records). None, or several, are listed with what to pass instead.
  • A file made with another device of the same model starts only after a question in a terminal: what the system read from that device (its calibration, addresses) may not fit this one.
  • The entry comes from the file's own boot partition: loader.conf's default, or --entry ID. --disk FILE --list lists them without a device.
  • The entry's kernel and device tree start through m1n1 by the board's route, its initrd (orchard's) with a hook behind it that attaches the file over USB before the root is looked for. Serial and USB network come up as on every start.
  • The run keeps serving the file until the system shuts down, which it tells the computer, and then ends. A dropped cable only pauses the system: plug it back in, at any port, and it carries on. The first Ctrl-C only warns; a second one stops serving, like pulling the power.
  • On the 32-bit boards the device starts by the ibss route as launch does; the disk file's hook has not run on one.

Events and exit statuses: reference.md.