The installer¶
TL;DR. The PICO 4's installer is a set of plans that overpressure's engine runs: Install takes a headset from PICO OS to the installed system in four stages (check this computer, connect the headset, prepare it: backup, engineering bootloader, unlock, overpressure's recovery; install: the headset builds and starts its system), Upgrade builds and installs a newer system over it and keeps the data, Check the headset runs the acceptance checks, Restore to stock writes PICO OS and its bootloader back from the backup, and Rescue PICO OS brings PICO OS back without a backup, from PICO's own downloads. Before any of them the app looks at the headset without changing it and offers only what fits. What the owner sees and does: the install; the system it installs: installed-system.md.
| Command line | overpressure install, upgrade and restore; install --workflow check and --workflow rescue |
| Code | tooling/installer/install.py (Plan.stages, upgrade_stages, restore_stages, check_stages, rescue_stages), look.py, rescue.py, texts.py, on overpressure's roles and look; the engine: overpressure's installer |
Once the PICO 4 is chosen, the window asks what to do: Install, Upgrade or Restore to stock (below); its start page also exports and imports the backup (below).
The look at the headset¶
The app asks for the headset first and looks at it without changing it (Headset.assess;
tooling/installer/look.py on overpressure's look), within one and a half seconds. In this order: the USB bus for EDL
mode (enumeration only, no loader session; without pyusb Windows' device list, ioreg or sysfs); fastboot when the bus holds the headset in fastboot mode
(oem device-info: the engineering bootloader and its lock, or PICO's stock one); adb devices and, for a
headset listed ready, its properties (build, ro.oem.state, ro.boot.flash.locked, model, memory) and battery;
the headset's own system on its USB network (SSH's port, then its first process and where it started, over this
computer's key). Where the bus cannot be read, fastboot is asked last. On Linux adb's server is stopped before
fastboot looks, as everywhere else.
| Found | Offered |
|---|---|
| PICO OS, a supported PICO 4 and build | Install |
| PICO OS, a PICO 4 Pro or Enterprise, or a build not supported | nothing: why |
| PICO OS without USB debugging allowed for this computer | nothing: allow it |
| PICO OS's recovery | nothing: Reboot system now |
| PICO OS with USB debugging off (its setup, after a restore or a rescue) | Install: how to turn USB debugging on |
| The installed system | Upgrade, Check the headset, Restore to stock |
| overpressure's recovery | Install, Restore to stock |
| The installed system another computer installed, which your own private key (Settings) reaches | Check the headset, Restore to stock |
| The headset's own system without this computer's key | Restore to stock: with your own private key, or over EDL mode by hand |
| Fastboot | Install, Restore to stock |
| EDL mode | Restore to stock |
| On the bus, answering nothing | nothing: wait, or restart it |
Verified on the headset: PICO OS 5.13.7, fastboot with PICO's stock bootloader and with the engineering one, EDL mode, overpressure's recovery and the installed system after an install from this computer, the installed system without this computer's key, and the moments between them (nothing on USB, then on the bus but not answering yet while PICO OS starts). PICO OS's recovery is covered by host tests.
Runs, stops and resumes¶
Every command that touches the headset first asks the disclaimer (y/n); --accept-disclaimer or
OVERPRESSURE_ACCEPT_DISCLAIMER=1 accepts it for unattended runs
(overpressure/disclaimer.py). A computer on its battery below 30 % is
refused, and the installer checks again before each task that writes
(overpressure/power.py).
A started workflow goes on where it stopped; after an earlier run the window opens at Continue where you left
off and Start over from… a stage (starting over at Prepare your headset or Install repeats the backup and the
writes). A stop (Stop, closing the window, Ctrl-C) ends any wait at once, such as the up to ten minutes
Connect your headset waits for USB; a task that writes (dev stage-abl, the unlock, dev flash, dev install,
the Wi-Fi profile) finishes its write first. A headset in overpressure's recovery from this computer was found, backed up,
unlocked and flashed already: an install whose progress is gone (another release of this tooling starts it over)
skips Connect your headset and Prepare your headset and goes on with the install, without asking to connect it.
The install¶
The install takes a headset from PICO OS to the installed system in four stages, with the commands of installed-system.md and device-preparation.md:
| Stage | Tasks | Headset |
|---|---|---|
| Check this computer | the system the owner chose before the start (SteamOS by default; flavours), recorded for dev prefetch --flavour and dev install --flavour; tools, device fetch-unlock-files, then the doctor's owner's checks (overpressure doctor): a failure stops it with the fixes; what the installer downloads or records itself (the tools, the serials, the identity, the backup) and the build container's checks do not count (the headset builds the system). Then dev prefetch, when the owner chose the downloads on this computer (a checkbox before the start, unticked by default): every package the system is built from (downloads first) |
not needed |
| Connect your headset | an action ask, answered before the start, or not asked at all when the look finds PICO OS answering adb (developer mode, USB debugging, the cable, the prompt in the headset); exactly one adb devices entry in state device, written to PICO4_ADB_SERIAL; device probe unless PICO4_IDENTITY already holds this headset on the build PICO OS runs now (another headset's record stops it: records are never overwritten; a build changed since, after a PICO OS update, gets a new record backup/phoenix/device-TIME.json in PICO4_IDENTITY, and with it a new backup, the old ones staying); the firmware (check_firmware) and panel (check_panel on /proc/cmdline over adb). An unverified one ends the run |
PICO OS |
| Prepare your headset | one consent (it erases the headset; the backup is the way back); adb reboot edl, edl-ng printgpt for the LUNs (LUN 0 last) and the serial (PICO4_EDL_SERIAL), device backup --execute without userdata, cache and the crash dumps (device-preparation.md), device verify-backup (a new backup goes to backup/phoenix/stock-TIME, written to PICO4_BACKUP; this headset's unfinished one goes on from where it stopped, --resume, device-preparation.md, and any other stays); dev stage-abl (PICO OS on a headset unlocked before, fastboot on a locked one: device-preparation.md; the engineering ABL already in fastboot, locked, counts as staged, and a headset in fastboot with PICO's stock ABL goes into EDL by hand first, as the restore's stock bootloader does); adb reboot bootloader unless the headset is in fastboot already, exactly one fastboot device (PICO4_FASTBOOT_SERIAL), device unlock --execute --accept-data-loss; then, each skipped while its output is there and not older than its input, the images from the backup's own boot and recovery: recovery ramdisk image, Valve's kernel, dev image (the recovery on that kernel), boot image; dev flash and dev connect, one task (Start overpressure's recovery). The consent has no row: it is answered before the start |
EDL, fastboot, overpressure's recovery |
| Install | a form for Wi-Fi, answered before the start (both fields optional, filled in from the app's Settings; the engine keeps them in memory only; a skip is recorded, so a later run does not ask again); a form for the owner's own SSH public key, answered before the start too (optional, checked to be one public key, saved as out/dev/owner-key.pub and kept as the owner's ssh_public_key; not asked when Settings names one); neither form has a row of its own; dev install --only build (the recovery formats userdata, builds the system there and makes it on super, built on the headset), dev install --only start (boot, keys, PICO OS's files; it starts the system and waits for it); the Wi-Fi profile as a NetworkManager keyfile (WPA-PSK, or open) through SSH's stdin: install -D -m 600 /dev/stdin /etc/NetworkManager/system-connections/overpressure-wifi.nmconnection && nmcli connection reload, so neither name nor password is in a command line, a log or .env; the finished page says what comes next and offers Check the headset (below) |
on the cable |
After the backup the installer suggests exporting it. It goes from the unlock straight to fastboot and
dev flash, without PICO OS's factory reset of
device-preparation.md: the install formats userdata
anyway. Plan(factory_reset=True) adds the reset after the unlock, an instruction the run waits out by itself: it goes on once PICO OS answers adb with USB debugging again.
A headset that waits in fastboot with PICO's own bootloader when the engineering bootloader is due cannot be
taken to EDL mode from there: that bootloader's EDL command needs the unlock token's authority. The install starts
PICO OS from it instead (fastboot reboot), which is still there before the install writes, and goes on through
adb once PICO OS answers within 3 minutes. Only when it does not (the bootloader comes back, or PICO OS waits in
its setup without USB debugging for this computer) does it ask for EDL by hand. Both halves run on the headset
(fastboot reboot from PICO's bootloader into PICO OS, adb reboot edl from there); the install's own run of it
from PICO's bootloader is covered by host tests.
The upgrade and the way back¶
Upgrade has the headset build this version of the system and installs it over the one this computer installed,
keeping the data; it is offered only when out/dev/installed.json exists. Check the headset runs the acceptance
runner's stage-2 checks on the installed system, one task each, so the window's list ticks them off one by one; it
changes nothing, needs out/dev/installed.json too, and the install's and the upgrade's finished pages offer it
(overpressure install --workflow check on the command line). A failed check ends it there; the system
stays installed. Each run starts afresh and leaves the install's record (Workflow.changes). Restore to stock
brings back PICO OS and its bootloader; it needs a backup on this computer, made by the install or imported. A finished workflow forgets
the others' recorded progress (the install starts afresh after a restore).
| Workflow | Stage | Tasks | Headset |
|---|---|---|---|
| Upgrade | Check this computer | tools, the doctor's checks, dev prefetch (what changed) when the owner chose the downloads on this computer (the checkbox before the start) |
not needed |
| Upgrade | Prepare the upgrade | the install's images from the backup; Valve's kernel and the boot image are made every time | not needed |
| Upgrade | Install the upgrade | an action ask without a row, answered before the start unless the look finds the headset there (switched on, on the cable); dev flash and dev connect as one task (this version's overpressure's recovery into recovery, whose tools the build and the write need), dev install --only build (the recovery builds on the data partition; data kept) and --only start (the build folder removed at the end); its page offers Check the headset too |
installed system, fastboot, overpressure's recovery |
| Check | Check the headset | an action ask without a row, answered before the start: the headset on a stable table, its front cameras facing the room, the controllers on beside it if wanted, untouched until the last check; dev installed; dev check --installer --part system, --part imu and --part session, each its own task (controllers SteamVR does not see, missed performance limits, and a headset that moved during each of three IMU measurements 10 s apart are a warning in the window, not a failure; everything else counts as in dev check); the finished page says when they are done |
installed system, on the cable |
| Restore | Check the backup | tools; device verify-backup of PICO4_BACKUP, which must be the headset PICO4_IDENTITY describes, and of the build PICO OS runs when it answers (another build's backup would put its system next to this build's firmware) |
not needed |
| Restore | Restore PICO OS | one consent (it erases the system and its data), the choice Keep USB debugging on in PICO OS (a checkbox, off by default) and an action ask, all answered before the start, without a row of their own (the action not asked when the look finds the headset there); a headset that answers adb devices with its serial runs PICO OS already and is left alone, any other is taken into overpressure's recovery by the installer itself (dev recovery's steps), then one task per part, dev restore --installed --only system --debug-start, data and recovery (back to stock, the debug start): a retry goes on from the part that failed. A headset found in EDL mode gets Your backup over EDL instead, cycle --restore-all (below), which also writes its stock bootloader, and so does one another computer installed (below) |
overpressure's recovery, fastboot, EDL |
| Restore | Back to PICO OS | Wait for PICO OS's first start, with nothing for the owner to do and no instruction shown (its progress says what it waits for): the debug start answers adb with nobody at the headset, also after Your backup over EDL, which writes it too (only where PICO OS's boot has no debug start does the owner turn developer mode and USB debugging on); exactly one adb devices entry, written to PICO4_ADB_SERIAL; then the wait for PICO OS's MCU check (cooling.md), shown as the task's progress; with the choice ticked, once PICO OS has finished starting (sys.boot_completed), USB debugging stored through the vendor's USB property, with no restart of adb. Then Write the stock bootloader, cycle --restore-only: boot read back whole and the backup's written back where it differs (the debug start's), stock ABL written back, then PICO OS waited for with or without USB debugging; Finish the restore switches USB debugging off as its own switch does, or, with the choice ticked, checks that it stayed on; it notes only what went otherwise than chosen, and the finished page says the end. The bootloader stays unlocked |
PICO OS |
A headset another computer installed¶
Its recovery takes the installing computer's key alone; its installed system that key and the owner's own, which the install enrolled. When the headset's own system answers but refuses this computer's key, the restore writes the whole backup over EDL (below) and gets the headset into EDL mode first:
- with the owner's own private key, which Settings names (Your private SSH key), or which the restore's question How should the restore reach the headset? takes before the start and keeps in Settings by its location: the installed system restarts into EDL mode by itself;
- without one, or when the key does not get in either, by hand: powered off, both volume buttons while plugging in USB.
The look shows such a headset with Installed by: Another computer when the owner's key reaches it (Check the headset and Restore to stock), and with This computer did not install the system on it otherwise (Restore to stock). Importing the backup from the computer that installed it (the backup as one file) makes this computer the one that installed it.
After an install that stopped early. When this computer's install record shows a stop before overpressure's
recovery was written, and no install ever finished, PICO OS's own system, boot and recovery are still on the headset:
the restore skips their writes and starts the headset from fastboot (learning its fastboot serial when .env has none).
A headset that comes back to fastboot within two minutes instead of starting PICO OS, or one already in EDL, gets
its stock bootloader first: Stock bootloader first asks the owner into EDL by hand (powered off, both volume
buttons while plugging in USB) and runs cycle --restore-only from there, which checks the headset and its boot
partition against the backup, writes the stock ABL and waits for PICO OS. The last stage then has nothing left to write.
A headset in EDL mode. Any other headset that is the one EDL device when the restore looks for it (after an
EDL accident no bootloader starts it any more) gets its whole backup written back over EDL instead of the other
writes: Your backup over EDL runs cycle --restore-all (below), the boot chain and
the stock bootloader with it. PICO OS's setup follows, and the last stage has nothing left to write.
A headset that does not show up¶
The installer waits for the headset in a new USB mode itself (fastboot, overpressure's recovery), not in a child
program: in the install's and the upgrade's flash of overpressure's recovery it brings the headset into fastboot
before dev flash runs (which then only writes), the login to overpressure's recovery (dev connect's) runs in it,
and so do the restore's waits. A wait that runs out (180 s for fastboot, 120 s for overpressure's recovery) does not fail the task: it asks
the owner to plug the cable in again and waits anew after Done; Cancel stops, and the next start goes on from
that task. On Linux the task's log says what the USB bus holds of each of the headset's modes, which tells a
headset that is not on the bus from one that is but which adb or fastboot does not list yet.
From a running system the way into fastboot is a restart over SSH. The installer first waits up to 60 s for the
headset to answer there; one that does not is not restarted, and the task stops with what to check (on Linux
also overpressure doctor). A headset already in fastboot that fastboot does not list, while the USB
bus holds it and this user may not open it yet, is waited for while udev grants it; one it never grants stops the
task with the udev fix, as a "no permissions" listing does, instead of asking for a replug.
The USB link on Linux¶
The headset's own systems are one composite gadget on USB (1d6b:0104, product PICO 4 Linux), whose network
function hands the PC one DHCP lease, 172.16.42.2 (the headset is 172.16.42.1). NetworkManager can put another
profile on that interface instead: a wired profile with a fixed address that is bound to no network port takes every
new one. The link is then up, but the PC has no address in 172.16.42.0/24, and SSH finds no route.
overpressure's usblink, with the
PICO 4's gadget (GADGET in tooling/__init__.py), finds the headset's interface in
/sys/class/net by the gadget's IDs and product, reads its addresses (ip -j) and the profile on it (nmcli). A
wait for the headset's own system that runs out with such a link shows its fix instead of a replug, and waits on, dev connect and dev installed name it in their error,
and overpressure doctor checks it while the headset is plugged in. The fix is a profile for the headset's
interface alone, matched by its MAC (the headset's serial gives it), which takes the lease and leaves the PC's own
routes and DNS alone; overpressure changes nothing on the PC itself, it names the commands:
nmcli connection add type ethernet con-name overpressure-phoenix ethernet.mac-address MAC connection.autoconnect-priority 100 ipv4.method auto ipv4.never-default yes ipv4.ignore-auto-dns yes ipv6.method disabled
nmcli connection up overpressure-phoenix
Without NetworkManager it names sudo ip address add 172.16.42.2/24 dev IFACE, which holds until the headset is
unplugged.
The backup as one file¶
overpressure backup export FILE (Export backup…) writes one checked file
(overpressure's install): the EDL backup PICO4_BACKUP names, the identity, this
computer's SSH key for overpressure's recovery (out/dev/id_ed25519, the only key the dev image in recovery
trusts), out/dev/installed.json once the system is installed, and the headset's serials. The partition images
are sparse members, without their zero runs: about 6.9 GiB for the PICO 4's backup. backup import FILE
(Import backup…) puts the backup beside the others in backup/phoenix/ (it becomes the way back when there is none yet), the key and the record into out/dev where it has none, and
fills the backup, identity and serials .env lacks, so another computer can restore the headset. It refuses
another headset's backup and a key different from this computer's own. The file is as private as the backup: it
reaches overpressure's recovery on the headset.
Back to stock¶
overpressure dev restore knows from out/dev/installed.json (written by dev install) that the
system is installed, or from --installed where another computer installed it (the installer's restore passes
it unless PICO OS runs). From overpressure's recovery it writes the backup's super and boot (checked against
the manifest, read back), wipes the start of userdata and metadata (both formattable in PICO OS's fstab,
so PICO OS makes new file systems and keys), clears misc, then writes stock recovery through fastboot and
starts PICO OS. --only system|data|recovery runs one of those parts from where the headset is (the first two in
overpressure's recovery, recovery from it or from fastboot). PICO OS's first-time setup follows; ADB stays off until developer mode is on again, so
cycle --restore-only (stock ABL) and dev stage-abl (development mode again) wait for that, unless --debug-start wrote the debug start's boot image (below). That first start may
update the lens and fan MCU: keep the headset worn and on the cable through the setup. Every way out of PICO OS
(EDL or fastboot) first waits until PICO OS is through with the MCU, and stays in PICO OS after a failed update
(cooling.md).
The debug start¶
The installer's restore runs to its end with nobody at the headset: PICO OS's first start after the restore has USB
debugging on, so cycle --restore-only reaches it over adb (EDL mode by adb reboot edl). PICO OS 5.13.7's init
carries Android 10's debug ramdisk (its first-stage and second-stage init know force_debuggable, adb_debug.prop
and userdebug_plat_sepolicy.cil; its ramdisk has the debug_ramdisk mount point), which an unlocked headset takes
for that start. The restore checks the backup's boot image first: one without debug_ramdisk (a PICO OS build not
verified for it) is written back as it is, the window says so, and PICO OS's first start waits for the owner to turn
USB debugging on, as after the whole backup over EDL. dev restore --installed --only system --debug-start writes the
backup's own boot image with three files added to its ramdisk
(tooling/stock/debugstart.py):
| File | Holds |
|---|---|
force_debuggable |
nothing: the mark |
adb_debug.prop |
ro.adb.secure=0, the USB functions mtp,adb (persist.sys.usb.config, and persist.vendor.usb.config, which the vendor's init copies over it) and the mark ro.force.debuggable=1; loaded above every other property file |
userdebug_plat_sepolicy.cil |
PICO OS's own platform policy from the backup's system, unchanged: the start keeps the stock rules (no adb root) |
Kernel, device tree, command line and header stay the stock image's. cycle --restore-only reads boot back whole
and writes the backup's image back where it differs (device restore-abl --partition boot, read back), then reads out what the loader still
sent after that readback (it broke the ABL's session on the headset) before the stock ABL. The properties count for that one start only; PICO OS's framework stores USB debugging only when its
setting changes. So at the end the installer switches it off as PICO OS's own switch does
(settings put global adb_enabled 0), or, when the owner ticked Keep USB debugging on in PICO OS, stores
USB debugging for every later start in the debug start and checks at the end that adb still answers. It switches
developer mode on and sets the vendor's USB property again (setprop persist.vendor.usb.config mtp,adb, then
sync): the vendor's init copies it to persist.sys.usb.config, the USB functions the framework starts with, and
init stores what it sets in persist. once the stored properties are loaded, which the debug start's own values
were not. PICO OS's switch in Developer settings cannot do this over adb: its off stops adbd, and with it every
process adb started (they share adbd's cgroup), before its on comes; sent together, the framework sees only the
last value and stores nothing. The first start waits for sys.boot_completed first, so that nothing of PICO
OS's start sets the USB functions after it. The debug start's own properties show mtp,adb either way. With USB debugging on,
PICO OS asks no computer to allow it: ro.pvr.adb_noauth lets adbd skip the authorization although
ro.adb.secure is 1. PICO OS without USB debugging
shows as its own USB functions (2d40:00b6), which the final wait takes once they stayed 60 s without adb.
Read from PICO OS's own code: on its first start with fresh data, PvrManagerService turns USB debugging on by
itself where the country code (persist's picoconfig/countryCode) is not CN and ro.pvr.adb_noauth is 1, which the
vendor's properties set; adbd reads ro.pvr.adb_noauth too.
An interrupted restore¶
A restore that stops part way (cable pulled, battery empty, host gone) leaves the headset where its order put it. This follows from the order and the boot rules; it was not tried with a pulled cable.
| Stopped while | Where the headset is then | Way out |
|---|---|---|
super or boot is written |
every boot starts overpressure's recovery (misc keeps the request) |
dev restore again: it writes everything again |
userdata and metadata are wiped, or misc is cleared |
overpressure's recovery, or, once misc is clear, PICO OS on stock super and boot, making its data anew |
dev restore again from overpressure's recovery; from PICO OS: adb reboot bootloader, then dev restore-partition recovery |
stock recovery is written through fastboot |
every boot ends in fastboot: the ABL checks recovery's chain on every boot | dev restore-partition recovery |
| any of these, and nothing answers | — | EDL by hand, which the chip's ROM always answers (device-preparation.md), then cycle --restore-all (below), or Restore to stock, which finds the headset there |
The whole backup over EDL¶
overpressure cycle --restore-all writes every partition of the backup back over EDL, LUN by LUN in the
backup's order (LUN 0 last), the boot chain (xbl, abl, ...) and both GPTs too; for a headset that is the one EDL
device and that no bootloader starts any more. It runs device restore-all --execute --confirm-device
PICO4_ADB_SERIAL --edl-serial PICO4_EDL_SERIAL as the first session after EDL was entered by hand, then resets the
headset into PICO OS's first setup. Only that session's handshake names the serial: once a loader runs, later sessions
name none, and the loader leaves a restart into a fresh EDL session undone after a session that read the partition
tables. A headset whose loader runs already is refused; it goes off (power key held 10 s) and into EDL by hand again.
device restore-all without --execute lists its writes and writes nothing. Before its first write it checks:
- the backup against its manifest, and that it is the headset
PICO4_IDENTITYdescribes; - the EDL serial against
PICO4_EDL_SERIAL, in its first session's handshake; - each LUN's own size (the loader's storage information) against the backup's GPT, which a broken partition table on the headset does not change, and the LUNs' number.
userdata and metadata get zeros over their first 64 MiB (PICO OS makes new file systems and keys); cache and the
crash dumps, which a backup never holds, stay as they are. Each write is read back and compared: a difference stops
there, with the partitions before it written and the headset in EDL mode, and the same command goes on afresh. The
bootable LUN stays LU A (bBootLunEn 1, xbl on LUN 1): partition writes do not change it
(device-preparation.md). About 9.8 GiB go over USB. After the final reset
the headset on the cable may start in PICO OS's charger mode; holding the power key starts PICO OS and its setup.
The installer's restore runs it as cycle --restore-all --debug-start where PICO OS's boot image has a debug start
(the debug start): boot gets the debug start's image instead of the backup's (device restore-all
--image boot=FILE, padded to the partition and read back as every other write), so PICO OS's first start answers adb
with USB debugging on, the owner's choice of USB debugging is stored then, and Write the stock bootloader writes the
backup's boot back, as after the restore through overpressure's recovery.
Without a backup: the rescue¶
Rescue PICO OS (install --workflow rescue; by hand overpressure rescue look, prepare, write
--execute, tooling/installer/rescue.py) brings PICO OS back to a headset whose owner has no backup,
from PICO's own full package, over EDL mode. The look offers it for a headset in EDL mode when this computer has no
backup of it (with one, Restore to stock).
- EDL mode: by itself from PICO OS or our systems when one answers (
dev edl), else by hand. - The look, read-only, in the first session after EDL mode was entered: the serial (against
PICO4_EDL_SERIALwhen.envhas one), the partition table, thenxbl,xbl_config,tz,aopandhyp. The install never writes these, and each build's are its own (every member differs between builds, signed anew), so their SHA-256 againstfirmware.json's pins names the build: version, region and track, without a download. The DDR4 XBL is the original PICO 4's (PICO's own updater picks the DDR5 one by/sys/hwinfo/lpddr_device_type); the DDR5 one (PICO 4 Pro and Enterprise) is refused, and so is a boot chain that is no pinned build's. - That build's package (about 3.7 GB, resumed after a break;
ota.extract) from the fastest of PICO's hosts that have it (firmware.json'smirrors,ota.fastest):abl.elf,boot.img,recovery.img,dtbo.img, bothvbmetas and the dynamic partitions rebuilt from their block images. Every member must match its pin infirmware.json(its size and SHA-256, under each build'srescue) before anything is rebuilt: what goes on the headset is what the pins name, whatever the download served. A build without pins is refused before its download.overpressure rescue pin [BUILD...]makes the pins from PICO's packages (--smallleaves out the dynamic partitions' block images, gigabytes each); hashes are not PICO's files, so they are published. The same build goes back, so the system fits the firmware it starts on.superis laid out anew from the package'sdynamic_partitions_op_list(lp.build): one group, each partition one read-only extent on the disk's 512 KiB boundaries, as PICO OS's own metadata has them. - The consent, then the writes, each read back (
qualcomm.write_back), after a check that the EDL device still has the looked-at partition table and XBL: super's metadata and its logical partitions at their extents, the six images, zeros over the first 64 MiB ofuserdataandmetadata,misccleared. The boot chain and the headset's own partitions (persist, the modem's,devinfo, keys) are never written: no package has the latter. - A restart: PICO OS starts its first-time setup.
Checked against the user's headset's backup, without the headset: its boot chain named 5.13.7-global-seko (all five
partitions, the DDR4 XBL) and no other build; that build's package, from PICO's US host and checked against its
pins, rebuilt every image the rescue writes byte for byte as the backup holds it, the four logical partitions whole
(system with dm-verity's FEC and the AVB footer in its last blocks); the plan is 14 writes, 6.76 GiB. Against
super's stock metadata the new layout has the same geometry, group, block device and partition entries; only the
extents differ (one each instead of the stock layout's fragments from earlier updates). firmware.json pins every
build's boot chain and images, and 5.13.7-global-seko's block images too: the others need rescue pin BUILD (3.6
GB each) before their rescue.
On the headset, from the installed system and without its backup in use: EDL mode by itself, the look named 5.13.7-global-seko, and 14 writes (6.76 GiB) were each read back in about 6.5 minutes; PICO OS then started its first-time setup. On Windows edl-ng sometimes meets bytes an earlier session left, or two reads of one session arriving as one chunk: the rescue reads the boot chain by sector, one read a session, reads the port empty before each session, and frees a loader its first session finds used (drain, restart, EDL mode again from what starts).
Verified results¶
| Check | Result |
|---|---|
| Restore, install and upgrade through the installer | on Windows, on the command line, with overpressure's recovery on Valve's kernel: the restore wrote PICO OS's system, boot and recovery back in 7 min 45 s and its bootloader in 45 s; the install from PICO OS took a new backup in 4 min 27 s (9.77 GiB, 6.78 GiB on disk, cache and the crash dumps left out), then the engineering bootloader, the unlock, the images from that backup and overpressure's recovery in under 2 minutes; the upgrade ran in 7 min 7 s, its build and install 4 min 51 s; dev check passed at 72 Hz, the default a fresh install gets (72.04 commits/s, hottest 57 °C) |
| Restore with the debug start | the installer's restore with Keep USB debugging on in PICO OS, from the installed system, nobody at the headset: super and the debug start's boot image written and read back; PICO OS's first start answered adb as an authorized device about 2 minutes after its reset; its MCU check, then USB debugging stored through the vendor's USB property (adb stays); the backup's boot written back over EDL and read back, the stock ABL, PICO OS 5.13.7's stock start over adb with nobody at the headset. Afterwards persist.sys.usb.config=mtp,adb, adb_enabled and development_settings_enabled 1, no debug properties (ro.force.debuggable empty), boot state orange |
| Installer | host tests with fakes: the stages, done checks, serials written to .env, refusals before any write, the Wi-Fi password on stdin only. On the headset, on Windows, from PICO OS: the headset's half in about 11 minutes, from finding it through the panel check over adb, the engineering ABL, the unlock (also of a headset unlocked before) and overpressure's recovery without a factory reset, to the install and dev check (backup, identity and builds there already, no Wi-Fi given) |
| The whole backup over EDL | cycle --restore-all on Windows, from EDL entered by hand on a headset with the installed system: 102 writes (9.83 GiB) each read back identical in 9 min 30 s, 10 min 17 s with the backup's check; the reset ended in PICO OS's charger mode on the cable, and the power key started PICO OS on its stock bootloader into its first setup |
| Restore to stock in the window | on the headset, on Windows: from the installed system through all four stages to PICO OS with its stock bootloader; the install's recorded progress and out/dev/installed.json gone afterwards |
| The backup as one file | a 12.5 GiB backup: exported with the readback in 57 s, imported elsewhere and verified in 81 s, with the SSH key and the serials. Without its zero runs: 6.9 GiB on this computer after backup compact (verified against its manifest), and a 6.86 GiB export in 39 s with its readback |
Open work¶
- The way back. Not run on the headset: a restore interrupted part way (above), a restore from an imported backup on another computer, and the whole backup over EDL from the window or on Linux and macOS.
- The Wi-Fi profile. The Wi-Fi keyfile on the installed system (WPA2; a WPA3-only network may need
key-mgmt=sae). - The restore's debug start. Still to run: the restore without Keep USB debugging on (USB debugging switched off at the end).