consmirror.c: the BSD notice is replaced (Makronix's own file). Files with changes of other sessions pending are left for their commit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
6.6 KiB
Handoff -- state of Makronix Mobile on hotdogb, 2026-11-09
For whoever continues (human or another model). Read GOAL.md,
AGENTS.md, ../AGENTS.md, devices/hotdogb/AGENTS.md (all measurements,
with log names), docs/BOOT.md first. Rule of the tree: no claim without
a measurement; change a running phone only with a way back.
How to work with the phone
- Build and flash:
make flash(kernel, our initramfs, boot image to slot a; the phone restarts into fastboot by itself:reboot-mode bootloader). Root image:make rootimgthenmake flash-root. - Kernel:
build/linux-hotdogbis build output; commit there, thengit format-patch --start-number Nintokernel/patches/(now 0001-0019). After a kernel commit the release name changes: copy the modules to the phone (modules_installinto a temp dir, tar over ssh into/usr/lib/modules) beforemake flash, or rebuild the root image. - Reach the phone:
. tools/lib.sh; a=$(phone_addr); phone_ssh "$a" CMD(root/makronix; USB 172.16.42.1, IPv6 fallback; WLAN 192.168.1.127). Serial console:/dev/ttyACM0. Kernel log of every boot:build/logs/netconsole-2026-11-07.log(listenertools/netconsole-listen.sh; misses the first seconds of a boot). - Test series:
tools/boot-loop.sh N LOG tools/checks/<check>.sh(N reboots, one check per boot);tools/display-loop.sh N LOG(with the USB camera /dev/video4 on the screen;tools/phone-screen.sh). - Never:
usbreseton the phone, interrupting fastboot, writing slot b without Konrad's OK (FORCE_FALLBACK=1). A dark phone that shows up as USB 05c6:900e is in crash-dump mode: Power 15 s. Fastboot by hand: Power + Vol Up + Vol Down. - Backups of the modem EFS (
modemst1/2,fsg,fsc) andpersist:~/src/nura/hotdogb-backup(SHA256SUMS.efs). rmtfs runs read-only.
What works (measured)
Kernel 7.0.0-sm8150-gb81725c5c168 (patches 0001-0019), Void/runit root, our initramfs (switch_root 1.3 s). Display (full panel init, 0 white in 40 boots), USB network + serial console, WLAN (ath10k, own board data from persist, fixed MAC ce:c4:60:1e:a8:cd), Bluetooth (fixed address 02:a4:00:f3:32:74), modem (firmware from the phone's partition, rmtfs read-only), charger (450 mA from USB) and fuel gauge (bq27411), clock via rtc-offset, clean reboot/power-off, flashing without buttons.
Open, in order of importance
- WLAN missing in about 2-3 boots of 15. The modem comes up (~4 s),
but its WLAN QMI service never appears (in good boots at ~6 s); 40 s
later the modem crashes ("fatal error without message"), recovers, and
WLAN comes at ~50 s. Ruled out: tqftpserv start order (rmtfs now waits
for it,
soc/sm8150/rootfs-void/etc/sv/rmtfs/conf-- keep it, it is right, but it did not fix this), qcom_pd_mapper not loaded (it is, from stage 1). Not yet checked: whether the PD mapper's auxiliary driver is bound toqcom_common.pd-mapper.0in failing boots (the check intools/checks/wlan-diag.shlooks at a wrong sysfs path -- fix it:ls -l /sys/bus/auxiliary/devices/qcom_common.pd-mapper.0/driver); whether the modem asked tqftpserv for wlanmdsp.mbn (tqftpserv's log via vlogger/syslog); QRTR name service lookups (qrtr-lookupfrom qrtr-tools). Ideas: compare a good and a bad boot withath10k_core debug_mask=0x00200000(modprobe.d) plus dynamic debug of qcom_pd_mapper / qcom_sysmon; as a stopgap, a service that restarts the modem (sv restart rmtfs) when no wlan0 appears within 20 s. - Bluetooth: second setup sometimes fails (UART errors while the
modem starts). Now
bt-addressruns as a runit service (soc/sm8150/rootfs-void/etc/sv/bt-address), waits for wlan0, sets the address, and on failure re-probes the controller (unbind/bind of hci_uart_qca), 3 attempts. Last series: 14 of 15 on attempt 1, one boot where the script had not finished at 45 s -- because it waits up to 30 s for wlan0, which is missing in exactly the boots of point 1. Fixing point 1 likely fixes this too. Cleaner alternative: give the controller its address before the first setup (DTlocal-bd-address), then the second setup never happens. - Slot b still holds the state of 2026-11-08 morning (
b9c0aff, pmOS initramfs, no WLAN/BT/charger). Update it with the current state once points 1-2 are settled -- only with Konrad's OK. - SMMU faults on the boot framebuffer (about every second boot,
SIDs 0x800/0xc20, iova 0x9c...): harmless for the picture.
kernel/patches/0017clears ABL's blend stages; the remaining faults are probably the tail of ABL's last frame. Could be silenced by waiting for the frame to finish before msm attaches its IOMMU domain. - Shutdown hang with the modem stopped under a loaded ath10k is avoided (stage 3 hook unloads ath10k first), not fixed in the kernel.
- Small: OTG host mode untested (needs an adapter); DSI
Invalid responseis gone with the full panel init; the root image (make rootimg) has not been rebuilt since the last changes -- all ofbase/void/,soc/sm8150/rootfs*is already copied onto the running phone, but a freshmake rootimg && make flash-rootshould be done and checked once (it also wipes /var/lib/makronix/rtc-offset and the WLAN profile: runtools/phone-time.sh, andnmcli device wifi connect deadbeef_5G password ...again). - Persistent data across updates (Konrad, 2026-11-09: "it sucks that
with an update we have to configure everything"). Today the root
file system is userdata, so
make flash-rootwipes WLAN networks, Bluetooth pairings, ssh host keys, /home, rtc-offset. Android's model: system/vendor (A/B, read-only, replaced on update) versus /data (settings, /data/misc/wifi, /data/misc/bluedroid, apps, user files; never touched by an update). For us: userdata holds the system as a replaceable, versioned image (/system/<version>/, later read-only) and a persistent/data/;base/initramfs/initmounts the system as / and bind-mounts the persistent paths from /data over it -- /home, /root, /etc/NetworkManager/system-connections, /var/lib/bluetooth, /etc/ssh/ssh_host_*, /var/lib/makronix (rtc-offset), /var/lib/NetworkManager -- created from the system's defaults on first boot. This is also step 1 of the A/B update design (versioned roots, the boot slot names its root version,makronix-updateon the phone). - Next phases of GOAL.md: pkgsrc for aarch64 Linux and the
makronixset on the phone, then CDE, then touch (the touchscreen is not enabled yet), audio (ADSP), sensors.