diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 831ff99d..0f5ff97b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,3 +29,5 @@ jobs: contents: write pull-requests: read # the notes name each change's pull request and its author issues: write # the issues it releases are closed + secrets: + update-key: ${{ secrets.UPDATE_KEY }} # signs the release's update once overpressure.json pins overpressure diff --git a/CLAUDE.md b/CLAUDE.md index 5a1c41e8..67146e65 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -72,11 +72,15 @@ checks the links; a link may not leave this repository, so links to overpressure - `initramfs/`: the PICO 4's overlay on overpressure's headset runtime ([runtime.md](https://github.com/overpressure/overpressure/blob/main/docs/internals/runtime.md)) in overpressure's recovery (in `recovery`) and the base of test images: its values in `etc/overpressure/headset` - (which the image takes too, and the tooling reads: `VALUES`, `GADGET`, `HOST`) and `pico4-install` (the + (which the image takes too, and the tooling reads: `VALUES`, `GADGET`, `HOST`), `etc/overpressure/update.pub` (the + public key a release's signed update is checked with; its private half is the repository's `UPDATE_KEY` secret) + and `pico4-install` (the installer's only writer: overpressure's `overpressure-install` under the PICO 4's name, which earlier recoveries' restores call). The status page, `overpressure-info`, `overpressure-probe`, the login profile and the QEMU self-test (overpressure's `tests/qemu/`) are the runtime's. The runtime's `overpressure-init` is PID 1, not busybox init: busybox's `kill(-1)` also reaches kernel threads that accept signals. +- `boot.json`: the installed system's boot image's recipe (its command line words, the stock words dropped, the + ABL's limit), which `boot_images.py` and the headset's own update read alike. - `kernel.json`: Valve's kernel: the pinned release of overpressure/linux (tag, commit, build image, file hashes) and, under `build`, what overpressure's `build/build-kernel.sh` builds it with (the device tree, the config fragment, the host name), as overpressure/linux's CI and `kernel build` run it. `tooling/kernel.py`: diff --git a/README.md b/README.md index cd404bc6..1a777aa9 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ to PICO OS is part of it. | Upgrade to a new release | ✅ | Keeps your data, Wi-Fi, room and Steam sign-in | | Back to PICO OS | ✅ | From the backup the install made | | Back to PICO OS without a backup | ✅ | From PICO's own downloads, the build the headset's firmware has; run once, on Windows | +| Updates on the headset | ✅ | Overpressure Settings → Updates downloads a newer release and installs it, without a computer | Everything that is still open: [the issues](https://github.com/overpressure/phoenix/issues). @@ -119,7 +120,8 @@ More on each, and what the install asks before it starts: [installing](docs/use/ downloaded first if you tick that before the start. 4. When the app says so, unplug the headset and put it on. -**Upgrade** installs a newer release and keeps your data. **Restore to stock** brings PICO OS back from the +**Upgrade** installs a newer release and keeps your data; the headset also updates itself, in **Overpressure +Settings → Updates** ([updates](docs/use/using.md#updates)). **Restore to stock** brings PICO OS back from the backup and finishes by itself; keep the headset on the cable, as PICO OS's first start may update the controller of the lenses and the fan. Tick *Keep USB debugging on in PICO OS* before the start to reach PICO OS over USB right away. Without a backup, **Rescue PICO OS** brings PICO OS back from PICO's own downloads diff --git a/THIRD-PARTY.md b/THIRD-PARTY.md index b1a50d56..3c8ba256 100644 --- a/THIRD-PARTY.md +++ b/THIRD-PARTY.md @@ -31,7 +31,7 @@ The project's packages (Monado with the PICO 4's driver, Basalt, gamescope, hexa plugin, GTK 2, MangoHud and others) and the PICO 4's image definition are their own repository, [overpressure/packages](https://github.com/overpressure/packages), whose THIRD-PARTY.md lists the material from other projects and the project's own code under their licenses. `userspace/packages.json` pins its -release `2026.12.1`, which carries the complete sources of its GPL and LGPL packages. +release `2026.12.2`, which carries the complete sources of its GPL and LGPL packages. ## The kernel diff --git a/boot.json b/boot.json new file mode 100644 index 00000000..03a88dfb --- /dev/null +++ b/boot.json @@ -0,0 +1,27 @@ +{ + "words": [ + "clk_ignore_unused", + "pd_ignore_unused", + "regulator_ignore_unused", + "panic=5", + "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" + ], + "stock_only": [ + "androidboot.", + "lpm_levels.", + "video=", + "msm_rtb.", + "service_locator.", + "swiotlb=", + "buildvariant=", + "console=" + ], + "limit": 511 +} diff --git a/docs/internals/kernel.md b/docs/internals/kernel.md index 6ebb0621..05fc4908 100644 --- a/docs/internals/kernel.md +++ b/docs/internals/kernel.md @@ -29,6 +29,7 @@ As shipped: | File | Purpose | | --- | --- | +| [boot.json](../../boot.json) | the installed system's boot image's recipe: the words Valve's kernel boots the installed system with, the stock words it does not take, the ABL's 511 bytes; `dev boot-image`, the installer and an update's install on the headset make the boot image by it (overpressure's `kernelimage.installed_boot`), the same bytes | | [kernel.json](../../kernel.json) | the pin: overpressure/linux's tag (`phoenix/7.2-11`), its commit, the build image it was built with, and the SHA-256 of `Image.gz`, the device tree, `config` and `version`; under `build` the device tree (`sm8250-pico4-phoenix`), the config fragment (`pico4.config`) and the host name (`pico4`) the kernel is built with | | [tooling/kernel.py](../../tooling/kernel.py) | `kernel fetch` (the installer's step: the release's files into `out/kernel`), `kernel build` (the pinned commit built here in the release's build image, [below](#building-it-yourself)), `kernel check DIR`, `kernel contracts` ([below](#contracts)) | | overpressure's [build-kernel.sh](https://github.com/overpressure/overpressure/blob/main/overpressure/build/build-kernel.sh) | a checkout of overpressure/linux's `phoenix/7.2` to `Image.gz`, the device tree, `config`, `version` and `build.json` (release, commit, banner, the tooling's commit, the build image, hashes), by `kernel.json`'s build values; `uname -v` names the commit. That repository's CI builds each change with it once, through ccache when `CCACHE_DIR` is set (its check builds), and each tag twice on two machines without it, and releases a tag whose builds agree | diff --git a/docs/internals/onboarding.md b/docs/internals/onboarding.md index 3f91e8ad..e7fb9eb5 100644 --- a/docs/internals/onboarding.md +++ b/docs/internals/onboarding.md @@ -1,9 +1,11 @@ # Onboarding and Overpressure Settings -**TL;DR.** From an empty data partition, a first-run setup panel replaces the Steam client's own setup: welcome, -language, time zone, Wi-Fi, controllers and lens distance, once, before the first sign-in. Afterwards Overpressure -Settings, a tab in SteamVR's dashboard, sets the lens distance and pairs controllers. Both are part of Valve's VR -session ([session.md](session.md)). +**TL;DR.** From an empty data partition, a first-run setup panel replaces the Steam client's own setup, once, +before the first sign-in, in the order it can be done: the controllers, hands-free; the lens distance, by the +thumbstick; then language, time zone and Wi-Fi. Afterwards Overpressure Settings, a tab in SteamVR's dashboard, sets +the lens distance, pairs controllers, updates the system and shows every part's version. Both are part of Valve's VR +session ([session.md](session.md)) and look like the overpressure client +([the panels' look](#the-panels-look)). ## What a new owner meets @@ -12,10 +14,10 @@ What a new owner meets, from an empty data partition: | Part | Covers | Here | | --- | --- | --- | | Steam's OOBE ([the client](session.md#the-steam-client)) | welcome, language, time zone, network, update, sign-in; stage 2: Steam Controller, underscan, audio | does not run: only on Valve's factory image | -| [First-run setup](#first-run-setup) | welcome, language, time zone, Wi-Fi, controllers, lens distance | before the first sign-in, once | +| [First-run setup](#first-run-setup) | controllers, lens distance, language, time zone, Wi-Fi | before the first sign-in, once | | The Frame's guided tour | pairing, health, playspace, laser mouse, system button, PC pairing | does not run (device type 541) | | SteamVR | playspace setup for a new room ([head-tracking.md](xr/head-tracking.md#room-setup)) | when a game starts in a new room, or from Space Setup | -| [Overpressure Settings](#overpressure-settings) | the lens distance, the controllers' pairing | SteamVR's dashboard; the controllers' page in front when none is connected | +| [Overpressure Settings](#overpressure-settings) | the lens distance, the controllers' pairing, the system's updates, the versions | SteamVR's dashboard; the pairing in front when no controller is connected | The setup is [`pico4-onboarding`](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4-onboarding.cpp) ([`pico4-onboarding.service`](https://github.com/overpressure/packages/blob/main/phoenix/pico4-session/pico4-onboarding.service), part of @@ -24,11 +26,15 @@ overlays. It comes back in front when the headset is put on and a second after i than 30 degrees aside, or 0.3 m above or below the eyes); while looked at it stays. Once the setup is done, or someone signed in (`CompletedOOBE` in `~/.steam/registry.vdf`), it exits at once. -- **Controllers.** With no controller connected 20 s after the start, the station listens for one - controller after the other, 60 s each, through the driver's pairing socket - ([controllers.md](xr/controllers.md#pairing)), while the panel says what to press (trigger and PICO button together for - about 6 s, PICO OS's instruction). With one controller connected, its laser pairs the other from the - panel's Pair button. After the setup, [Overpressure Settings](#overpressure-settings) does the same. +- **Controllers.** The setup opens on them: no laser can point before one is paired. The station listens as + soon as the panel shows, for one controller after the other, 60 s each, through the driver's pairing socket + ([controllers.md](xr/controllers.md#pairing)), while the panel shows which two buttons to hold (trigger and PICO + button together for about 6 s, PICO OS's instruction) and how long it keeps listening. With one there, its laser + may go on with one; with both, the lens distance follows by itself. A controller that reconnects by itself while + the other hand is listened for shows at once: the driver tells the waiting pairing (`connected HAND`), and the + next listening waits for a fresh status. With both paired already, the setup opens on + the lens distance; with none left later in the setup, it returns to them. After the setup, + [Overpressure Settings](#overpressure-settings) pairs hands-free in front of the wearer the same way. - **Not covered:** the Frame tour's PC pairing; Steam Link is in the menu ([Steam Link](steam-link.md)). ## First-run setup @@ -45,6 +51,13 @@ the session (`wait-first-run --pending`). During the setup: the room view covers. - **No wait for Steam.** `/settings/dashboard/expectSteam` is off; with it on, the system UI shows a spinner until Steam's UI is up and after 120 s the error whose only button restarts the headset. +- **No Steam API.** Without the client, `vrserver` tries Steam's API every half second. Each try loads + the client's `steamclient.so`, which takes a thread key and never gives it back; after about nine + minutes all 1024 are gone, and the next program that connects to `vrserver` crashes it (at the setup's + end SteamVR restarts). The API finds the library only through `~/.steam/sdkarm64`, which the client's + `RUNSTEAM.sh` makes at each start, so on a new installation the tries fail before loading anything. + When the setup runs again after the client has started once, `wait-first-run --before-steamvr` + (`ExecStartPre` of `steamvr.service`) removes that link, unless the client runs already. - **Dashboard closed.** The system UI opens its dashboard at start, over the panel; the setup closes it as the system button does (`hide_dashboard_requested` to the mailbox `vrwebui_dashboard`). The system button still opens it. @@ -79,26 +92,27 @@ of all 31 languages: Chinese, Japanese and Korean through `noto-fonts-cjk`. over give each language its own face, as PICO OS does: the SC, TC, JP or KR face for the text's language, Naskh for Arabic, and the SC face and Naskh for CJK and Arabic text in another language's page. -| The client's page | Here | +| Step | Here | | --- | --- | -| Welcome | the client's welcome, the controllers' state; Skip leaves the setup for good | -| Language | the client's 31 languages by their own names; a choice sets the client's language in `registry.vdf` ([`steam-language`](https://github.com/overpressure/packages/blob/main/phoenix/pico4-session/steam-language); a running client restarts, as its own setting does) and the panel's | -| Time zone | the client's 62 zones with its names and cities, set through `steamos-set-timezone` | -| Network | Wi-Fi networks (`nmcli`), strongest first; Wi-Fi turned on if off. A password page as in the client's settings: a field, a show switch, and SteamVR's keyboard in minimal mode, which sends each key to the panel and keeps no text. The password goes to `nmcli --ask` on its input only. A hidden network's name comes first on the same kind of page. The attempt shows a spinner, then a tick, or a cross with the reason and the password page again; a refused password's profile is deleted. Proxy and captive portals are in the client's settings | -| Update | none: the system is updated from the installer on a computer; the client updates itself at every start | -| Screen reader | none on the panel, which draws its pages itself; the client's own screen reader is as on the Frame: Orca (`orca.service`, started by `steamos-manager` when the client's setting turns it on), speaking through speech-dispatcher with espeak-ng | -| Stage 2: Steam Controller | none: no Valve radio; a Steam Controller pairs over Bluetooth in the client's settings | -| Stage 2: controller pairing | the PICO 4's controllers, as above | -| Stage 2: underscan | none: no television | -| Stage 2: audio | none: the headset's speakers; other devices in the client's settings | -| (none) | the lens distance, 58 to 72 mm in 0.5 mm steps, through `pico4-lens`; closer than 62 mm once the box of the warning about the nose is ticked, as on PICO OS ([lenses.md](xr/lenses.md)) | - -Done on the last page, or Skip on the first, writes `~/.local/share/pico4/setup-done` and the client -starts. +| 1 Controllers | as above: hands-free, the two buttons as pictures, a countdown; no words to read before a language is chosen beyond a title and one line | +| 2 Lens distance | 58 to 72 mm in 0.5 mm steps through `pico4-lens`: the thumbstick (left and right) moves the lenses without aiming, the laser on large −/+ buttons and a slider; a black-and-white star that is sharp at the right distance, the distance in large type; closer than 62 mm once the warning's box is ticked, as on PICO OS ([lenses.md](xr/lenses.md)) | +| 3 Language | the client's 31 languages by their own names; a choice sets the client's language in `registry.vdf` ([`steam-language`](https://github.com/overpressure/packages/blob/main/phoenix/pico4-session/steam-language); a running client restarts, as its own setting does) and the panel's | +| 4 Time zone | the client's 62 zones with its names and cities, set through `steamos-set-timezone` | +| 5 Wi-Fi | networks (`nmcli`), strongest first; Wi-Fi turned on if off. A password page as in the client's settings: a field, a show switch, and SteamVR's keyboard in minimal mode, which sends each key to the panel and keeps no text. The password goes to `nmcli --ask` on its input only. A hidden network's name comes first on the same kind of page. The attempt shows a spinner, then a tick, or a cross with the reason and the password page again; a refused password's profile is deleted. Proxy and captive portals are in the client's settings | +| 6 Ready | Done starts the client | + +The lists scroll with the thumbstick (up and down), with a track at their edge. What the client's own setup has and +this one does not: an update page (the system updates from Overpressure Settings; the client updates itself at +every start), a screen reader on the panel (the client's own is Orca, as on the Frame, through `steamos-manager` +and speech-dispatcher with espeak-ng), the Steam Controller's pairing (no Valve radio; Bluetooth in the client's +settings), underscan (no television) and audio (the headset's speakers; others in the client's settings). + +Done on the last page writes `~/.local/share/pico4/setup-done` and the client starts. The pages' logic, zones, languages and the readers of the client's files and nmcli's output are in [pico4_setup.h](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_setup.h), [pico4_onboarding.h](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_onboarding.h) and -[pico4_pairing.h](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_pairing.h), tested on the host. +[pico4_pairing.h](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_pairing.h), tested on the host; the pairing page, which +Overpressure Settings shows too, in [pico4_pair_ui.hpp](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_pair_ui.hpp). `pico4-onboarding --render DIR [LANGUAGE]` draws every page as PNG without SteamVR. | Check | Result | @@ -106,30 +120,54 @@ The pages' logic, zones, languages and the readers of the client's files and nmc | Worn, after an install with both controllers off | the panel listened for the left controller hands-free; the right one connected when switched on and its laser paired the left | | Worn, on an installed system: room view, keyboard, Wi-Fi | the room view shows behind the panel; the password field opens the keyboard; after a refused password the retry joins | | The setup's pages worn, from an empty data partition | open | +| Worn: the new order and look, the thumbstick's scrolling and lens control | the pages in order; the thumbstick moves the lenses and scrolls the lists; with both controllers connected the setup goes on to the lenses by itself | +| Worn: SteamVR after more than nine minutes in the setup, after the client had started before | `vrserver` loaded no client library in 12 minutes and took a new client; the setup's end kept the session | ## Overpressure Settings Overpressure Settings ([`overpressure-settings`](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/overpressure-settings.cpp), [`overpressure-settings.service`](https://github.com/overpressure/packages/blob/main/phoenix/pico4-session/overpressure-settings.service), part of `steamvr.service`) is -a tab in SteamVR's dashboard for what the PICO 4 cannot do the Frame's way, laid out like SteamVR's own -settings: a menu on the left, the chosen page on the right, in the client's language with the texts of -pico4-onboarding.strings. +a tab in SteamVR's dashboard for what the PICO 4 cannot do the Frame's way, in the client's language with the +texts of pico4-onboarding.strings. It opens on its home, as the overpressure client's headset page: the headset's +picture, its system and release and the lens distance, an update button while a newer release waits, a tile for +each page and the controllers' state. Each page has its way back in the top bar. | Page | Why | What | | --- | --- | --- | -| Lens distance | the lenses have no wheel, and SteamVR shows the IPD but has no control that sets it | a slider, ±0.5 mm buttons and four presets, 58 to 72 mm; closer than 62 mm after PICO OS's warning ([lenses.md](xr/lenses.md)) | +| Lens distance | the lenses have no wheel, and SteamVR shows the IPD but has no control that sets it | a slider, ±0.5 mm buttons, the thumbstick (left and right) and four presets for people taking turns (a press moves to one, holding one stores the distance), 58 to 72 mm; closer than 62 mm after PICO OS's warning ([lenses.md](xr/lenses.md)) | | Controllers | SteamVR cannot pair the PICO 4's controllers | each one's state, and Pair for a missing one through the driver's pairing socket ([controllers.md](xr/controllers.md#pairing)) | +| Updates | the system's updates come from overpressure's updater, not Valve's | the installed release; Check for updates; a newer release on its channel with its notes and Download; the download's bar (it goes on with the dashboard closed); Restart and install, which the recovery installs in up to 10 minutes, the data kept; a failure's reason with Try again ([overpressure's updates.md](https://github.com/overpressure/overpressure/blob/main/docs/internals/updates.md#the-updater)) | +| About | every version in one place | the system's release and commit, overpressure, the recovery that built the system, the packages release, the kernel (its tag and Linux's release), SteamVR, Mesa and the headset's driver: from the release record, the image's version file, the recovery's record, `uname` and pacman's database; the list scrolls with the thumbstick | With no controller connected 20 s after the start, and the first-run setup over (it pairs itself), the -Controllers page comes up 1.3 m in front of the wearer as the setup's panel does, and the station -listens hands-free for one controller after the other, 60 s each. With one connected, its laser pairs -the other or closes the panel; with both connected the panel goes after 3 s. The layout and decisions +setup's pairing page comes up 1.3 m in front of the wearer, and the station listens hands-free for one +controller after the other, 60 s each. With one connected, its laser closes the panel; with both connected +the panel goes after 3 s. The Updates page reads +`overpressure-update status` every second while it shows, and its button starts the updater's next step +(`overpressure-update@STEP.service`, which overpressure-base lets the session start). The layout and decisions are in [pico4_settings.h](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_settings.h), tested on the host; `overpressure-settings --render DIR [LANGUAGE]` draws the pages as PNG without SteamVR. +## The panels' look + +Both panels follow the overpressure client +([pico4_ui.hpp](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_ui.hpp)): its dark colour tokens, its top bar +with the way back and the page's place, one column of grouped cards with uppercase labels, rows that name a thing +with its control on the right, tiles with an icon, pills for states, the headset's picture +(`/usr/share/pico4/headset.svg`, the client's art, drawn by librsvg), and the font Adwaita Sans (Inter's GNOME +fork, as the client's Inter). Its sizes are the client's, about 1.85 times, for a panel at arm's length; the +panels are a quarter larger than that needs (the setup 1250 by 750 px over 1.5 m, the Settings tab 1375 by 775 px +over 2.75 m), room for longer languages, with round corners (clear outside them). The line +icons are drawn for overpressure on a 24 px grid. Every control registers its box as it is drawn +([pico4_ui_hits.h](https://github.com/overpressure/packages/blob/main/phoenix/pico4-monado/pico4_ui_hits.h)), so the laser's hover, a blue ring, +and its press find exactly what is on the panel. SteamVR's smooth scroll events (the thumbstick over a panel, +through the project's controller bindings; gamescope's windows take the same) scroll lists and move the lenses, +1.0 a step; the discrete ones never reached the panels. + | Check | Result | | --- | --- | -| The pages rendered in English and German | as designed; GCC builds it without warnings | +| The pages rendered in English, German, Japanese and Arabic | as designed; GCC builds both panels without warnings | +| Worn: the Updates page from a release feed | open | | Worn: the dashboard's tabs | Overpressure Settings is the only one of the project's | | Worn: lens distance | the slider and ±0.5 mm move the lenses; a held preset stores the distance, a pressed one moves to it | | Worn: both controllers switched off, then on | the Controllers page came up in front within seconds; both reconnected and it went | diff --git a/docs/internals/xr/controllers.md b/docs/internals/xr/controllers.md index a6009063..dcd3c6d4 100644 --- a/docs/internals/xr/controllers.md +++ b/docs/internals/xr/controllers.md @@ -87,7 +87,8 @@ With the session stopped `pico4-station` talks to the station itself. While a se (session user and root only), served by the station thread between reads (`pico4_station.h`): one request per connection (`pair left|right [SECONDS]`, `unpair left|right`, `status`). A pairing answers `pairing HAND` when the station listens, then `paired HAND SERIAL` or `timeout HAND`; a client that -hangs up stops it. The onboarding ([onboarding.md](../onboarding.md)) pairs through it. +hangs up stops it. The other hand's controller connecting meanwhile answers `connected HAND SERIAL`, and the +pairing goes on. The onboarding ([onboarding.md](../onboarding.md)) pairs through it. ## Inputs, poses and vibration diff --git a/docs/use/README.md b/docs/use/README.md index 4f54f2d3..ba74ef0b 100644 --- a/docs/use/README.md +++ b/docs/use/README.md @@ -6,5 +6,5 @@ to do when something goes wrong. What works today: the [README](../../README.md# | Document | Contents | | --- | --- | | [install.md](install.md) | what you need, the install, checking the headset, upgrades, the backup, back to PICO OS, the rescue without a backup | -| [using.md](using.md) | the headset day to day: the session, games, Steam Link, Android apps, controllers, Wi-Fi, sound, sleep, the fan | +| [using.md](using.md) | the headset day to day: the first start, the session, games, Steam Link, Android apps, controllers, Wi-Fi, sound, sleep, the fan, updates | | [troubleshooting.md](troubleshooting.md) | a headset that does not answer or is not found, drivers, the USB link, a stopped backup, batteries, reporting a problem | diff --git a/docs/use/using.md b/docs/use/using.md index 1115f460..f260c195 100644 --- a/docs/use/using.md +++ b/docs/use/using.md @@ -1,9 +1,10 @@ # Using the headset **TL;DR.** The PICO 4 starts straight into Valve's VR session, as the Steam Frame does: SteamVR with the Steam -client's library, store and games, without a PC. The first start asks for the language, the time zone, Wi-Fi and the -controllers; then you sign in to Steam. Overpressure Settings, a tab in SteamVR's dashboard, sets the lens distance -and pairs controllers. How each part works is in [the internals](../internals/README.md). +client's library, store and games, without a PC. The first start pairs the controllers and asks for the lens +distance, the language, the time zone and Wi-Fi; then you sign in to Steam. Overpressure Settings, a tab in SteamVR's +dashboard, sets the lens distance, pairs controllers and updates the system. How each part works is in +[the internals](../internals/README.md). ## Starting and standby @@ -19,15 +20,18 @@ and pairs controllers. How each part works is in [the internals](../internals/RE Before the first sign-in a panel in front of you sets the headset up, in the Steam client's 31 languages ([how it works](../internals/onboarding.md)): -1. **Welcome**, with the controllers' state. **Skip** here leaves the setup for good. -2. **Language**: the Steam client's languages, by their own names. -3. **Time zone**: the Steam client's zones. -4. **Network**: the Wi-Fi networks, strongest first. A password page with SteamVR's keyboard; a refused password - shows the reason and the password page again. A hidden network's name comes first. -5. **Controllers**: see [pairing](#pairing-a-controller). -6. **Lens distance**: see [the lens distance](#the-lens-distance). - -**Done** on the last page starts the Steam client. Its first start unpacks it on the headset, then it downloads its +1. **Controllers**: the headset listens for them by itself; see [pairing](#pairing-a-controller). Controllers that + are connected already skip this step. +2. **Lens distance**: the thumbstick moves the lenses until the star looks sharp; see + [the lens distance](#the-lens-distance). +3. **Language**: the Steam client's languages, by their own names. +4. **Time zone**: the Steam client's zones. +5. **Wi-Fi**: the networks, strongest first. A password page with SteamVR's keyboard; a refused password shows the + reason and the password page again. A hidden network's name comes first. +6. **Ready.** + +The lists scroll with the thumbstick while the laser points at them. **Done** on the last page starts the Steam +client. Its first start unpacks it on the headset, then it downloads its current version (about 650 MB), installs it and restarts, once per release. Then you sign in with your Steam account. The Steam Frame's own guided tour does not run on the PICO 4. @@ -62,11 +66,11 @@ Touch, Index or Vive controllers remapped. Controllers paired under PICO OS connect as they are. A new controller, one paired to another headset, or one you unpaired with its own buttons (Home and Trigger for 4 seconds) needs pairing: -- **In the first-run setup**, with no controller connected, the headset listens for one controller after the other, - a minute each: hold the **Trigger** and the **PICO button** together for about 6 seconds. With one controller - connected, point it at **Pair** to pair the other. +- **In the first-run setup**, its first step: the headset listens for the left controller, then the right, a minute + each: hold the **Trigger** and the **PICO button** together for about 6 seconds, until it vibrates. With one + connected you can go on with one; with both, the setup goes on by itself. - **Later**, in **Overpressure Settings → Controllers**: each controller's state, and **Pair** for a missing one. With - no controller connected 20 seconds after the start, this page comes up in front of you by itself and listens for + no controller connected 20 seconds after the start, the pairing comes up in front of you by itself and listens for one controller after the other; it goes once both are connected. After a short sleep of the headset the controllers reconnect by themselves; after hours asleep or off, press a @@ -74,11 +78,15 @@ button on each. ## The lens distance -The lenses have no wheel: a motor moves them. **Overpressure Settings → Lens distance** moves them with a slider and -±0.5 mm buttons, from 58 to 72 mm, as on PICO OS; the picture follows. Four presets keep your distances: press one to -move to it, hold it for a second to store the current distance. Closer than 62 mm goes only once you tick the box of -the warning that the lenses can press on your nose; the PICO 4 is made for 62 to 72 mm. The first-run setup's lens -page works the same way ([how it works](../internals/xr/lenses.md)). +The lenses have no wheel: a motor moves them. **Overpressure Settings → Lens distance** moves them with the +thumbstick (left and right), a slider and ±0.5 mm buttons, from 58 to 72 mm, as on PICO OS; the picture follows. +Four presets keep your distances: press one to move to it, hold it for a second to store the current distance. +Closer than 62 mm goes only once you tick the box of the warning that the lenses can press on your nose; the PICO 4 +is made for 62 to 72 mm. The first-run setup's second step works the same way, with a pattern that looks sharp at +the right distance ([how it works](../internals/xr/lenses.md)). + +**Overpressure Settings → About** shows every version in one place: the system's release, overpressure, the recovery, +the packages, the kernel, SteamVR, Mesa and the headset's driver. ## The room, the play area and the room view @@ -167,6 +175,21 @@ battery is above 59 °C, as PICO OS does ([the limits](../internals/cooling.md#h ## Updates -The system is updated from the overpressure app on a computer (**Upgrade**), which keeps your data, Wi-Fi, rooms and -Steam sign-in. Steam's own system update says the system is up to date. The Steam client, its games, Proton and the -Android runtime update through Steam; SteamVR updates only with a new system. +The headset updates its system itself, over Wi-Fi or the USB cable's shared internet, without a computer. It looks +for a newer release once a day; **Overpressure Settings → Updates** shows what it found: + +1. **Check for updates** looks now. A newer release on your headset's channel shows with what's new and its size; a + beta headset gets betas, a stable one only stable releases. +2. **Download** fetches it. The download goes on with the dashboard closed, and goes on where it stopped after a + lost connection. +3. **Restart and install** restarts the headset into overpressure's recovery, which installs the update in up to 10 + minutes and starts the new system. Keep the headset switched on meanwhile. It needs 40 % battery, or the cable. + Your data, Wi-Fi, rooms, games and Steam sign-in stay. + +If an install fails, the recovery shows the reason and **Try again**. Until the new system is written, the old one +still starts; after that, **Try again** or an **Upgrade** from the app installs it. A downloaded update also shows as +**Apply update** in the recovery's menu. + +The overpressure app on a computer can still update the headset (**Upgrade**). Steam's own system update says the +system is up to date. The Steam client, its games, Proton and the Android runtime update through Steam; SteamVR +updates only with a new system. diff --git a/headset.json b/headset.json index c8c776f5..3f18dca5 100644 --- a/headset.json +++ b/headset.json @@ -2,7 +2,7 @@ "codename": "phoenix", "name": "PICO 4", "version": "2026.12.0b1.dev0", - "api": "2.1", + "api": "2.2", "flavours": ["steamos", "overpressure-os"], "commit": "$Format:%H$", "date": "$Format:%ct$" diff --git a/initramfs/etc/overpressure/update.pub b/initramfs/etc/overpressure/update.pub new file mode 100644 index 00000000..3b301809 --- /dev/null +++ b/initramfs/etc/overpressure/update.pub @@ -0,0 +1,3 @@ +-----BEGIN PUBLIC KEY----- +MCowBQYDK2VwAyEAMz3fv/3Aa2T5pLQ/shR5dOVdV4nkQ6CcwPyU7hT8Grg= +-----END PUBLIC KEY----- diff --git a/tests/development/test_boot_images.py b/tests/development/test_boot_images.py index d82882e8..7f13869c 100644 --- a/tests/development/test_boot_images.py +++ b/tests/development/test_boot_images.py @@ -11,8 +11,10 @@ from pathlib import Path from unittest import mock -from devices.phoenix.tooling.development import boot_images -from overpressure.api.v2 import avb, bootimg, cpio +from devices.phoenix.tooling.development import boot_images, devloop +from overpressure.api.v2 import avb, bootimg, cpio, kernelimage + +ROOT = Path(__file__).resolve().parents[2] def stock_partition(total: int = 64 * 4096) -> bytes: @@ -134,9 +136,20 @@ def test_boot_is_the_installed_systems_own_image(self): self.assertIn("overpressure.root=installed", words) # preinit's reboot into recovery after a failed start stays: recovery holds the dev image. self.assertNotIn("overpressure.failover=reboot", words) + # The same bytes the headset makes itself for an update, from its recovery partition and boot.json. + kernel = (self.tmp / "out/Image.gz").read_bytes(), (self.tmp / "out" / boot_images.DTB).read_bytes() + self.assertEqual(data, kernelimage.installed_boot(dev.read_bytes(), *kernel, boot_images.RECIPE)) with self.assertRaises(ValueError): boot_images.build(self.tmp / "out", self.tmp / "stock.img", dev, boot=True) + def test_the_recipe_is_boot_json_in_the_build_tree(self): + recipe = kernelimage.boot_recipe(ROOT / kernelimage.BOOT_RECIPE) + self.assertEqual( + (boot_images.DIRECT, boot_images.STOCK_ONLY, boot_images.MAX_CMDLINE), + (recipe.words, recipe.stock_only, recipe.limit), + ) + self.assertIn("devices/phoenix/boot.json", devloop.PROFILE.build_tree) + def test_direct_records_the_kernel_as_its_build(self): dev = self.dev_recovery("overpressure.part=recovery") with mock.patch.object(boot_images.kernelinfo, "analyse") as analyse: diff --git a/tests/test_prefetch.py b/tests/test_prefetch.py index 245cc2bf..a30cf08b 100644 --- a/tests/test_prefetch.py +++ b/tests/test_prefetch.py @@ -27,6 +27,12 @@ def test_the_pico_4s_prefetch(self): script, ) + def test_the_extra_files_are_the_tree_s_data(self): + # The headset's own updater prefetches from an update's tree, which carries no tooling: the fan program + # comes from userspace/prefetch.json, as this computer's prefetch takes it. + self.assertEqual(prefetch.EXTRA, (("downloads/pico4-fan-{commit}", "phoenix/pico4-power/pico4-fan"),)) + self.assertEqual(prefetch.prefetcher().extra, prefetch.EXTRA) + if __name__ == "__main__": unittest.main() diff --git a/tests/test_update_build.py b/tests/test_update_build.py new file mode 100644 index 00000000..32395209 --- /dev/null +++ b/tests/test_update_build.py @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: Unlicense +"""What the PICO 4's updates are made of (Headset.update_build): the install's tree and the boot's kernel files.""" + +import json +import unittest +from pathlib import Path + +from devices.phoenix.tooling import HEADSET +from devices.phoenix.tooling.development import devloop + +ROOT = Path(__file__).resolve().parents[1] + + +class UpdateBuildTests(unittest.TestCase): + """The update takes the files an install sends, and the two kernel files the boot image is made of.""" + + def test_the_tree_is_the_install_s(self) -> None: + build = HEADSET.update_build() + self.assertEqual([name for name, _ in build.sources], list(devloop.PROFILE.build_tree)) + for name, path in build.sources: + self.assertTrue(path.exists(), name) + if name.startswith("devices/phoenix/"): + self.assertEqual(path, ROOT / name.removeprefix("devices/phoenix/")) + + def test_the_kernel_files_are_the_pinned_release_s(self) -> None: + pin = json.loads((ROOT / "kernel.json").read_text(encoding="utf-8")) + build = HEADSET.update_build() + self.assertEqual( + build.kernel, + { + "Image.gz": pin["files"]["Image.gz"], + "sm8250-pico4-phoenix.dtb": pin["files"]["sm8250-pico4-phoenix.dtb"], + }, + ) + self.assertGreater(build.epoch, 0) + self.assertTrue(build.commit) + + def test_the_recovery_carries_the_public_key_updates_are_checked_with(self) -> None: + # Where overpressure-install's OP_UPDATE_KEY looks, in the overlay every recovery image takes; an Ed25519 + # public key (its DER prefix), LF only. + key = (ROOT / "initramfs/etc/overpressure/update.pub").read_bytes() + lines = key.decode("ascii").splitlines() + self.assertEqual( + (lines[0], lines[-1], len(lines)), ("-----BEGIN PUBLIC KEY-----", "-----END PUBLIC KEY-----", 3) + ) + self.assertTrue(lines[1].startswith("MCowBQYDK2VwAyEA"), "an Ed25519 public key") + self.assertNotIn(b"\r", key) + + def test_the_installed_system_carries_the_same_key(self) -> None: + # Its updater checks a download as the recovery does: the build's snapshot takes the key, the image has it. + build = (ROOT / "userspace/build.sh").read_text(encoding="utf-8") + snapshot = build[ + build.index("headset_snapshot() {") : build.index("\n}\n", build.index("headset_snapshot() {")) + ] + self.assertIn('"$source_dir/initramfs/etc/overpressure/update.pub"', snapshot) + self.assertIn( + 'overlay "$project/initramfs/etc/overpressure/update.pub" "$T/etc/overpressure/update.pub"', build + ) + self.assertIn("devices/phoenix/initramfs/etc/overpressure", devloop.BUILD_TREE) + + def test_the_build_host_s_packages_are_locked_for_an_offline_build(self) -> None: + # An update builds offline: the build host's python comes from the locked files (prefetch lock-host), in the + # layout build-on-headset.sh reads, one entry per line. + text = (ROOT / "userspace/build-host.json").read_text(encoding="utf-8") + lock = json.loads(text)["lock"] + self.assertTrue(any(name.startswith("python-3") for name in lock)) + for name, digest in lock.items(): + self.assertIn(f'\n "{name}": "{digest}"', text) + + def test_the_release_passes_its_key_to_overpressure_s_release(self) -> None: + release = (ROOT / ".github/workflows/release.yml").read_text(encoding="utf-8") + self.assertIn("update-key: ${{ secrets.UPDATE_KEY }}", release) + + +if __name__ == "__main__": + unittest.main() diff --git a/tooling/__init__.py b/tooling/__init__.py index 7325dd0d..e661cd81 100644 --- a/tooling/__init__.py +++ b/tooling/__init__.py @@ -13,11 +13,12 @@ from __future__ import annotations import ipaddress +import json import subprocess from pathlib import Path from typing import TYPE_CHECKING -from overpressure.api.v2 import backup, look, qualcomm, recovery, roles, ssh, usblink, wifi +from overpressure.api.v2 import backup, look, qualcomm, recovery, roles, ssh, update, usblink, wifi from overpressure.api.v2 import headset as headsets from overpressure.api.v2 import install as engine from overpressure.api.v2.headset import ( @@ -464,6 +465,24 @@ def questions(self, workflow: str, found: Found | None = None) -> Sequence[Ask]: } return asked.get(workflow, ()) + def update_build(self) -> update.Build: + """Return what this release's update is made of: the tree an install sends, its stamps, the boot's kernel. + + The kernel files are the two the installed system's boot image takes from kernel.json's release: Image.gz + and the device tree its build names. + """ + from .development import devloop # noqa: PLC0415 # devloop imports this package's modules: circular otherwise + + pin = json.loads((devloop.HERE / "kernel.json").read_text(encoding="utf-8")) + kernel = {name: pin["files"][name] for name in ("Image.gz", f"{pin['build']['dtb']}.dtb")} + profile = devloop.PROFILE + sources = tuple( + (name, recovery.tree_source(profile.headset_dir, devloop.HERE, name)) for name in profile.build_tree + ) + return update.Build( + sources=sources, epoch=devloop.source_date_epoch(), commit=devloop.source_commit(), kernel=kernel + ) + def workflows(self) -> Sequence[Workflow]: """Return the installer's workflows: install, upgrade, back to PICO OS, and the check.""" return ( diff --git a/tooling/development/boot_images.py b/tooling/development/boot_images.py index ba08819c..85374ecf 100644 --- a/tooling/development/boot_images.py +++ b/tooling/development/boot_images.py @@ -58,21 +58,15 @@ #: The device tree, as kernel.json names it for the kernel's build. KERNEL = json.loads((Path(__file__).resolve().parents[2] / "kernel.json").read_text(encoding="utf-8")) DTB = KERNEL["build"]["dtb"] + ".dtb" +#: The installed system's boot image's recipe (boot.json), which the headset itself reads for an update too +#: (kernelimage.installed_boot): its words, the stock words, the bootloader's limit. +RECIPE = kernelimage.boot_recipe(Path(__file__).resolve().parents[2] / kernelimage.BOOT_RECIPE) #: The ABL passes only the boot image header's first command line field (512 bytes with its #: terminator) and drops the extra one, so everything has to fit there. -MAX_CMDLINE = 511 +MAX_CMDLINE = RECIPE.limit #: The base image's words for Android and the downstream kernel; the recovery reads none of them, and #: the ABL appends what it does read (androidboot.mode, androidboot.serialno). -STOCK_ONLY = ( - "androidboot.", - "lpm_levels.", - "video=", - "msm_rtb.", - "service_locator.", - "swiotlb=", - "buildvariant=", - "console=", -) +STOCK_ONLY = RECIPE.stock_only #: Words for the new kernel: keep what the bootloader left on (clocks, power domains and #: regulators no driver claims yet, such as the display's), reboot shortly after a panic, no stock #: modules, which this kernel cannot load, the recovery waits up to 5 minutes for the USB controller, @@ -95,21 +89,8 @@ #: that this is the installed system, not a test run with deadlines. msm.dpu_use_planar_cac=0 leaves #: the display pipes to the planes: Valve's planar CAC (the hardware's chromatic aberration #: correction, which nothing on the PICO 4 uses) reserves six of the eight at boot, and the panels' -#: plane takes the other two, so a monitor on the USB-C port's DisplayPort would get none. -DIRECT = ( - "clk_ignore_unused", - "pd_ignore_unused", - "regulator_ignore_unused", - "panic=5", - "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", -) +#: plane takes the other two, so a monitor on the USB-C port's DisplayPort would get none. boot.json holds them. +DIRECT = RECIPE.words #: --direct in recovery: preinit's reboot after a failed start is a plain one, into boot. DIRECT_ONESHOT = ("overpressure.failover=reboot",) #: --debug also changes the recovery (an archive appended to its ramdisk, whose entries replace the @@ -247,10 +228,16 @@ def build( # noqa: PLR0913 # one keyword per command-line option BOOT (only with DIRECT): the boot partition's image, without the recovery_dtbo (the ABL applies the dtbo partition's overlay on a normal boot) and without AVB. """ - base = dev_recovery_image(dev_recovery) if boot and not direct: msg = "--boot needs --direct (the installed system's boot image)" raise ValueError(msg) + if boot and not (debug or trace or tuple(cmdline_words)): + # The installed system's: the same bytes the headset makes itself for an update. + recovery = dev_recovery.read_bytes() + dev_recovery_image(dev_recovery) + kernel_files = (kernel_out / "Image.gz").read_bytes(), (kernel_out / DTB).read_bytes() + return kernelimage.installed_boot(recovery, *kernel_files, RECIPE) + base = dev_recovery_image(dev_recovery) if direct and (overlay or gpu_firmware or wlan_firmware): msg = "--direct has no recovery for --overlay, --gpu-firmware or --wlan-firmware" raise ValueError(msg) diff --git a/tooling/development/devloop.py b/tooling/development/devloop.py index fff402c4..15f5c8c3 100644 --- a/tooling/development/devloop.py +++ b/tooling/development/devloop.py @@ -97,6 +97,7 @@ "devices/phoenix/prebuilt", "devices/phoenix/headset.json", "devices/phoenix/kernel.json", # the kernel's tag, which the image's version file names + "devices/phoenix/boot.json", # the boot image's recipe: an update's install makes the boot image with it ) diff --git a/tooling/prefetch.py b/tooling/prefetch.py index 0dd9703f..2c52f5ed 100644 --- a/tooling/prefetch.py +++ b/tooling/prefetch.py @@ -22,16 +22,15 @@ BUILD_HOST = HERE / "userspace" / "build-host.json" #: This computer's copy, laid out as the headset's build folder (BASE in build-on-headset.sh). CACHE = REPO / "cache" / "headset" / "phoenix" -#: The pinned commit's files the PICO 4's build takes besides the common ones: the fan program. -EXTRA = (("downloads/pico4-fan-{commit}", "phoenix/pico4-power/pico4-fan"),) +#: The pinned commit's files the PICO 4's build takes besides the common ones: the fan program. They are data in the +#: build tree (userspace/prefetch.json), so the headset's own updater takes the same. +EXTRA = prefetch.headset_extra(HERE) __all__ = ["HOST", "MANIFEST", "PACKAGE_CACHE", "local"] def prefetcher(flavour: str = "") -> prefetch.Prefetch: """Return the PICO 4's prefetch for @p flavour (overpressure's, with its pins, its cache and its extra file).""" - return prefetch.Prefetch( - codename="phoenix", flavour=flavour, cache=CACHE, pin=PIN, build_host=BUILD_HOST, extra=EXTRA - ) + return prefetch.for_headset(HERE, CACHE, flavour=flavour) def manifest(cache: Path = CACHE) -> list[str]: diff --git a/userspace/build-host.json b/userspace/build-host.json index a201894c..8d24e068 100644 --- a/userspace/build-host.json +++ b/userspace/build-host.json @@ -1,6 +1,43 @@ { "rootfs": "7e3fb88454e1ac633b7488abb72d3ca0cc7d2578a38146fdd7d58b50fcbd60bf", "server": "https://holo-packages.steamos.cloud/holo-core-aarch64-preview/mash-20251118/$repo/os/$arch", - "repositories": ["core", "extra"], - "packages": ["python"] + "repositories": [ + "core", + "extra" + ], + "packages": [ + "python" + ], + "lock": { + "bash-5.3.3-2-aarch64.pkg.tar.zst": "c5a787770d69706d27da3d716c479505d12fb4a51e351ab3e10a6370bd16c0cf", + "bzip2-1.0.8-6-aarch64.pkg.tar.zst": "d3811e3340bc406f40f4c59d9ea815e46091ba362226f8aa6ce0ee3eaa63ea6c", + "e2fsprogs-1.47.3-1.1-aarch64.pkg.tar.zst": "c4891f028f3dbe44fdcd1b0dfae00273133cf167e24a7a4b19d13861334c3611", + "expat-2.7.3-1-aarch64.pkg.tar.zst": "4e4564fc8bd28f9601c8dbdd96c1410cbeb2ccff555d51e62a684bb8059b5600", + "filesystem-2025.10.12-1-any.pkg.tar.zst": "6b6c3fee7432204840d3b6afc9bc1a68c28f591a47fb220071715c40cca956df", + "gcc-libs-15.2.1+r301+gf24307422d1d-1-aarch64.pkg.tar.zst": "98743a0e313c7d6c010cc0264d424c1a057f32901f13e5fc20e80f792716b511", + "gdbm-1.26-1-aarch64.pkg.tar.zst": "5954e0ed0cdf4e224b67e5dcf0b29923bf10aaa9469c7792347a04389742b029", + "glibc-2.42+r33+gde1fe81f4714-1-aarch64.pkg.tar.zst": "dd012b1d2c833b0ff5788956f3bf67ec648b103db26ceba8b8a1eabc9c9392dc", + "iana-etc-20251030-1-any.pkg.tar.zst": "a96affd4010a855f60684111422d1710a5dce8b5871561cea7f1469bf983af65", + "keyutils-1.6.3-3-aarch64.pkg.tar.zst": "b1e24c67ed87819860a9eafe9d4c5b2169eb815f0a9497feed065f80513746f1", + "krb5-1.21.3-2-aarch64.pkg.tar.zst": "6544ef73ff4c5b4ff6e2ffb954229d42738adba2daa8edded23f484320572ba4", + "libevent-2.1.12-4-aarch64.pkg.tar.zst": "79b3d7643883e9292438d5d77054d30f50a1b2a30e313d8c0991ee985ebacfe3", + "libffi-3.5.2-1-aarch64.pkg.tar.zst": "539e42f19a7ce53bfa5ab63c6e2112eba0650cf9d8ed03dfb020570aa9e8553d", + "libldap-2.6.10-2-aarch64.pkg.tar.zst": "a321a071d2682bfd8611e15cfc834b6164e8fccca8561140f94c53ccd0e8eb93", + "libnsl-2.0.1-1-aarch64.pkg.tar.zst": "b25e52fda0d05348e5f7655825bfe9476b47e37b4fbd92f6e0badec8fcf31888", + "libsasl-2.1.28-5.2-aarch64.pkg.tar.zst": "4261db0a05f370beec55bcb5e253ffac3dbfb81fa85e00746f775c8a46ceffbf", + "libtirpc-1.3.7-1-aarch64.pkg.tar.zst": "b1a0dde910f94ebb37d6df988257432f24cb691282609edd8bae00dbf7166d1c", + "libverto-0.3.2-5-aarch64.pkg.tar.zst": "b3a963cab86738da594746c74ebc2aa2ab32015af5af8cdd2b68195cb3368bd3", + "libxcrypt-4.5.2-1-aarch64.pkg.tar.zst": "0eb7e2fac74c3320306dbded65ce0d1dcfa6fa8c0e4400d7945f84834fc69633", + "linux-api-headers-6.17-1-aarch64.pkg.tar.zst": "6d575a84ea2dcf6b7c67c5752eb2e8291e0ea330dac440a3ca6190ffccaff150", + "lmdb-0.9.33-1-aarch64.pkg.tar.zst": "6a1f519424a34ef20e812023c3fd05d67cf56405b25e7acb1b0a21298793b440", + "mpdecimal-4.0.1-1-aarch64.pkg.tar.zst": "eff733ac090d3010d32720a43a8c5a51085bff934a80d6ebc58f6fbdfa6f1cb6", + "ncurses-6.5-4-aarch64.pkg.tar.zst": "13251e30eaf6cb4c86a246fe098a2c050f722603c0e186f7f2fa071e9f834cc6", + "openssl-3.6.0-1-aarch64.pkg.tar.zst": "37af902b03352be907340f6b481a1e6e34aed7180a20be363ba1e56ecd7c5078", + "python-3.13.7-1-aarch64.pkg.tar.zst": "ac07a5e5e95088b2de7e5eea2e107e9380557ac4ca1887534c58d12fb8bcc2f9", + "readline-8.3.001-1-aarch64.pkg.tar.zst": "634f4060d127f8c32c516adadfa9ce66295b7dc06bba15a32c70fa7e91afd8d5", + "sqlite-3.51.0-1-aarch64.pkg.tar.zst": "be1e6227a83113fab6a8260d207122d1b27d207e66bed066bf0f3bea6b11b0e3", + "tzdata-2025b-1-aarch64.pkg.tar.zst": "ce1dd30520445189a7f67f138c8845d3aa2fff6690bd4d41db5c81850851b786", + "util-linux-libs-2.41.2-1-aarch64.pkg.tar.zst": "a4eac719491fdcf326590f586072086ced03a14922e77f51d57e775f3e51553b", + "zlib-1:1.3.1-2-aarch64.pkg.tar.zst": "62ef7145334847a0da382eef9dfb0b8feed80cf6f46fc595087ae137512d4533" + } } diff --git a/userspace/build.sh b/userspace/build.sh index f4302c24..387f366d 100644 --- a/userspace/build.sh +++ b/userspace/build.sh @@ -21,7 +21,8 @@ HEADSET_ELF_OPTIONAL='|^pico4-slamd /usr/lib/pico4-stock-slam/' headset_snapshot() { mkdir -p "$1/initramfs/etc/overpressure" "$1/prebuilt/aarch64" cp -r "$source_dir/src" "$1/" - cp "$source_dir/initramfs/etc/overpressure/headset" "$1/initramfs/etc/overpressure/" + cp "$source_dir/initramfs/etc/overpressure/headset" "$source_dir/initramfs/etc/overpressure/update.pub" \ + "$1/initramfs/etc/overpressure/" cp "$source_dir/prebuilt/aarch64/pico4-reboot" "$source_dir/prebuilt/aarch64/pico4-splash" \ "$source_dir/prebuilt/aarch64/pico4-recovery-ui" "$1/prebuilt/aarch64/" } @@ -32,6 +33,8 @@ headset_files() { # The values overpressure's runtime sources, as the recovery has them. The rest of the PICO 4's files are the # project's packages (pico4-base, -power, -audio, -xr, -session, -checks). overlay "$project/initramfs/etc/overpressure/headset" "$T/etc/overpressure/headset" + # The key its releases are signed with, which its updater checks a download against, as the recovery does. + overlay "$project/initramfs/etc/overpressure/update.pub" "$T/etc/overpressure/update.pub" # pico4-recovery-ui: preinit's early hook asks it whether volume up is held, the way into the recovery. for f in pico4-reboot pico4-splash pico4-recovery-ui; do install -o 0 -g 0 -m 0755 "$project/prebuilt/aarch64/$f" "$T/usr/bin/$f" diff --git a/userspace/packages.json b/userspace/packages.json index b1b93696..0437b373 100644 --- a/userspace/packages.json +++ b/userspace/packages.json @@ -1,6 +1,6 @@ { "repository": "overpressure/packages", - "tag": "2026.12.1", - "commit": "44e43af7b0fc9570a78d7d4ae9a47dbb251a45c2", - "sha256sums": "14e563f50cf68d8de767b48eeeafbb56309eadaa987ea6dd03327dcbbf82284d" + "tag": "2026.12.2", + "commit": "cfdd7c18f5eff631e763ec3d7d0fd6eca6ce8b7b", + "sha256sums": "7767ca60ea05b430dc0be38c6af571d4fe799c37ed19da94fc0d1b0b65e49baa" } diff --git a/userspace/prefetch.json b/userspace/prefetch.json new file mode 100644 index 00000000..ea8b6d7c --- /dev/null +++ b/userspace/prefetch.json @@ -0,0 +1,8 @@ +{ + "extra": [ + { + "path": "downloads/pico4-fan-{commit}", + "from": "phoenix/pico4-power/pico4-fan" + } + ] +}