Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions device/panther/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ Findings from real hardware, newest first. [BRINGUP-M1.md](BRINGUP-M1.md) is the

The board file (`gs201-panther.dts`) was merged as [linux-omarchy-mobile#108](https://github.com/derekross/linux-omarchy-mobile/pull/108), and the FT3658 driver as [#109](https://github.com/derekross/linux-omarchy-mobile/pull/109); the test kernels below add one local commit each on top.

## 2026-11-02: AVB footers on boot and init_boot

A second Pixel 7 (issue #342), with stock CP3A.261005.002.A1 sideloaded as a full OTA on both slots, never started slot B. The screen stayed black, no USB gadget appeared, and after about 72 s it was back in stock recovery on slot A. This was the case with the published kernel too. It's the Pixel 7 Pro's issue #11 (device/cheetah/NOTES.md, 2026-10-28):

- **What stock chains** [V]: the factory image's `vbmeta.img` (`avbtool info_image`) chains `boot` (rollback index location 2) and `init_boot` (location 4), as cheetah's does. Its `boot.img` and `init_boot.img` footers carry rollback index 1791158400 and security patch 2026-10-05, padded to 64 and 8 MiB, which are `getvar partition-size:boot_b` and `init_boot_b`.
- **Why the first unit booted without footers** [I]: it ran LineageOS before the port. Its stock install wrote the bootloader and radio to slot B, but not `vbmeta_b`, so slot B kept a vbmeta that doesn't chain them. The guard keeps `vbmeta_b` read-only and outside `/dev/disk/by-partlabel`, so it wasn't read back.
- **The descriptor** now has `AVB_FOOTERS`, `AVB_ROLLBACK_INDEX` and `AVB_SECURITY_PATCH`, as cheetah's does. Rebuilt from the same kernel output, `vendor_boot`, `vendor_kernel_boot`, `dtbo` and `dtb.img` are byte for byte the same, and `boot` and `init_boot` match up to their padding and footer.
- **On the first unit** [V]: those images, flashed with `bin/omamobile flash`, booted as before (the same kernel, `systemctl is-system-running` running, one retry spent). So footers don't hurt a phone whose `vbmeta_b` doesn't chain them.
- **On the second unit** [V, issue #342]: its tree with this change on top, the same kernel as its failed attempts, `bin/omamobile images` (both footer lines printed) and `bin/omamobile flash`. 24 s after fastboot dropped off, the USB gadget (`1d6b:0104`) appeared and stayed, bound as `cdc_ncm` on the host. Before the footers, nothing reached USB in 72 s. Its `tools/phone-smoke` afterwards: slot b, the storage guard, the root, the USB gadget and the session ok, and no failed units.

## 2026-10-31: the battery

The MAX77759's fuel gauge reports the battery with stock's Coslight 1 kOhm model: 4326 mAh, the pack's temperature and a real percentage, in upower and the shell's bar. Every 1 % step used to fire the gauge's interrupt about 430 times; a driver change fixes it. Gates, values and results: [BATTERY-PLAN.md](BATTERY-PLAN.md). Kernel: [linux-omarchy-mobile#171](https://github.com/derekross/linux-omarchy-mobile/pull/171) and [#170](https://github.com/derekross/linux-omarchy-mobile/pull/170), in review.
Expand Down
17 changes: 17 additions & 0 deletions device/panther/device.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ VENDOR_PAGESIZE=0x800
# Stock CP3A.261005.002.A1, security patch 2026-10-05.
OS_VERSION=17.0.0
OS_PATCH_LEVEL=2026-10
# Stock's vbmeta chains boot (rollback index location 2) and init_boot
# (location 4), as on the Pixel 7 Pro: the factory image's vbmeta.img
# (avbtool info_image). libavb reads a chained partition with no footer as
# invalid metadata, which an unlocked bootloader doesn't let through, so on
# a phone whose vbmeta_b is stock's (a full OTA on both slots, or the
# factory vbmeta on slot B), footer-less slot B images never start: a
# black screen, no USB, and stock recovery on slot A after the retries
# (issue #342). A vbmeta_b that lists them as hash descriptors, or has
# verification disabled (a phone that ran another OS on slot B), never
# reads these footers. Sizes from fastboot getvar partition-size.
AVB_FOOTERS="boot:0x4000000 init_boot:0x800000"
# Stock CP3A.261005.002.A1's footers, matching OS_PATCH_LEVEL. A pull
# request never raises them: an index the bootloader stores above an older
# stock's would lock that stock's own boot and init_boot out of slot A
# (anti-rollback).
AVB_ROLLBACK_INDEX=1791158400
AVB_SECURITY_PATCH=2026-10-05

# --- Storage guard ---
# All five images exist on slot B (fastboot getvar all). UFS stays
Expand Down
17 changes: 17 additions & 0 deletions packages/omamobile-device-panther/device.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ VENDOR_PAGESIZE=0x800
# Stock CP3A.261005.002.A1, security patch 2026-10-05.
OS_VERSION=17.0.0
OS_PATCH_LEVEL=2026-10
# Stock's vbmeta chains boot (rollback index location 2) and init_boot
# (location 4), as on the Pixel 7 Pro: the factory image's vbmeta.img
# (avbtool info_image). libavb reads a chained partition with no footer as
# invalid metadata, which an unlocked bootloader doesn't let through, so on
# a phone whose vbmeta_b is stock's (a full OTA on both slots, or the
# factory vbmeta on slot B), footer-less slot B images never start: a
# black screen, no USB, and stock recovery on slot A after the retries
# (issue #342). A vbmeta_b that lists them as hash descriptors, or has
# verification disabled (a phone that ran another OS on slot B), never
# reads these footers. Sizes from fastboot getvar partition-size.
AVB_FOOTERS="boot:0x4000000 init_boot:0x800000"
# Stock CP3A.261005.002.A1's footers, matching OS_PATCH_LEVEL. A pull
# request never raises them: an index the bootloader stores above an older
# stock's would lock that stock's own boot and init_boot out of slot A
# (anti-rollback).
AVB_ROLLBACK_INDEX=1791158400
AVB_SECURITY_PATCH=2026-10-05

# --- Storage guard ---
# All five images exist on slot B (fastboot getvar all). UFS stays
Expand Down
2 changes: 1 addition & 1 deletion packages/omamobile-device-panther/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.5
0.1.6