- bt-address runs as a runit service (no longer from udev, where its wait
for wlan0 held up the WLAN modules); on failure it re-probes the
controller (unbind/bind of hci_uart_qca), three attempts.
- rmtfs (which starts the modem) waits for tqftpserv.
- tools/boot-loop.sh: N reboots with a check per boot, every wait
bounded; tools/checks/ holds the checks.
- docs/HANDOFF.md: how to work with the phone, what works, what is open
(WLAN missing in 2-3 boots of 15 -- the modem's WLAN QMI service never
appears -- first).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- base/initramfs/init builds the gadget with NCM and ACM at once: the root's
stage 1 no longer rebinds it, so the host keeps its link and address and
netconsole runs from 1.5 s.
- The root grows itself online to its partition
(base/void/rootfs/.../03-grow-root.sh), which the pmOS initramfs did;
tools/mkrootimg.sh copies base/<base>/rootfs/ before the SoC's files.
- tools/build-busybox.sh: SOURCE_DATE_EPOCH of the pinned source, so the
initramfs is reproducible; pinned in device.conf (4950e286679ca4fa).
- Makefile: INITRAMFS defaults to ours; bootimg checks the pins after the
inputs are built.
Measured on hotdogb: switch_root at 1.27 s (pmOS: about 3.5 s), a fresh
root grown from 281468 to 25493504 blocks, 10 of 10 warm reboots, no
WARNING, make flash end to end.
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>
The bootloader counts a slot's retries down on every boot until the slot
is marked successful, and at 0 stops on "image destroyed" without falling
back to the other slot (measured). qcom-ab-slot (soc/sm8150/rootfs, POSIX
sh) sets the successful bit of boot_<slot> in byte 6 of its GPT
attributes, in the primary and the backup table with both CRCs, checking
both before and after -- the edit qbootctl makes (docs/reference/
qbootctl.txt). The runit service slot-successful runs it once sshd runs;
tools/mkrootimg.sh copies soc/<soc>/rootfs and rootfs-<base> into the
image.
Measured on hotdogb: after a flash (retry 7, not successful) the first
boot marks the slot at 6.4 s; fastboot then reports
slot-successful:a:yes and the retry count no longer drops.
devices/hotdogb/AGENTS.md: a rarer hang remains, 2 of 10 boots with
kernel patch 0003.
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>
tools/mkrootimg.sh makes an ext4 image with the device's ROOT_UUID from the
base's rootfs tar, the kernel modules, fstab, a usb0 profile and the root
password (ROOT_PASSWORD, default makronix); tools/flash-root.sh writes it to
ROOT_PARTITION (userdata). mkbootimg.sh appends pmos_root_uuid=$ROOT_UUID;
the pmOS UUIDs left the cmdline. BASE defaults to void.
Measured: Void reaches "void login:" with runit, sshd and NetworkManager, with
the baseline kernel on slot a. The pinned kernel tree's build garbles the
display and does not reach the initramfs (devices/hotdogb/AGENTS.md).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PKG_ARCH selects packages.$PKG_ARCH.list on top of packages.list; platform
differences are pkgsrc options or device.conf variables, no second package
set and no second distfiles cache.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
One tree with the desktop: mobile/ is a subtree, userland and pkgsrc are
shared, platform differences live in soc/<soc>/soc.conf and
devices/<codename>/device.conf. tools/ is POSIX sh; tools/mkbootimg.sh
reproduces byte for byte the boot image that boots on the OnePlus 7T.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>