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>
consmirror (userland/consmirror, a program of Makronix's own built through
the port frame with MX_LOCALSRC) reads the text console from /dev/vcsu1 and
/dev/vcsa1, woken by POLLPRI on every change, and writes it to the USB
serial gadget ttyGS0 as ANSI; what is typed there goes back into the
console through a uinput keyboard. Under X the virtual terminal is not
written, so nothing is mirrored, as asked. Test 3/3 PASS under qemu.
It replaces the agetty on ttyGS0 (runit service consmirror instead of
agetty-ttyGS0), and the kernel no longer writes its messages there itself:
console=ttyGS0 is gone from the cmdline, they reach the serial line through
the mirror of tty0, green as on the display.
userland_stage leaves a program whose port is not done out of the image
instead of failing (another agent may be building it); userland-test.sh
knows MX_LOCALSRC ports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/tools/Makefile.host undefines LINKS (its programs are host tools), so
mk/mx.prog.mk reads them from the program's own Makefile beforehand
(make -V '${LINKS}'), maps them onto Void's layout like HOST_BINDIR and
makes hard links after install.host, as NetBSD's install does. /usr/bin/[
is test's inode now. userland_stage accepts a LINKS name as a hard link of
a done port's program. Clean rebuild 28/28, tests 28/28 under qemu
(build/logs/make-userland-links-2026-11-11.log); grep, id, pax, hexdump
... get theirs when they are ported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/lib.sh userland_stage stages build/userland/<dev>/destdir (without
METALOG) and our libstdc++.so.6.0.33 + libgcc_s.so.1 (stripped, from the
tooldir), and refuses a program whose port is not "state: done";
assemble-rootfs.sh lays it over the Void packages, before base/ and soc/.
make roottar / rootimg / update-root carry it from now on.
On the phone (/system/current since 2026-11-11): cat, sleep, kill, env, test,
wc, ln, head, tee ... are NetBSD's (gcc 14.4.0 of src/), libstdc++.so.6 is
ours, kill -INFO makes sleep answer, WLAN/battery/all 20 services up.
Bluetooth, A/B on the same phone (build/logs/ab-bt-{new,old}-2026-11-11.log):
NetBSD userland 4/5, the tree before 3/5 -- every failure is the kernel's
"QCA TLV response size mismatch" retry, with either userland; not A7. Since
the kernel moved to 7.0.14 it fails in about 3 boots of 10 (7.0.0: 1 of 15,
bt-flush-2026-11-10.log), and bt-address's re-probe then hangs in the kernel
(qca_serdev_remove -> flush_work, D state): a kernel matter, open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
update-root keeps two trees, A/B like the boot slots: the new tree goes to
/system/.staging, the old previous is removed, current becomes previous and
the new one current. No SYSTEM_VERSION any more, so updating the same
Makronix version twice does not collide.
Which Makronix a tree is goes into the tree: /etc/makronix-release
("Makronix 0.99.9 Camouflage (unstable)"), written by assemble-rootfs.sh
for update-root and for a fresh image, from src/sys/conf/makronix-release
and makronix-codename; the channel (unstable for x.99.y, else stable)
comes from tools/lib.sh makronix_version, which kernel_make uses too.
Measured: make update-root twice with 0.99.9 -> current and previous, both
"Makronix 0.99.9 Camouflage (unstable)"; after a reboot the new current
runs 7.0.14-makronix-unstable with WLAN, Bluetooth, battery and every
service up (build/logs/update-root-ab-2026-11-11.log, checks/layout.sh).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phone kernel no longer builds from the qualcomm-sm8150 fork: the base
is kernel.org stable v7.0.14 (refs/linux/7.0.14, shallow), and what hotdogb
needs from the fork is carried as kernel/patches 0001-0004 (sm8150/PMIC
DTSI nodes, the OnePlus DTS, the SMB5 charger, of/property), unchanged from
its 8e126dbc4; 0005-0025 are our series (the old 0005 is in v7.0.14 by a
stable backport).
The name comes from Makronix's versioning, the files the NetBSD side reads
(src/sys/conf/makronix-release, makronix-codename): kernel_make in
tools/lib.sh gives uname -r 7.0.14-makronix-unstable (x.99.y is -current)
and /proc/version makronix@camouflage, for the build and for every
modules_install. make update-root defaults to /system/<Makronix version>.
Measured: slot a boots 7.0.14-makronix-unstable with /system/0.99.9,
marked successful; WLAN, Bluetooth, battery and the display work
(build/logs/flash-0.99.9-2026-11-11.log). docs/NEXT.md 9c has what
7.3.4 showed (ftrace hangs it before the console; without ftrace a hard
freeze later).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The M tile (docs/logo/makronix-square-1080.png, rendered from the SVG)
is the kernel's boot logo: KERNEL_LOGO in device.conf, converted by
tools/build-kernel.sh to the PPM CONFIG_LOGO_LINUX_CLUT224_FILE names;
full width, centred, once (fbcon=logo-pos:center fbcon=logo-count:1).
- agetty on tty1 without --noclear: it clears the logo at the login.
- kernel/patches/0021: the logo stays after init (msm's framebuffer came
after late_initcall in some boots: no logo).
- kernel/patches/0022: the panel is switched on after msm's first frame,
not at the end of its on-sequence (half a second of noise before).
Measured with the camera on the screen: bootloader logo, dark, the M,
the login (build/cam/boot-0022b.mp4); Konrad: "perfekt".
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>
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>