Integrate boot and shutdown runtime into new images

This commit is contained in:
Sukecz
2026-10-23 20:28:26 +02:00
parent b7eb4289b7
commit 9c49f58b33
27 changed files with 1087 additions and 80 deletions
+21 -10
View File
@@ -5,8 +5,9 @@ has two separate states:
| State | Status |
|---|---|
| Integration 0.1.1 logo with a temporary LCD power/wake helper | 🟢 Physically verified, including automatic start and subsequent backlight shutdown |
| Integrated driver / DT in kernel 7.2.12-r1 | 🟠 Compiled and audited offline; physical boot and power cycles pending |
| Integration 0.1.1 temporary LCD power/wake helper | Historical fallback, superseded on the tested phone |
| Integration 0.2.0, integrated driver / DT in kernel 7.2.12-r1 | 🟢 RAM boot, normal boot, logo, brightness and ten off/on cycles physically verified |
| Complete LCD rail shutdown | 🟠 Driver votes released, but VSP/VSN remain fixed always-on |
The candidate is in `ports/candidate/linux-postmarketos-qcom-sdm660/0030-platina-tianma-panel.patch`.
It adds the panel-specific command sequence, correct regulator names, reset timing,
@@ -14,7 +15,15 @@ DT binding and initialization-error cleanup to the NT36672A driver. The stock
command sequence is recorded in `project/display/tianma-reference.json` and
compared by offline tests. This is not a verified BOE TD4320 configuration.
## Optional controller setup
## Built-in controller and screens
From source version 0.3.1, fresh `make images` builds include the controller,
headless boot hook, versioned boot logo and shutdown screen automatically.
Hardware verification of integration 0.3.0 does not qualify every new full image.
The following manual steps are for an existing installation that lacks those
files; they are not required after installing a newly integrated image.
## Manual controller setup for an existing installation
After testing a successful boot with the integrated driver, install the renderer
and controller on **your phone**. The files listed below are source files from
@@ -27,9 +36,9 @@ sudo install -m755 phone-display.py /usr/local/sbin/platina-display
```
For the logo, run `make splash` on the build host. Transfer its three runtime files
`release.json`, `version` and `frame.bgrx.gz` from `artifacts/platina-linux-0.1.1/`
into a new phone directory `/usr/local/share/platina/releases/0.1.1/`, then create
`/usr/local/share/platina/current` pointing to `releases/0.1.1`. If updating an
`release.json`, `version` and `frame.bgrx.gz` from `artifacts/platina-linux-0.2.0/`
into a new phone directory `/usr/local/share/platina/releases/0.2.0/`, then create
`/usr/local/share/platina/current` pointing to `releases/0.2.0`. If updating an
existing setup, back up its assets/hook first and use a new versioned directory.
The phone renderer uses Python's standard library, without Pillow or a desktop.
@@ -51,7 +60,9 @@ lock. An external SIGKILL cannot run Python cleanup.
`off` requests `FB_BLANK_POWERDOWN` through DRM after clearing the backlight.
A brightness value of zero alone is not proof that the LCD rails are powered off.
Regulator counts and actual repeated wake behavior must be checked on the device.
Tests on the maintainer's phone confirmed all three driver consumer votes return
to zero and vddio is released. VSP/VSN still use inherited fixed always-on
definitions, so full physical rail shutdown and power savings are not established.
Prepare another image on the build host:
@@ -71,9 +82,9 @@ new controller. On the old boot it selects the temporary session only when that
kernel-specific module was explicitly installed. Do not install the old helper
blindly, or auto-load it alongside the integrated driver.
Only install the hook after manual rendering and powerdown have worked. The
current clean-image builder keeps the backlight dark and does not automatically
install a generated splash bundle. SSH must remain independent of splash success.
For a manual existing-installation update, install the hook only after rendering
and powerdown have worked. The clean-image builder installs the full hook and
both screens; SSH remains independent of splash success.
## Hardware acceptance