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>
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>
`make -j olddefconfig Image modules <dtb>` runs olddefconfig in parallel
with the compiles. When the config had changed, include/generated/* was
regenerated while sources were being compiled: the build died with an
empty LINUX_VERSION_CODE and an empty KERNEL_REL in unrelated drivers
fs/pstore/ram.c:809: error: expected expression before ','
drivers/usb/core/hcd.c:191: note: in expansion of macro 'KERNEL_REL'
(build/logs/update-root-2026-11-09.log). Two builds had passed before, so
it is a race, not a wrong config. Now olddefconfig runs first and alone;
the next build of the same tree exits 0
(build/logs/kernel-retry-2026-11-09.log).
- 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>
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>
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>