kernel/patches/0019: the panel driver resets the panel and sends the
stock 7T sequence by default. Taking over ABL's panel state gave a white
panel in 25 of 90 boots, the full init in 0 of 40, counted with a camera
on the screen: tools/phone-screen.sh (brightness of the screen in a
camera frame) and tools/display-loop.sh (N reboots, screen, SMMU faults,
panel state, msm/DSI interrupt rates per boot).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- elogind: a short press on the power key no longer powers the phone off
(base/void/rootfs, logind.conf.d).
- runit stage 3: ath10k is unloaded before rmtfs stops the modem; with it
loaded the system hung after "stopped remote processor modem" and the
watchdog left it in crash-dump mode (05c6:900e).
- kernel/patches/0018: qcom_scm clears the bootloader's download-mode bit.
Measured: reboot-mode bootloader with WLAN connected reaches fastboot in
12 s; make flash end to end on 7.0.0-sm8150-g6b20b1b06323, WLAN
reconnects by itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kernel/patches/0017: msm clears the blend stages ABL leaves in ctl_0
(sspp_0 on LM_0, sspp_1 on LM_1, both reading the boot framebuffer) when
it takes over. The SMMU faults on the boot framebuffer went away in two
boots of four. The white display is not explained by them nor by the
panel's compression state: devices/hotdogb/AGENTS.md has the table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- kernel/patches 0014-0016: ath10k keeps the WCN powered from probe
(qcom,keep-powered); the modem with its firmware from the phone's
partition, WLAN, rmtfs outside the TZ region; charger and the bq27411
fuel gauge.
- firmware-partitions maps the modem partition too;
/usr/lib/firmware/qcom/sm8150/partitions links there for tqftpserv.
- wlan-board and ath10k-board: the phone's own WLAN board data from
persist, as board-2.bin under /run, before ath10k loads.
- qcom_pd_mapper in stage 1, so the modem's WLAN domain starts.
- base/void: rmtfs, tqftpserv (services), linux-firmware-network.
Measured: wlan0 up, a scan finds 12 networks, Bluetooth alongside, the
charger charges, the gauge reads 4.433 V / 100 %. Open: the display
white in some boots, and one sysrq reboot that ended switched off
(devices/hotdogb/AGENTS.md).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- kernel/patches/0013: WCN3998 on uart13 in the DTS.
- firmware-partitions (soc/sm8150/rootfs, stage 1 before udev): mounts the
partitions /etc/makronix/firmware-partitions names, of the active slot,
read-only under /run and puts them first in firmware_class.path; the
vendor's signed firmware stays on the phone and out of our images.
- bt-address (udev rule): a stable, locally administered address from the
serial number for a controller that has none.
- base/void: bluez, bluetoothd.
Measured: firmware loaded from bluetooth_a, setup complete at 3.3 s, the
same address after a reboot, a scan finds 14 devices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- kernel/patches 0007-0012: the DTS of the baseline moves into the tree
(0007, with the PON modes), the ABL framebuffer is reserved memory (0008),
msm's fbdev marks its memory virtual (0009), the MDSS no longer resets
the Ethernet MAC (0010; the real dispcc reset leaves the panel white,
measured), u_serial closes a hung-up port once (0011, the gs_close WARN),
USB dual role with the pm8150b Type-C port (0012).
- KERNEL_DTB in device.conf: tools/build-kernel.sh builds the DTB in the
tree, mkbootimg takes it from there; the binary DTB and its pin are gone.
- kernel.config: BTF (pahole 1.32 on the host).
- rtc-offset: the wall clock across reboots on the read-only PMIC RTC;
tools/phone-time.sh sets it from the host.
Measured: kernel 7.0.0-sm8150-g3c5fa409ca54, 10 of 10 warm reboots, no
WARNING in dmesg, display good, Type-C data role device on the laptop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kernel (7.0.0-sm8150-g1299aab93171):
- msm DRM built in again: up at 0.6-0.8 s instead of 4.2 s, safe since
0003 and 0004.
- 0005: CLK_OPS_PARENT_ENABLE on the pixel RCGs (as sdm845): "rcg didn't
update its configuration" is gone.
- 0006: dsi_err_worker reported every error as status=4, a FIFO error
that was none (lane FIFOs empty) and hid the ACK error (bit 0); it now
reads status=40 ack_err=..., the panel's report on the first read after
the takeover.
- ftrace (dynamic, function_graph), Landlock.
Without a button: the DTB gets the PON's mode-bootloader/mode-recovery
(fdtput on the pinned binary until the DTS moves in; new pin), Void gets
reboot-mode(1) and a runit stage-3 hook that restarts with the mode
(base/reboot2.c, built static by mkrootimg.sh). flash.sh and
flash-root.sh reboot a running phone into fastboot themselves and wait for
ABL without ever cutting a command off or resetting the device -- two
usbresets after the userdata flash crashed it into 05c6:900e. Writing the
fallback slot no longer makes it active.
Access: dnsmasq (DHCP only) on usb0, so the host keeps 172.16.42.2 after
the initramfs; an ACM function next to NCM with the kernel console and a
login on ttyGS0; phone_addr falls back to IPv6 link-local;
tools/reboot-loop.sh for boot races. zram swap (half the RAM, zstd).
Measured: 20 of 20 warm reboots reachable; the self-flash
(build/logs/selfflash3-2026-11-08.log).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
About one boot in three crawled after msm loaded: every CPU around 50%
in hardirq, UFS timeouts, no ssh. The DSI PHY's probe suspends the MDSS,
which switches the display clocks off in hardware while the bootloader's
autorefresh still fetches from memory.
kernel/patches/0004 keeps a runtime reference on the MDSS from its probe
until the DPU has stopped the boot scanout (0003). Measured: 0 crawls in
20 warm reboots with it, against 5 in about 12 without; the same with the
userspace experiment that forbids the MDSS runtime PM (0 in 15).
Debugging aids for the next hang, all off unless their flag file exists:
irqwatch now also logs the per-CPU hardirq share (/proc/stat), which sees
chained interrupts /proc/interrupts cannot; 01-initcall-debug.sh switches
on initcall_debug before udev; 01-mdss-rpm-on.sh is the experiment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kernel/patches/0003: dpu_kms_hw_init switches off the INTF tear check's
autorefresh (and the timing engine) the bootloader left on, before msm
attaches its IOMMU domain, as mdp4/mdp5 already do. Measured: 0 SMMU
faults and login: on the panel in 4 of 4 loads, faults in 7 of 7 before.
docs/BOOT.md: the bootloader does not fall back to slot b when slot a's
retry count runs out; set_active resets it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kernel/PIN and kernel/patches replace the external kernel tree: make linux
fetches the pinned commit and applies the patches (source tree identical to
the one that runs on the phone). base/debian and base/void build a glibc
aarch64 root file system without root (mmdebstrap / unshare + xbps).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>