Installed system¶
TL;DR. The installed system lives in PICO OS's own partitions: Valve's kernel in boot (no ramdisk), a
read-only system in super, the data in userdata, overpressure's recovery (Valve's kernel too) in recovery. The
kernel mounts super and starts preinit, which mounts the data and executes systemd; a failure reboots into the
recovery. It starts without the PC and keeps its data across reboots and updates. The headset builds the system
itself, in its recovery, and makes its file system straight on super. How the installer gets it there and back
to PICO OS: installer.md; what an owner does: the install.
| Install, upgrade, back to stock | overpressure install, upgrade or restore, or the app's installer (the installer) |
| By hand | dev recovery, then dev install (install and update); back with dev restore (back to stock) |
| Code | tooling/development/devloop.py on overpressure's recovery.py, overpressure's build/build-system-image.sh, preinit, pico4-install |
Installing replaces PICO OS's system and data. The way back writes them from the EDL backup; PICO OS then starts with fresh data, as after a factory reset, because the backup does not hold its userdata. The installed system runs on Valve's kernel (kernel.md).
Layout¶
| Partition | Size | PICO OS | Linux |
|---|---|---|---|
boot |
96 MiB | kernel and first-stage ramdisk | Valve's kernel, its device tree and the command line that starts the system image; no ramdisk (the boot image) |
recovery |
100 MiB | recovery | overpressure's recovery on Valve's kernel: development, installs and the headset's own build, rescue |
super |
8 GiB | the read-only system (system, vendor, product, odm) | the system: read-only ext4 with a journal, about 4.6 GiB, made by the headset's own build; writable after steamos-readonly disable until the next upgrade |
userdata |
106 GiB | apps and data (f2fs, file-based encryption) | the data: ext4 pico4-data, mounted at /data |
misc |
1 MiB | the bootloader message | the same: it selects overpressure's recovery |
metadata |
16 MiB | userdata's encryption metadata | unused; wiped on the way back |
Every other partition stays read-only; the calibration and firmware the system needs come from the image (recovery.md, xr/).
The installed system¶
- The system.
build-system-image.shmakes ext4 straight onsuperfrom the build's image root, as root in the build host on the headset (built on the headset): no image file and no archive.mke2fs -dreads a read-only overlay of the image root's two layers, so only what the system holds is written; a 64 MiB journal (steamos-readonly disablemakes it writable), withoutorphan_fileandmetadata_csum_seed, file capabilities kept (gamescope'scap_sys_nice). Its size is the content plus 10 %, 128 MiB and the journal. The image names its build in/usr/share/pico4/userspace-build.sha256: its manifest's SHA-256, which also gives the file system's UUID and hash seed.e2fsckchecks it from the partition after the caches are dropped, anddev checkfinds the build by that manifest, which the install copies toout/headset. - Data. preinit mounts
userdataat/dataand lays the changing parts onto the read-only image:/etcas an overlay (upper:/data/etc/upper, without the inodes index),/var,/homeand/rootas binds of/data/var,/data/homeand/data/root, copied from the image on the first boot. SteamOS's offload units bind/srv,/var/log,/var/tmp, the pacman cache, flatpak and container storage from/home/.steamos/offload, so they land on the data partition too. - PICO OS's files. The image holds none of them, only links (below).
- Updates. A new build replaces
superwhole; the data stays. pacman's database is part of the image (userspace.md), so it always lists the running image's packages; preinit removes the copy on the data partition that systems before it kept (/var/lib/pacman). - Boot indication.
pico4-splashdraws the logo's headset (docs/logo), 320 pixels wide (about a seventh of a lens), the name in Inter and a moving bar in the middle of both lenses while the system starts (pico4-splash-draw.h). Text is Inter's own outlines (pico4-splash-font.h, written by font.py from the pinned font file), filled by the splash's anti-aliased filler. preinit starts it once the data and PICO OS's files are there;pico4-splash.servicetakes the display over and the bar carries on (its place follows the clock). It sets the panels' 90 Hz mode on msm's primary plane and gives up DRM master, so the next compositor (Monado, SteamVR's) becomes master; that compositor's commit ends the indication, four minutes at the latest. - SSH.
dev installwrites the enrolled keys to the data partition (security.md). The installed system makes its host keys on the first boot (sshdgenkeys.service) and keeps them in the/etcoverlay; overpressure's recovery makes new ones on every boot, so the two answer with different keys.
PICO OS's files¶
The system needs about 85 MB of PICO OS's files (GPU firmware, sensor and audio configuration, the
camera's table, controller data and models, the head tracker's bionic root) and the firmware of
its DSPs, video codec and wireless chip. The image holds none of them, only links
(userspace/stock-links.txt) to where they are on the headset:
| Where | What | Written by |
|---|---|---|
PICO OS's modem, dsp and bluetooth partitions, mounted read-only by preinit under /run/pico4/firmware |
the DSPs', the video codec's and the wireless chip's firmware; the kernel's firmware path is modem's /image |
nothing: PICO OS's own, as they came |
/var/lib/pico4-stock on the data partition |
what lived in super (system and vendor), which the install overwrites |
dev install, from the headset's own EDL backup |
/run/pico4/audio-calibration.bin |
the audio calibration, from PICO OS's databases | pico4-adsp.service, before the audio DSP starts |
persist, mounted read-only |
the headset's own calibration and addresses | nothing: read at boot |
- The copy.
tooling/stock/stockfiles.pyreadssuper's logical partitions out of the backup (overpressure/lp.py) with the project's ext4 reader, takes the same files as from PICO's OTA of that firmware (assets.py) and writes them, laid out as the system expects them, into a gzip-compressed tar with a manifest andSHA256SUMS; the same backup gives the same archive.dev installmakes it before it builds or writes anything, so a backup it cannot be read from (a PICO OS build whose controller libraries are not known) leaves the headset as it was, and sends it to overpressure's recovery after the keys (pico4-install stock), which checks the archive's size and hash and every file, and replaces the old copy only when the new one is complete; a headset that holds the same manifest is skipped (stock-hash).overpressure stock-files OUTPUTwrites the archive alone (--assets DIRfrom assets folders). - At boot. preinit mounts the three partitions read-only (vfat, ext4 without journal replay), sets the
kernel's firmware path and binds the copy's tracker root (
system,vendor) and thedsppartition's process shells into/usr/lib/pico4-stock-slam, read-only, so that it looks the same to every process. The drivers that probe while the kernel starts (Wi-Fi, Bluetooth, the video codec) are probed again later by their units, and the DSPs start fromremoteproc-boot; the GPU loads its firmware at the first open of its node, which the splash makes after the copy is there. - The tracker.
pico4-slamdlinks against stand-ins of bionic'slibc.so,libm.soandlibdl.so(bionic-stubs.c): the build needs no file of PICO's. - Without a copy (an image installed by hand, a formatted data partition) the system starts, and the
acceptance check names what is missing;
dev installwrites it.
How it starts¶
boot holds Valve's kernel, its device tree and a command line, no ramdisk. The command line adds
root=PARTLABEL=super rootfstype=ext4 rootwait=20 ro init=/usr/libexec/overpressure/preinit overpressure.root=installed
overpressure.autoreboot=0 msm.dpu_use_planar_cac=0 to the kernel's own words (clk_ignore_unused, pd_ignore_unused,
regulator_ignore_unused, panic=5); the last leaves the display pipes to a monitor on the USB-C port
(kernel.md). The kernel mounts super read-only as the root, mounts devtmpfs on
/dev and starts preinit, a bash script in the image: overpressure's
(runtime.md), with the PICO 4's hooks from pico4-base:
- It mounts proc, sysfs and
/run. The PICO 4's early hook picks charger mode. It sets every CPU's governor toschedutil, as PICO OS runs (Valve's kernel starts withperformance;overpressure.cpugov=keepleaves it). devnode sweepswitches every disk and partition read-only and makes the/dev/block/by-namelinks before anything is mounted writable: oneblockdevcall, 0.03 s for about 120 devices (overpressure-storage-ro.serviceruns it again beforelocal-fs-pre.target). Whilesteamos-readonly disableholds (/.overpressure-writablein the image), it leavessuperwritable, and preinit remounts the root writable (userspace.md).- It makes
userdatawritable, and its disk too (a mainline kernel counts a disk's read-only flag for its partitions; the other partitions keep their own flags), and mounts it at/data. Outside charger mode it counts the boot (boot attempts). - On the first boot it copies
/var,/rootand/homefrom the image (cp -a -n). It removes the copy of pacman's database that systems before kept on the data partition: the database is the image's. - It mounts the
/etcoverlay, binds/var,/homeand/root, and writes/etc/machine-idfrom the headset serial, so that journals of different boots belong together. - The PICO 4's mounted hook mounts PICO OS's firmware partitions read-only (PICO OS's files), completes the head tracker's root and starts the boot indication (not in charger mode).
- It executes systemd, in charger mode with
--unit=pico4-charger.target(charger mode).
Any failure on the way reboots into recovery (pico4-reboot recovery, the PICO 4's OP_REBOOT). If super cannot be mounted at
all, the kernel waits 20 s, panics and reboots from boot again; the way out is fastboot and dev recovery,
or EDL by hand (both volume buttons held while connecting USB to the powered-off headset,
device preparation). Only pico4-install writes super, and it reads it back.
Boot attempts¶
A boot that started systemd can still fail: a kernel panic reboots after 5 s (panic=5), and the kernel
panics on soft lockups and hung tasks (120 s). systemd arms the SoC's watchdog (qcom_wdt,
RuntimeWatchdogSec=30s in system.conf.d/50-overpressure.conf). Its bite alone does not reset the headset on this
firmware (it locks one CPU up), so the bark, 1 s before it, panics (pretimeout governor panic in
the kernel's pico4.config):
| A stopped PID 1 (ptrace, no pings) | After |
|---|---|
the bark: Kernel panic - not syncing: watchdog pretimeout event |
28.3 s |
panic=5's reset |
33 s |
| SSH answers again; the graphical target reached, the count cleared | 55 s |
A suspend does not count against the watchdog (90 s asleep with it armed woke into the same boot). A system that only crawls (every CPU busy at real-time priority) keeps pinging: the fair server leaves normal tasks 5 % of each CPU, and the hung-task panic restarted it after about 7 minutes.
boot-attempts counts boots in
/data/.overpressure-boot-attempts:
| When | What happens |
|---|---|
| preinit, before systemd (not in charger mode) | the count goes up by one |
the graphical target is reached (overpressure-boot-ok.service) |
the count is cleared |
| preinit finds 2 unfinished boots | it clears the count and reboots into recovery; a boot from there has two tries again |
A failed unit does not hold the graphical target back; a system that never reaches it still answers SSH.
Under systemd:
- USB link.
overpressure-usb-link.servicerunsusb-linkbeforesysinit.target: overpressure's recovery's composite gadget (recovery.md), recorded in/run/overpressure/usb-link.env. systemd-networkd givesusb0172.16.42.1/24and one DHCP lease,172.16.42.2, without router, DNS or NTP, so the PC keeps its own internet route (50-overpressure-usb.network). The Frame's own gadget units stay masked. Windows 11's in-box NCM driver works as it is, as with overpressure's recovery: only the acceptance runner's the recovery on the stock kernel needs the NCM initialization. - Wi-Fi. ath11k probes the QCA6390 before the system image is mounted and fails without its firmware;
sm8250-wlan-probe.servicebinds it again once/usr/lib/firmwareholds it, before NetworkManager, and waits up to 15 s forwlan0. - Display and GPU. They bind without a ramdisk; the GPU loads its firmware from the image at first use.
Boot modes¶
The ABL starts recovery instead of boot while misc holds the bootloader message boot-recovery:
| Mode | Starts | Entered by | Left by |
|---|---|---|---|
| Installed | boot: the kernel mounts super, preinit mounts userdata and executes systemd, with or without a PC; a failure reboots into recovery |
a boot with an empty bootloader message | dev recovery |
| Recovery | recovery: the dev image's the recovery on Valve's kernel with its deadlines; dev install writes from here |
fastboot reboot recovery (the ABL writes boot-recovery), or a reboot with reason recovery (once) |
pico4-install bootmode normal (dev normal) |
| EDL | the boot ROM's emergency download mode, for edl-ng | dev edl: a restart with the argument edl from the installed system or overpressure's recovery (kernel.md); adb reboot edl from PICO OS; both volume buttons while plugging in USB |
edl-ng's reset (reset --mode Reset), or a long press of the power key |
overpressure's recovery's deadlines return the headset to fastboot; with boot-recovery in misc, every boot
from there starts overpressure's recovery again.
overpressure's recovery arms the same watchdog (its watchdog service,
runtime.md): with its
pings stopped (SIGSTOP), the bark panicked 20 s after the stop (within 30 s of the last ping), and it was back in the
overpressure's recovery, answering SSH, 40 s after the stop.
Charger mode¶
A powered-off headset starts with androidboot.mode=charger when USB power comes: at the power-off with the cable
attached, or when a charger or a computer is plugged in later. The shutdown ends a PD contract by detaching the
source and then leaves the Type-C port on, so that a USB-C source sees a sink and turns its power on, as on PICO OS.
PICO OS then runs AOSP's charger; preinit starts systemd with pico4-charger.target: basic.target,
pico4-charger.service (charger), the USB link,
systemd-networkd and sshd. The boot indication does not run. As AOSP's charger shows the battery when it starts
and on a press of the power key, the lenses show the battery for 4 s then: its level, red at 15 % and below, a bolt
while it charges, and the level in per cent (pico4-splash --battery PERCENT CHARGING SECONDS, which then switches
the panels off); otherwise they stay dark. Holding the power key 2 s
starts the system (a plain reboot); 10 s without USB power turn the headset off, as AOSP's charger does.
test_charger.sh tests these decisions in pico4-base's build.
Power key¶
pico4-powerkey.service (overpressure/packages' pico4-power) does what PICO
OS's window manager does with the PMIC's key (pm8941_pwrkey): a press released within 2 s runs
systemctl suspend (s2idle, the only sleep state this kernel offers; the key wakes the headset, and the waking
press is ignored); held 2 s, systemctl poweroff, off in about 7 s. logind ignores the key. Held 8.7 s, the PMIC
resets the headset.
After a resume Valve's session goes on with 6DoF, both controllers, the cameras, USB and sound. PICO OS suspends a headset taken off (screen off after 10 s, suspend after 15 s); here SteamVR's standby follows the wear sensor (session.md). Steam can suspend again seconds after a wake.
Across a suspend the QTimer, which stamps IMU samples and camera frames, runs on while CLOCK_MONOTONIC stands. The driver sees that the system slept (CLOCK_BOOTTIME less CLOCK_MONOTONIC grew), maps both clocks anew, drops IMU samples that do not move forward, and restarts the camera capture.
Boot images¶
overpressure dev image writes two images from the recovery ramdisk image to out/dev/ (private: the recovery
image carries stock recovery's overlay and vbmeta, from the headset's own recovery partition in its EDL backup,
checked against the backup's manifest):
dev-boot.img: the dev image forboot, on the stock kernel (the acceptance runner's).dev-recovery.img: the same the recovery forrecoveryon Valve's kernel fromout/kernel(recovery.md), markedoverpressure.part=recoveryon its command line, as a whole-partition image:- the ABL loads the device-tree overlay from the image itself (
recovery_dtbo), taken from stock recovery; recoveryis a chained AVB partition: stock's own signed vbmeta (RSA-4096) follows the image, with a footer in the partition's last 64 bytes. The ABL checks that chain on every boot; an image that overwrites the vbmeta leaves every boot in fastboot, while a hash mismatch alone is tolerated on the unlocked headset. The image therefore carries stock's vbmeta unchanged and a footer pointing to it (overpressure/avb.py).
The installed system's boot image comes from dev boot-image (below).
Large raw downloads crash the ABL's fastboot (the 100 MiB stock recovery left it in crash-dump mode), so
whole-partition images go sparse (overpressure/sparse.py), zero runs as fill
chunks.
Built on the headset¶
The headset builds its own system: no build on the owner's computer, and no Docker or Podman there. This
repository's build part (its sources, the userspace definition and pin with its build hooks, the overpressure package, the recovery
files the image shares; about 1 MB) goes over SSH, and
overpressure's build/build-on-headset.sh runs on the data partition, in
/data/var/tmp/pico4-build:
- The build host. Holo Core aarch64's rootfs, the one the pinned overpressure/packages builds in (its hash in
that commit's
build/packages.sh), unpacked once per snapshot with python added.build-userspace.shandbuild-system-image.shrun in it;build-userspace.shruns in the build container the same way, from the same commit and pin, and the image holds no file that a base root's history or a random key could change. - The downloads. The headset downloads them itself, through the PC's connection, unless the owner chose Download on this computer first and keep it: then the PC downloads everything first and sends it along (downloads first). What follows is the way for whatever the PC did not send.
- The network. Everything comes through the PC's connection:
ssh -Rgives the headset a SOCKS proxy on127.0.0.1:1080, names resolved on the PC (socks5h), 18 to 29 MB/s. The build's chroots passALL_PROXYon. Every download goes through overpressure'sbuild/fetch.sh, which rides out a short outage of GitHub's downloads: server errors (408, 429, 5xx) and failed or dropped connections are tried again for three minutes, 5 s apart at first and up to 30 s; any other answer fails at once, with the URL and the error in the log. pacman's downloads from Valve's package server, its only one, go through the same file'sfetch_pacman: a pacman that failed on a download (a package or database cut short or answered with an error) runs again on the same schedule, fetching only what its cache still lacks; any other failure of pacman fails at once. What a stopped build downloaded stays, checked by its hash, so a new start fetches only the rest. Before anything is written, the PC checks that it reaches GitHub and Valve's package servers; a host it doesn't reach is named with why (TLS, the name, a timeout, the connection). This check and the kernel's download verify TLS with the PC's own verifier, as overpressure's downloads do (overpressure's downloads). - Where it runs.
dev install(the installer's install and upgrade) builds in overpressure's recovery, which it enters from a running installed system:superis not written while a system runs from it. The recovery formats the data partition first when it holds no data (or with--format-data) and builds there throughpico4-install build --system-size, which takes the PC's clock and renews its deadline while it runs, then makes the system's file system onsuperfrom the build's image root, setssuperread-only again and checks it. - Its two tasks. The installer runs
dev installin two halves, a task each: Build the system on the headset (--only build: sending the build, with the PC's downloads when the owner chose them, then the build and its end, the file system made onsuper; the build tells no fraction) and Install it and start it (--only start:bootwith a meter, the keys, PICO OS's files, the start). A failure in the second goes on from the build. - A package change.
dev install --packages DIRsends a checkout of overpressure/packages along (without its.git), and the headset's build takes its recipes that differ from the pinned commit's (build-userspace.sh --packages), as in the build container: a package change is tried on the headset without a container on the PC. - Its own mount namespace. The build's binds of
/sysand/devlive in a private mount namespace (unshare --propagation private): on the installed system/is a shared mount, and the lazy unmount of a recursive bind of/sysonce took the system's own cgroup and configfs mounts with it. - The fan. Where no fan service runs (the recovery), the build runs the installed system's
pico4-fan, from the pinned overpressure/packages, in the build host for as long as it runs. Its last-resort power-off for a stalled fan or a silent MCU (cooling.md) signals PID 1 there: the recovery'soverpressure-initstops the build, syncs and powers the headset off. - Nothing left behind. A build takes the build host (1.4 GB), the build root (7.6 GB), the compressed image
(1.7 GB) and the downloads (3 GB) on the data partition. Once the installed system runs, the install removes the
whole build folder (
rm -rf --one-file-system, never while anything is mounted below it, which it then names): the install and the upgrade leave nothing of the build on the headset. With the downloads on the PC, what a later upgrade needs is kept there (downloads first), so it builds from an empty folder and downloads only what changed; without, it downloads everything again. A build that stopped keeps its folder until the next install finishes, which goes on from it.
| Run | Time | Hottest zone |
|---|---|---|
| From an empty build folder, installed system (fan service) | 507 s, 2.2 GB downloaded | 74 °C |
| From an empty build folder, overpressure's recovery (Valve's kernel, the build's fan): the first install | 504 s, 2.2 GB downloaded | 73.6 °C |
| From an empty build folder, installed system, with the PC's downloads (downloads first) | 912 s with sending the 3 GB (about 18 MB/s); nothing downloaded | |
| Again, after a stopped build (its folder kept), overpressure's recovery | 174 to 256 s | 76 °C |
The build's image root is the same, byte for byte, from all three and from the build container (one commit, one
pin; compared as its archive); the file system made from it on super is still to compare. An
installed system built this way passes dev check (90.03 commits/s) with the tracker from its package.
Downloads first¶
A choice before the install and the upgrade, a checkbox left unticked by default: Download on this computer first
and keep it. Unticked, dev install --download-on-headset sends none of the PC's downloads and the headset fetches
everything through the PC's connection, as fast from an empty build folder (504 s, against 912 s with the PC's
downloads sent over the cable, below). Ticked, the headset's build downloads nothing the PC fetched before: dev prefetch
(overpressure's prefetch with tooling/prefetch.py's pins), the installer's last task in Check this computer, downloads all of
it before the install writes the headset, so a connection that drops then changes nothing on it, and an install started
again fetches only what is missing. It works on every host: Python reads Valve's package databases (tar with xz).
| What | From | Checked by |
|---|---|---|
overpressure/packages at the pinned commit (GitHub's archive), its build/packages.sh and pico4-fan |
GitHub | the pinned commit in the URL |
| The release's packages and layer databases | GitHub | its SHA256SUMS, pinned in userspace/packages.json |
| Holo Core's rootfs for the build host | Valve | packages.sh's pin |
The build host's python with everything it depends on, and its repository's databases |
Valve | the databases' SHA-256; userspace/build-host.json pins that repository for the rootfs it comes with |
The image's package databases and the 704 upstream packages packages.lock names, and protobuf 25 (adb's libraries) |
Valve | the lock's SHA-256 (the databases' for protobuf) |
About 3 GB, kept in cache/headset/phoenix for the next upgrade, laid out as the build folder holds them; files of
an earlier pin go. A package whose version has an epoch (1:1.6.8) lies there with %3A for the colon, which Windows
allows in no file name; the headset gets the name pacman gives it. The install sends the files in the tree's stream
(src/prefetch), all of them to an empty build folder, only those it lacks to one a stopped build left, and
build-on-headset.sh moves each into place before the build starts. The upstream
packages lie beside the build environment (root/downloads/packages), whose package cache a new environment empties:
build-userspace.sh links them into it. The build then
starts a new base root with the PC's databases (build-userspace.sh --databases) and installs the build host's python
without -y; whatever the PC did not send is downloaded through its connection as before.
Install and update¶
# Valve's kernel: the pinned release of overpressure/linux into out/kernel, checked by hash (the window's
# "Valve's kernel" step); kernel build builds the same commit here instead
overpressure --device phoenix kernel fetch
overpressure dev image # the recovery on that kernel, for recovery
overpressure dev boot-image # out/kernel/valve-boot.img
overpressure dev flash # a new dev image: overpressure's recovery; starts it
overpressure dev recovery # or, with the dev image in recovery already: into it
overpressure dev install # the headset builds the system into super; boot, userdata (if new)
overpressure dev check # the acceptance checks, on the installed system (both controllers on)
overpressure dev installed # after a later reboot: connect to it again
dev install writes through pico4-install in overpressure's recovery (overpressure's
overpressure-install
under the PICO 4's name, by its values in etc/overpressure/headset; the PC's side is overpressure's recovery client),
which writes only these:
| Command | Writes | Checks |
|---|---|---|
pico4-install build --size [--system-size] --epoch --commit [--proxy] [--now] (stdin: the build part, tar.gz) |
the build in var/tmp/pico4-build on the data partition (built on the headset); with --system-size, then the system's ext4 on super from the build's image root |
the backup's sizes, the pico4-data label; the clock set to the PC's; e2fsck of super from the partition |
pico4-install build-file --size out/pico4-userspace.manifest.json |
nothing | the build's manifest, from the data partition mounted read-only |
pico4-install write boot\|super --size --bytes --sha256 |
the image to the start of the partition, through dd in 4 MiB blocks |
the partition's size equals the backup's, the image fits, a readback against the image's SHA-256 |
pico4-install hash NAME BYTES |
nothing | the SHA-256 of the partition's first BYTES (whether it holds its image already) |
pico4-install stock --size --bytes --sha256 (stdin: the archive of PICO OS's files) |
var/lib/pico4-stock on the data partition, replacing the old copy only when complete |
the backup's size, the pico4-data label, the archive's size and hash, every file against its SHA256SUMS |
pico4-install stock-hash --size |
nothing | the SHA-256 of that copy's manifest (whether it holds this backup's files already) |
pico4-install format-data --size |
ext4 pico4-data on userdata |
the backup's size; the label afterwards |
pico4-install keys --size --id (stdin: authorized_keys) |
/root/.ssh/authorized_keys and /etc/overpressure/install-id in the /etc overlay's upper layer on the data partition |
the backup's size, the pico4-data label, at least one public key |
pico4-install wipe userdata\|metadata --size |
zeros over the first 64 MiB | the backup's size; a readback |
pico4-install bootmode recovery\|normal |
the 2 KiB bootloader message in misc |
a readback |
Each partition is writable for its write only, with its disk on Valve's kernel, which counts the disk's read-only flag for its partitions (the disk's other partitions keep their own); a data mount that BusyBox falls back to read-only is a failure. dev install skips a partition that holds its image already (by
readback hash), formats userdata only when it holds no pico4-data file system (or with --format-data), and
writes the keys and install ID (security.md). An update is the same command: the headset
builds again, super gets the new build, boot is written only when it differs, the keys again; the data stays.
Before the first write dev install and dev restore read the headset's battery: below 20 % they start only
while it charges (Charging or Full); an unreadable battery gets a warning. A headset that switches off
halfway, or whose cable is pulled, starts overpressure's recovery again (misc requests it until the install
ends); the write is lost, and dev install again (or the installer's Upgrade) writes boot and super anew
while userdata keeps its data. This follows from the order and misc; it was not tried with a pulled cable.
The boot image. dev install writes out/kernel/valve-boot.img to boot: Valve's kernel and tree
(kernel.md). dev boot-image makes it with tooling/development/boot_images.py --direct --boot KERNEL_OUT
STOCK_RECOVERY DEV_RECOVERY OUT, the header from the dev recovery image: no ramdisk, the command line of
how it starts, no AVB footer (the bootloader applies the dtbo partition's overlay, as on every
normal boot), no keys and no firmware. A new boot image alone goes through dev recovery, then
dev install --boot PATH.
| Command | Purpose |
|---|---|
overpressure dev recovery |
into overpressure's recovery (through fastboot), which stays until dev normal |
overpressure dev normal |
from overpressure's recovery into the installed system |
overpressure dev installed |
connect to the running installed system (after a reboot) |
overpressure dev restore-partition misc\|recovery\|boot |
one partition back from the backup through fastboot (sparse, size- and hash-checked) |
Verified results¶
| Check | Result |
|---|---|
| Recovery boot | the ABL starts overpressure's recovery from recovery (fastboot reboot recovery), readback identical; boot-recovery stays in misc until cleared |
misc and recovery written back from the backup |
identical to the backup by readback; boot starts again |
| Install | boot (24 MiB) and super (4,706 MiB) written and read back, userdata formatted (104 GiB for data); keys and install ID written, and dev installed logs in with them |
| Built on the headset | dev install from overpressure's recovery on Valve's kernel: the build from an empty folder in 504 s (hottest zone 73.6 °C, the build's fan), one going on from a stopped build in 3 to 4 minutes, the build folder removed at the end; dev check passes (above). Measured with the system written as an image from the data partition. The file system made straight on super (installer's install from the command line, from PICO OS): the build again from its kept folder in 48 s, the same build as before; the send, the build and super 345 s in all; e2fsck clean from the partition; the installed system running with no failed units from it, read-only, labelled pico4-system, its UUID the build's and its creation time the commit's; Wi-Fi joined, both keys in |
| Direct boot | the ABL boots a boot image without a ramdisk; root=PARTLABEL=super mounts the system image (sda7) read-only 1.43 s after the kernel starts; the display and the GPU bind |
| Windows NCM on Valve's kernel | after a reboot the installed system answers SSH without the NCM initialization; no Wrong NDP SIGN |
| Start without the recovery | preinit at 1.4 s, systemd at 1.9 s (storage sweep 0.03 s); USB link at about 4 s, wlan0 (re-probed) at about 9 s; systemd running, no failed units; / read-only from sda7, /data writable, /etc an overlay; governor schedutil |
| Boot time | the graphical target 9.7 s and 11.0 s after the kernel starts, pico4-session.service started at 5.3 to 5.7 s; the audio DSP's chain (pico4-lpass-macros, 5 to 6 s) ends it |
| Charger mode | a power-off with the cable in starts pico4-charger.target (10.7 s): charger service, sshd and USB link run, boot indication and session do not; a plain reboot from it starts the system |
| Charger mode from a plug-in | powered off from Steam's menu without a cable, then a USB-C PD charger or a computer's USB-C port plugged in 10 s later: the status LED comes on and charger mode starts; on the PD charger with the same contract as the running system (3 A at 5 V at 97 %) |
| Charger mode's battery, looked at | shown in both lenses when charger mode starts and on a short press of the power key, then dark again; holding the key 2 s starts the system |
| Persistence | files in /home, /var, /etc and /root survive a reboot and a system update (new image in super, its package database taken over) |
dev check on the installed system |
userspace check passes (USB link, storage, systemd, no unexpected listener); head IMU passes; Valve's session: 90.03 commits/s, 0.0 % late, 0 stalls, hottest zone 67.1 °C after 30 s; SteamVR saw the headset (the controllers were not connected) |
| Development loop | dev recovery, dev reboot (stays in overpressure's recovery), dev normal (installed system again); from fastboot without the recovery request, dev reboot connects to the installed system |
| EDL restart | dev edl from the installed system: one EDL device after about 17 s; edl-ng's reset starts the system again after about 10 s, without returning to EDL. A plain restart stays a hard reset |
| Boot indication | Monado and SteamVR's compositor take the display from pico4-splash.service (it exits within 0.5 s) |
| Power-off | stays off without the cable until USB power comes; with the cable attached it starts again with androidboot.mode=charger |
Open work¶
- Integrity. The system is checked when made (
e2fsckfromsuper), not at boot (no dm-verity). Still to run on the file system made straight onsuper:dev check, and the time of the write itself. - The direct boot. Still to run: a boot without the PC, and
dev checkwith both controllers connected. - The boot indication in the lenses. Tested on the host (the drawing also on aarch64 under QEMU); still to
see: the picture in both lenses and the bar carrying on when
pico4-splash.servicetakes over.