Repository navigation
Description
Board
Google Pixel 7 Pro, cheetah (Tensor G2 / gs201, Mali-G710 CSF, BCM4389 Wi-Fi/BT, Samsung s6e3hc4 panel). Bootloader unlocked,
Android 17 CP3A.261005.002.A1, iOS 16.7 (20H392) root in userdata, booted with fastboot boot only.
What already runs (observed on hardware, 2026-11-29)
iOS boots to the lock and home screen; GPU-composited UI (Mesa on the G710 CSF, about 35 fps in swipes with the standard root, stutter
visible); touch, power/volume keys, battery level; Wi-Fi (boot join, Settings join/switch, status-bar RSSI); Bluetooth (pairing,
AirPods connect, no audio); Safari loads pages; one continuous boot screen. Not done: audio, brightness, camera, cellular, sensors,
sleep/wake, blur, video. Reference branches: #2 (kernel) and PixOS-Project/pixelios-userland#1, kept as drafts while this is split.
Known limitations from a different-family review: device/google/cheetah/docs/PORT-STATUS.md on that branch.
Split plan (proposal, order to agree here)
Sizes are added code lines on the reference branch, before rework. Each PR stays under 1500 code lines / 40 files, or is split further.
A. Shared code first, each PR alone, each with a bluejay-unchanged proof
(sha256 of every bluejay shim object, the bluejay shim image and the bluejay kernel, built from main and from the PR, listed in the
PR; plus the PR's gate output.)
- Type and style pass over
shim/(int->int32_tetc., STYLE-C fixes), no behaviour change. Expected: identical bluejay
objects, or only the differences the pass explains. Possibly two PRs (shim.c alone). - Board hooks in
shim/: theSOC_GS201/ board-config seams the gs201 code needs (loader hooks, console without framebuffer,
board-derived USB base, PMU reads skipped on gs201). Compiled out on gs101; proof as above. - Shared tool changes (
tools/mkadt.py,tools/mkpayload.py,tools/boards.py, generators): new board inputs only, default
output for bluejay unchanged (byte-identical ADT and payload for a bluejay build, hashes in the PR).
B. The cheetah tree, one subsystem per PR (soc/google/gs201/, device/google/cheetah/, new patches numbered from the next
free number; you renumber on landing)
- Bring-up: gs201
soc.json, cheetahboard.json, shim bring-up, XNU bring-up patches (current 0369/0370 and the small fixes). - Storage: gs201 UFS cold init + PHY tables, XNU UFS patches.
- Display: DECON window re-enable, panel scaling/tearing sync, boot screen.
- Input/power: touch (TCM), keys over ACPM, MAX77759 battery, DVFS requests.
- Wi-Fi: gs201 PCIe sequence and the Wi-Fi patches. The edits to the frozen patches 0174/0206/0347 (14-chunk CLM, BSSID/RSNE
handling, doorbell) become new patches on top; the harness updates follow them. - Bluetooth: UART18 transport, patchram (firmware stays outside git, pinned by sha256).
- GPU: Mali-G710 CSF core and user client (0425/0426 plus later fixes), the shim firmware loader.
- Docs: cheetah topic docs, reviews.
C. Things I need your decision on
- Audits. The reference branch changed
tools/test-bluejay-boot.py(it strips the gs201 Wi-Fi call site before its check, and
int32_t re-anchoring). Plan: revert all of that; every gs201 check lives intools/audit_gs201.py, whichtest-bluejay-boot.py
does not import. OK, or do you want the gs201 module wired into the gate some other way? - Phone tools.
tools/fflash-userdata.sh --boardandtools/cheetah-cyclereach a non-bluejay phone. Plan:fflash-userdata.sh
returns to bluejay-only; a cheetah flash/boot wrapper lives underdevice/google/cheetah/tools/and refuses any product but
cheetah. OK? - Hardware capture.
device/google/cheetah/hardware/kernel-devicetree.dts(19k lines, the bootloader-passed DT, serials/IMEI/MAC
redacted) is the cited source for most constants. One data-only PR, or keep it out of git and cite it differently? - Gate.
tools/check-all.shon my host fails only in 15 unit files; 13 of them fail the same way onmainhere (no super repo,
notools/wake,unshare -rdenied, no staged standard root). Is a PR with those listed acceptable as "ready", or do you want a
specific environment?
Userland (PixOS-Project/pixelios-userland#1, in the order you suggested): (1) the build-ios-root-rootless.sh repair-pass fix;
(2) the cheetah root build + tweaks gated on PIXOS_BOARD, with bluejay job/tweak counts before and after; (3) tools/mesa-csf/;
(4) the EAGL shim; (5) diagnostics as source only, the prebuilt binaries removed and built in the image step.
Unless you prefer another order, I would start with A1 (style pass) as soon as you agree.
AI assistance: plan and code by Claude (Anthropic, Claude Code); the human tester runs the phone and approves every flash.
Activity
flo071 commentedon Dec 1, 2026
Update on A1 (type and style pass over
shim/), before I open anything: it cannot meet the "same sha256" proof, so I'd like your call on it.What I did: took the style/type edits of the reference branch for the 43 shared
shim/files that exist onmain, kept only blocks thatare token-identical after mapping
int32_t->int,uint32_t->unsignedetc. (no gs201 mention, nothing the bluejay audit pins astext;
tools/test-bluejay-boot.pyuntouched), and built bluejay frommain(b5baf08) and from that tree.usbgadget.o937504710ac563df...on both).Files with
SHIM_ASSERTdiffer only through__LINE__in the assert message when lines move.unsigned->uint32_t,int->int32_t): the preprocessed sources differ in nothing else, and onaarch64 the types are the same, but GCC allocates registers differently (e.g.
usbgadget.o937504710ac5...->445241131d56...,3 objects affected). Functionally equivalent, but not provable by hash.
So my proposal:
shim/files tomain's spelling, so the referencebranch's diff in shared files shrinks to the real gs201 hooks.
SOC_GS201/ board-config seams in sharedshim/files. Proof in the PR: sha256 of everybluejay object,
shim.elfand the boot images frommainand from the PR, plus a second pair built with__LINE__neutralised inSHIM_ASSERT(identical expected); plus the gate output.docs/STYLE-C.mdin new files only; shared files keep their current style unless you want the pass laterwith a hardware result instead of a hash.
OK with that, or do you prefer the type pass as its own PR proven another way (e.g. a bluejay boot log from your side)?
TheSmuks commentedon Dec 1, 2026
Thanks for the plan and for checking A1 before opening it. Answers:
A1 (type and style pass): agreed, drop it. A change that alters bluejay codegen without a behaviour gain isn't worth a Pixel 6a boot. Revert the shared
shim/files tomain's spelling on your side. New gs201 code followsdocs/STYLE-C.mdin new files only.Start with A2 (board hooks) with the proof you describe: sha256 of every bluejay object,
shim.elfand the boot images frommainand from the PR, the second pair with__LINE__neutralised inSHIM_ASSERT, and the gate output.Order: A2, A3, then B4-B11 as proposed.
C. Decisions
tools/audit_gs201.py.tools/test-bluejay-boot.pystays exactly as onmainand doesn't import it.tools/fflash-userdata.shstays bluejay-only. The cheetah flash/boot wrapper goes underdevice/google/cheetah/tools/and refuses any product butcheetah.mainin your environment. The two that don't fail onmainneed to be fixed or explained before the PR is ready.flo071 commentedon Dec 4, 2026
A2 is up as a draft: #4 (board hooks, opt-in per SoC through
"shim_hooks": trueinsoc.json; no SoC onmainsets it).shim.elf,ImageandImage.lz4are identical betweenmainand the PR, in the normal pair and in the pair with__LINE__neutralised.ramdisk.binand the boot images differ between any two builds ofmaintoo (the placeholder ramdisk's cpio carries an inode and mtime). Re-packed with one fixed ramdisk, the boot images are identical. Hashes and the script are in the PR.main. Two of them,test_adversary_matrix.pyandtest_check_all_stub.py, pass standalone on both and fail only inside the gate, on timing under load. That is the explanation you asked for.If that meets your "ready" rule I'll take it out of draft; a
GATE PASSfrom your machine would of course be the cleaner proof. A3 (the shared tool changes:mkadt.py,mkpayload.py, generators, bluejay ADT/payload byte-identical) comes next; the gs201 tree with itssoc_hooks.cfollows in B4.🤖 Generated with Claude Code
flo071 commentedon Dec 4, 2026
A plan update after working through the reference branch file by file. Nothing changes in what lands, only the order and a few cuts.
1. More A steps (small shared PRs) before B4.
pr_rules.pyfails a PR that adds a new board tree and also edits shared files, so every shared change the cheetah tree needs has to land first, as its own small PR with the bluejay-unchanged proof:shim/build.sh: the gs101-only flag gates (--usb-gadget,--boot-xnu,--wlan-*,--gpu-*) become capability gates (gs101 orshim_hooks); payload placement andwlan_seq.hfrom the SoC's own dataPANEL_QUIET,BOOT_LOGO+tools/mklogo.pypstore_init_fixed(fixed ramoops window from board.json)SCTLR_EL1reset at_start, gated onshim_hooksso bluejay'sstart.ostays identical; only if B4 turns out to need itWDT_ARMED(leave the watchdogs armed for unattended runs)Two dev-only options (
HOLD_BEFORE_XNU_SEC,WLAN_LINK_SLOWLOG) are dropped. The Wi-Fi header fixes (CLM in 14 chunks, BSSID/RSNE) change bluejay's Wi-Fi path, so they go with B8 and need a bluejay Wi-Fi run on your side.2. Sub-splits. Most B steps are over 1500 lines and are split: B4 into a/b/c (tree + shim hooks, XNU core patches, XNU rest), B5 a/b, B7 a-d (touch, keys, battery, DVFS), B8 a-e, B10 into three or four (0425 alone is about 2260 lines). B8b's generated
wlan_seq.jsonis about 1530 lines by itself; may that generated file get an exception, or how do you want generated tables handled?3. Not upstream for now. The shim probe sections the standard image does not use (about 4500 lines), the cheetah-only XNU diagnostic patches (L2CAP witness,
kern.sweetulogand similar), the panel log console (B6b, except the one boot-arg patch the standard image needs) and the backlight work (B6c, until brightness actually works) stay on my side.4. Order: A2 (#4) -> A3 (shared tool inputs, draft #5 stacked on #4) -> A4 -> A5 -> B4a/b/c -> B5 -> A6 -> B6a -> B7 -> B8 -> B9 -> B10 -> B11.
OK with this?
🤖 Generated with Claude Code