Commit Graph
103 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 0d629ae70a Merge kropa/main: MCDE and splinter are submodules; the Makronix-tree work is in the mcde fork
ext/src/mcde is the gitlink of hiddenbox/mcde at 222417e6, which carries the 27
commits of plain-file MCDE work (dtphoto, dtbar, dtsystemsettings, dtwm, icons)
merged into the fork by hand.  splinter: the pin with its pkgsrc recipe.
.gitmodules is the union.  tools/pkgchroot.sh and README.md take kropa's
(newer) version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:36:20 +00:00
lotherkandClaude Sonnet 5.5 ca01d56c9d build: the userland builds in a chroot on Makronix; release gains the userland step; set list, mxupgrade, installimage and pins follow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:01:30 +00:00
lotherk 0700376bae sets: the junction and splinter directories are in the etc set
The files were listed, the directories were not: checkflist reported
./etc/junction and ./etc/splinter as extra (measured 2026-11-22 on the
MacBook; the /opt/src gate).
2026-11-22 18:02:16 +01:00
lotherk 7b0369f49b etc: /opt/src points at the projects' sources
The source set carries the projects Makronix ships under usr/src/ext/src/<name>
(ext/AGENTS.md); an installed system also gets /opt/src there, where the other
trees live.  /opt is a directory in NetBSD.dist.base, the link is a
CONFIGSYMLINKS pair (as /etc/rmt is), and the base set list carries both.

The link is dangling until the source set is installed, by design: without
the sources there is nothing to point at.
2026-11-22 17:50:43 +01:00
lotherk 62d9bb9c71 etc: junction, splinter and the four daemons as native services
Six rc.d scripts, all off by default (junction=YES etc. in /etc/rc.conf):
junction (the policy router, 127.0.0.1:8090), splinter (its MCP registry,
8098), wikid (8796), skilld (8790), tasksd (8781) and memoryd (8795).
The programs run in the foreground, so command_args ends in "&"; stop finds
them by their command, they write no pid file.

/etc/junction/junction.conf is a loopback listener with no endpoints and no
rules: a request is answered 503 naming why until one is added (the commented
block is the smallest working setup).  /etc/splinter/splinter.conf has one
provider, the local junction, so the routing decision stays in
/etc/junction/junction.conf and not in splinter.

wikid and memoryd take their embeddings from the local junction and keep
their data in /var/db/<name>; each start_precmd makes the directory.  skilld
and tasksd use their own stores, /var/db/skilld and /var/db/tasksd.

The scripts are installed by src/etc/rc.d/Makefile, the configurations by the
subdir loop in src/etc/Makefile, the directories by NetBSD.dist.base, and the
set list (src/distrib/sets/lists/etc/mi) carries all eight files.

Measured: sh -n on all six rc=0; /sbin/rcorder rc.d/* rc=0, junction at 113
before splinter (117), no stderr.
2026-11-22 11:40:50 +01:00
lotherk 633787ec1f mxupgrade: write the sysupgrade configuration when it is missing
sysupgrade(8) stopped the first real upgrade with "Configuration file
/usr/pkg/etc/sysupgrade.conf does not exist" before it began (measured
2026-11-21 on the MacBook).  The release to install is on mxupgrade's command
line, but sysupgrade reads KERNEL, SETS and POSTINSTALL_AUTOFIX from that file,
so mxupgrade writes the defaults where the sysupgrade that runs looks for them
(/etc/sysupgrade.conf and /usr/pkg/etc/sysupgrade.conf), once, if absent.
Checked on the MacBook with a stub sysupgrade: the file is created and the run
reaches the end.
2026-11-21 20:52:47 +01:00
lotherk a4ea8fb56b release: a Makronix host builds the set in its own sysroot -- the first green release
build/obj/releasedir/amd64 with the sets is there, built on makronix-build by
/root/build-now.sh: fetch exit=0, userland exit=0, release exit=0
(build/logs/native-2026-11-20.log, 2026-11-21 01:32).

tools/userland.sh: on NetBSD the packages of the set are built in the sysroot,
natively (MODE=chroot, tools/pkgchroot.sh); on Linux pkgsrc cross-builds for
the same sysroot as before (MODE=cross).  Both fill destdir/usr/pkg and both
end in the same makronix set; the recipes know nothing of either.  In the
chroot the four forks built with no case for the host at all, where the cross
path had stopped on x11-links, the cross libtool, freetype and the host X
tools one after the other.

tools/makronix-set.sh, three things that only a release shows:

- ./usr/pkg itself is a METALOG record.  The prefix belongs to no package and
  the ancestor loop stops before it, so nbmtree stopped the distribution step
  with "./usr/pkg: missing directory in specification".
- What the set does not name, the sysroot does not keep.  A chroot build
  installs its build tools (perl, autoconf, ...) to build the set; the prune
  deregisters them and 526 of their files stayed (perl's cpan, perldoc, man
  pages), plus pkgdb.refcount.  checkflist counted every one as an extra file.
- ensure_pkgdb (pkg_admin -K db rebuild) runs for chroot too: a pkg_add that
  died leaves the by-file index claiming files nobody owns, and the next
  install of that package stops with "conflicting PLIST with libnbcompat".

tools/pkgchroot.sh: the sysroot's /dev and /mnt are tmpfs (the sets describe
those directories), pkgsrc, distfiles, work and packages are null mounts, and
WRKOBJDIR/PACKAGES/DISTDIR travel as make arguments -- the base bmake does not
read MAKECONF, and a mk.conf in the sysroot's /etc would be an extra file.
After the build the runtime state the packages leave behind is removed
(/var/cache, /var/dt, /var/spool/calendar, /tmp/dtinfogen-*, pkgdb.refcount);
none of it is in a base set.
2026-11-21 01:49:15 +01:00
lotherk bb51357db4 installimage: the source-set check names the image targets, not every parse
bsd.subdir parses distrib/amd64/installimage for obj and release as well, so an
unconditional .error stopped build.sh release on a tree whose source sets did not
exist yet -- before anything was built (measured 2026-11-19 on makronix-build and
on the MacBook).  make(obj) and make(release) now parse; make(install_image) and
make(install_image-bios) still refuse with the same sentence, which is where the
image is actually built.
2026-11-19 15:36:40 +01:00
lotherk b2a65a76df kernel: GENERIC again, plus every USB driver GENERIC leaves out
The release kernel panicked on real hardware at boot (IRQ 6, a lock error).
It carried ALL's options (PCI_INTR_FIXUP, PCIBIOS_INTR_GUESS,
PCIBIOS_IRQS_HINT, COMPAT_*, ...) and ALL's drivers that GENERIC lacks,
experimental ACPI ones among them.  Konrad, 2026-11-18: 'revert mal die
ganze ALL kacke. einfach GENERIC aber mit allem was usb angeht'.

- makronix_workstation.config: back to 866df91be6 (multi-head consoles,
  four screens, the splash), plus the include below.
- makronix_devices.config: only the USB drivers of dev/usb that
  usbdevices.config leaves out: uatp (+wsmouse), umb, uhmodem (+ucom),
  gscan (with options CAN).
- GENERIC: the console colours white on black directly, instead of an
  override that made config(1) warn.

nbconfig GENERIC, INSTALL, GENERIC_KASLR: exit 0, no warnings; the four USB
drivers are in the kernel Makefile.
2026-11-18 16:03:37 +00:00
lotherk e832386332 libSM: client IDs from uuid_create(3); dtsession refuses a NULL ID
The login went back to the greeter: dtsession dumped core
(~/dtsession.core, SIGSEGV in strlen <- strdup <- SmsRegisterClientReply
<- SmXSMP.c:562, return address 0x1fb5c in the PIE).  NetBSD builds libSM
without UUID support, so SmsGenerateClientID derives the ID from the host
name's address and returns NULL when the name does not resolve (sm_genid.c,
getaddrinfo) -- an offline machine whose name is not in /etc/hosts, the
installed test VM, the workstation without network.

- src/external/mit/xorg/lib/libSM/Makefile: -DHAVE_UUID_CREATE, libc's DCE
  uuid_create/uuid_to_string (the branch sm_genid.c has for FreeBSD).
- dtsession SmXSMP.c: a NULL ID refuses that client instead of killing the
  session manager.
2026-11-18 06:18:50 +00:00
lotherk 11882fc2eb splinter in the makronix set; distinfo of the archive
make userland (build/logs/userland-2026-11-17k.log, exit 0) installed
splinter-0.1 with NetBSD's curses (NEEDED libcurses.so.9, libterminfo.so.2)
and wrote its 21 entries into the set list.  Forks stay out of distfiles.lst
by design (tools/makronix-distfiles.sh: their archive is checked against the
recipe's distinfo).
2026-11-17 23:38:38 +00:00
lotherk 6df798eb32 kernel: the console light on black (Sun look), without WSEMUL_SUN
Konrad, 2026-11-17: 'nur die farben wie bei sun'.  WS_DEFAULT_FG/BG and
WS_KERNEL_FG/BG set white on black for the text console and the kernel
messages.  The emulation stays VT100: WSEMUL_SUN, which ALL has, makes sun
the default emulation and garbles the installer's menus (build/logs/
uefi-stick-2026-11-17c.png).  config(1) exit 0.
2026-11-17 22:30:38 +00:00
lotherk 50bfd07cf2 kernel: no WSEMUL_SUN -- it makes sun the default console emulation
ALL has options WSEMUL_SUN, and GENERIC warns next to it: 'NB: default is
"sun" if enabled'.  With it the installer's menus came out as 'q' lines and
literal escape sequences (build/logs/uefi-stick-2026-11-17c.png) although
the kernel booted.  VT100 stays the only emulation, as in GENERIC.
config(1) exit 0 on the result.
2026-11-17 22:28:31 +00:00
lotherk e2020f49a7 kernel: no ISA card at all (Konrad: 'ok scheiss auf isa')
Probing the legacy bus maps a fixed memory window below 1 MB before the
probe knows a card is there, and bus_space_map panics when that hole is
already taken: the first boot stopped in extent_alloc_region at
nca_isa_match (build/logs/uefi-stick-2026-11-17b.png).  What GENERIC itself
probes on ISA (com, lpt, pckbd) stays; the extra ISA cards, their children
and the sound-card attachments they carried are gone.  132 device lines and
16 pseudo devices remain (PCI, USB, ACPI, i2c, the pseudo devices).

config(1) exit 0 on the result.
2026-11-17 21:20:11 +00:00
lotherk ca470094a7 kernel: drop le* at depca? too (its ISA parent is gone)
config(1): 'le* at depca?' is orphaned (nothing matching 'depca?' found) --
the depca driver maps iomem 0xc8000 and left the file with the iomem cards.
config exit 0 on the result.
2026-11-17 21:10:38 +00:00
lotherk e8ebc4716f kernel: ISA cards with a fixed iomem window stay out
The first boot of the new kernel stopped in extent_alloc_region during the
ISA probe (nca_isa_match, iomem 0xd8000): an ISA card's memory window is
mapped before the probe knows the card is there, and the legacy hole below
1 MB is already taken on a modern machine, so bus_space_map panics.  The
port-only ISA cards stay (SoundBlaster, GUS, WSS, serial, parallel, the old
SCSI cards at a port); the 12 with iomem 0xc8000-0xd8000 do not.

Measured: build/logs/uefi-stick-2026-11-17b.png (panic trace), config(1)
exit 0 on the result.
2026-11-17 21:10:18 +00:00
lotherk d4acc9c52d sysinst: rpcbind on for a desktop install (CDE ToolTalk needs it)
ttsession registers its message-passing RPC with the portmapper
(ext/src/mcde/lib/tt/slib/mp_rpc_server.C, pmap_set/rpcb_set), and
dtsession exits with "Could not connect to ToolTalk message server ...
Exiting" (SmCommun.c) when it cannot reach it: a graphical login went
straight back to the greeter (Konrad, 2026-11-17).  Enabled with the
desktop profile, not in Minimal, which has no desktop.  Measured on the
build host: with a ttsession of another session, dtsession reports
TT_ERR_AUTHORIZATION and exits; the same code path on the target has no
ttsession at all when rpcbind is not running.

An installed system can try it at once: service rpcbind start, then log in
at dtlogin.
2026-11-17 20:02:28 +00:00
lotherk 569fa9d894 kernel: the release kernel carries what ALL can do, without ALL's debug
Konrad, 2026-11-17: "alles was in ALL drin is ... ohne debug funktionieren,
quasi release kernel" and "mit den alten isa karten, alles".

conf/makronix_devices.config (new, included by makronix_workstation.config):
every device and pseudo device ALL declares and GENERIC (with the config
files it includes) leaves out -- 233 drivers and 16 pseudo devices, the ISA
cards included: ipfilter, wg, dm, mpls, sctp/can, the SoundBlaster/WSS ISA
cards, the old network cards, the sensors.  Checked with config(1) on
GENERIC: exit 0.

makronix_workstation.config: ALL's functional options that GENERIC lacks --
ALTQ and its disciplines, IPF, LFS, MPLS, SCTP, DCCP, CAN, GATEWAY,
MROUTING/PIM, ACPI_ACTIVATE_DEV, the PCI fixups, DKWEDGE methods, COMPAT_*,
X86EMU, MULTIBOOT, SEMM tunables -- and not what would make a release kernel
a test kernel: DIAGNOSTIC, DEBUG, LOCKDEBUG, KUBSAN, MBUFTRACE, UVMHIST,
BIOHIST, SYSCALL_STATS/TIMES, KGDB, DDB_ONPANIC, the *VERBOSE* options, and
not what changes the console or the memory a machine may use (CONSDEVNAME,
CONS_OVERRIDE, REALBASEMEM/REALEXTMEM/PHYSMEM_MAX_*) or a policy
(keyboard layout, colours, IPFILTER_DEFAULT_BLOCK, NET_MPSAFE,
PIPE_SOCKETPAIR, KEYLOCK).

The drivers of GENERIC were already complete against ALL (checked: ALL's 818
device lines are all in GENERIC or the config files it includes, usbdevices
.config among them; urtwn(4) is in the GENERIC kernel, nm shows
urtwn_attach), so this is about what only ALL had.

Version 0.99.11, and the banner names the commit it was built from:
0.99.11-<hash> (newvers.sh, newvers_stand.sh; a source set without git has
no suffix).
2026-11-17 19:31:54 +00:00
lotherk d4020e7c5c makronix set: the files MCDE installs now (themes of t0297/t0300/t0301, libDtChat)
Written by tools/makronix-set.sh from the sysroot of
build/logs/userland-2026-11-17j.log (exit 0): 520 entries added, none
removed; no test program, no dtchat-whatsapp.
2026-11-17 17:13:08 +00:00
lotherk dbde5ed789 set list: follow the new runtime dependencies (opus, libtls)
makronix-set.sh resolved the closure from the sysroot: opus and libtls are
runtime dependencies of a package in the set now (the dtchat/TDLib work),
so their files move from makronix-obsolete to the set (108 entries added,
13 obsolete removed).  make release and make iso pass checkflist with this
list; the DVD carries the squirrel and the Makronix URL in its boot banner
(build/vmsession/console.log).
2026-11-17 09:20:21 +00:00
lotherk 4277e7b345 branding: no NetBSD on what the user reads - booter revision, kernel banner, motd, stick boot.cfg (t0440)
Konrad 2026-11-17.  The booters print 'from Makronix 0.99.10 Camouflage' (newvers_stand.sh
read the NetBSD number), the kernel version line drops 'based on NetBSD x', the motd files
say Makronix with the project URL, the stick's boot.cfg names Makronix's URL.  uname -s stays
NetBSD (decision 2026-11-08); the copyright notices stay in the licence documents.
2026-11-17 09:17:28 +00:00
lotherk 81f00400ce build: no Xen kernels
Konrad, 2026-11-16: no interest in Xen, and XEN3 must not carry the
Makronix workstation configuration.

- etc.amd64/etc.i386: XEN3_DOM0, XEN3_DOMU, XEN3PAE_DOM0/DOMU leave
  KERNEL_SETS; INSTALL_XEN3_DOMU and INSTALL_XEN3PAE_DOMU leave
  BUILD_KERNELS.  The config files stay in the tree as upstream.
- distrib/amd64 and i386 instkernel: no INSTALL_XEN3* images.
- distrib/notes: the release notes no longer list Xen kernels.

The XEN3 link failure (PHDR/NVMM changes by another session) no longer
blocks a release; XEN3_DOM0 itself was not touched by the workstation
config (its amdgpu and nvmm lines are upstream, commented).
2026-11-17 08:54:40 +00:00
lotherk 5260ea78c6 museum: IRIS backend for the installed Indy (IRIX 6.5.21)
museum run irix65 now uses <home>/iris/run-iris.sh when present (or
MUSEUM_IRIS), so the installed IRIX 6.5.21 CHD starts with IRIS instead
of qemu-sgi/MAME.  MUSEUM_QEMU_IRIX still takes precedence; MAME and
qemu-system-mips64 remain fallbacks.  The default home is /usr/museum
when it exists and /home/lotherk/Museum does not, so a system-wide set works.

The machine is labelled IRIX 6.5.21 / SGI Indy (IP24): 6.5.29 has no
IP24 support.  checkflist exit 0.
2026-11-17 07:41:48 +00:00
lotherk 866df91be6 console: the Sun look, black on light white - the magenta was hard on the eyes
amd64 and i386 GENERIC now use the defaults of sparc/conf/GENERIC:51-54 and
macppc/conf/GENERIC:141-144:

    WS_DEFAULT_FG=WSCOL_BLACK       WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
    WS_KERNEL_FG=WSCOL_GREEN        WS_KERNEL_BG=WSCOL_LIGHT_WHITE

sysinst loses the IRIX Indigo startup path (white on magenta, 2c30d21fd2):
do_coloring_startup() is gone, main.c calls do_coloring() again, and on a
fixed-colour console the first screen is the classic black on white with a
white-on-blue selection.  The CDE palette path (can_change_color) is
unchanged.

Measured: sysinst builds (-Werror); nbconfig for both GENERIC produces the
four defines above in opt_wsmsgattrs.h.
2026-11-17 06:50:35 +00:00
lotherk 35931bfbd5 console: switch the kernel splash off before anyone needs the console
SPLASHSCREEN on genfb keeps text drawing disabled after a successful splash
(GENFB_DISABLE_TEXT, genfbvar.h:53, genfb.c:454-456); only userland switches
it back on, through WSDISPLAYIO_SSPLASH with 0 (genfb.c:522-530).  Nothing did,
so every console stayed blank: measured 2026-11-17 on the install image, the
screen is magenta with a green cursor and sysinst never appears (booting with
-s, which disables the splash, shows the kernel messages and a shell).

Two places switch it off before the gettys/sysinst paint:
- src/etc/rc.d/ttys (ttyflags_start), for installed systems;
- src/distrib/amd64/installimage/install.sh, for the installer itself
  (the install image's rc is its own script, rc.d/ttys does not run there).
Both ignore the error: on serial and VGA-text consoles there is no splash and
the ioctl returns ENODEV.

Verified: boot -s on the image shows the full dmesg on magenta; the blank
screen is exactly the splash keeping drawing off.
2026-11-17 06:41:41 +00:00
lotherk 08823a14c2 museum: the owner's media as a private media pack
tools/museum-pack.sh hard-links the IRIX 6.5.29 installation CDs, the
Mac OS 9.2 and Tiger images, the SunOS 4.1.4 CD and the PROMs into
build/museum-pack (SHA256 MANIFEST, then a tar); museum media --pack DIR
imports a pack in place.

The BSD-3-Clause ARCS firmware henry_arcs.scc.bin is taken from
build/firmware and packed.  The Sun SS-5 PROM and MAME's indy_4610 ROM
set are proprietary and are only packed when the owner supplies them.
Nothing of the pack is committed or part of the release.

checkflist exit 0 after installing the updated program.
2026-11-16 17:25:59 +00:00
lotherk bd481d6e15 museum: README says which arguments were measured
SunOS was not booted (no ss5.bin here); only the Mac commands are
measured.  No code change.
2026-11-16 17:07:01 +00:00
lotherk c0b09e31ef sets: the html man page of makronix-guide-vm
The makronix guide's man7 page was listed but its html7 page was not;
checkflist then failed with one extra file:

  ./usr/share/man/html7/makronix-guide-vm.html

The html entries of the same guide are all man-reference-htmlman.  Not
the museum's file: found while running the build gate for c7fdb6957a.
2026-11-16 17:05:10 +00:00
lotherk c7fdb6957a museum: four vintage machines in QEMU (Makronix Museum group)
IRIX 6.5.29, SunOS 4.1.4, Mac OS 9.2 and Mac OS X 10.4 Tiger as QEMU
machines: /usr/bin/museum (base system, CNCL) links the owner's media,
creates the qcow2 disks, prints the exact command and checks what is
missing; the emulator comes from pkgsrc, offered by the installer as the
new group "Makronix Museum" (kind museum, like games).

Measured 2026-11-16 with QEMU 11.1.2: the Mac OS 9.2.2 CD reaches the
Finder and the Tiger 10.4.6 DVD the language chooser through
`museum install'.  OpenBIOS cannot boot the SunOS 4.1.4 CD (the SS-5 PROM
ss5.bin is required); stock QEMU has no SGI Indy (qemu-sgi-ip22 or MAME
indy_4610).  The operating system media are proprietary and stay with
their owner.

checkflist after installing the program: only the pre-existing missing
makronix-guide-vm.7 remains (another session's file).
2026-11-16 17:02:04 +00:00
lotherk 6e01144f02 sysinst/amd64: install and boot the KASLR kernel by default
The profiles preselected SET_KERNEL_1 (GENERIC), the debug kernel with
KDTRACE_HOOKS.  Makronix installs SET_KERNEL_2 (kern-GENERIC_KASLR) instead:
GENERIC_KASLR is GENERIC plus options KASLR and makeoptions KASLR=1, and
sysinst's amd64_md_boot_cfg_finalize() rewrites boot.cfg from ';boot' to
';pkboot' for exactly this set, so the prekern randomises the kernel base.
GENERIC stays in the release and in the set menu as the debug/DTrace kernel;
sysinst allows one kernel set only (set_kernel_set(), util.c:807).

Measured: sysinst builds (-Werror, nbmake-amd64 in arch/amd64); the
preprocessed util.c (the real compile flags) has
  sets_full[] = { SET_KERNEL_2, ... }
  sets_min[]  = { SET_KERNEL_2, ... }
for desktop/full and minimal.  Boot verification needs an install from fresh
media (blocked: checkflist wants makronix-guide-vm.7 from the parallel
session's new guide chapter).
2026-11-16 16:56:31 +00:00
lotherk cd6bcdc827 docs: add a chapter on installing in a virtual machine
QEMU/KVM: KVM/CPU host, 2-4 GiB, 32 GiB disk, BIOS and UEFI (OVMF with a
writable variable store), AHCI for UEFI because OVMF's IDE is slow, the
serial console (com0) and the device names the installer shows (ld0,
sd0, wd0).  Proxmox VE: q35/OVMF or i440fx/SeaBIOS, VirtIO SCSI, the
qm create example, boot order, serial socket and the noVNC focus note.

The installation chapter points to it.  Rebuilt 28 manual pages and the
73-page PDF with page numbers and the chapter outline; www/guide.html
updated.  The print stylesheet wraps long commands instead of clipping
them.
2026-11-16 16:50:50 +00:00
lotherk 2884dbfd97 sysinst: palette.h depends on the generator in Makefile.inc
The release failed in distrib/amd64/ramdisks/ramdisk: sysinst's util.c named
CDE_MENU_* and CDE_ACTIVE_*, the ramdisk objdir still had a palette.h from
2026-11-08 with CDE_SEL_* - the rule depended on the palette and the codename
file but not on the Makefile.inc that generates the macros, so the rename
never reached the ramdisk's copy.  Same class as the menu_defs.c dependency
on menu_sys.def.

Measured: build/logs/release-2026-11-16-workstation.log, 'util.o Error
code 1', CDE_MENU_R/CDE_ACTIVE_R undeclared at util.c:2392-2395; the stale
build/obj/distrib/amd64/ramdisks/ramdisk/sysinst/palette.h was 129 bytes of
CDE_SEL_*.
2026-11-16 16:41:11 +00:00
lotherk 90530709f5 XEN3_DOM0: drop the IRIX console colours too
The previous commit said the file was byte-equal to refs/netbsd/src; it was
not - the IRIX console defaults from 46b08b567e were still in it.  Xen keeps
nothing of the workstation look: no WS_DEFAULT_*, no WS_KERNEL_BG, no NVMM.
Measured: diff -q against refs/netbsd/src/sys/arch/amd64/conf/XEN3_DOM0 and
XEN3_DOMU reports no difference.
2026-11-16 16:36:27 +00:00
lotherk 95879d1d91 XEN3_DOM0: back to stock NetBSD, no Makronix trace at all
Xen is not a workstation: it keeps neither the NVMM entry (its pmap has no
EFT hooks, the link fails with undefined pmap_ept_transform,
pmap_ept_has_ad and rcr3) nor a comment about it.  The file is byte-equal to
refs/netbsd/src again; NVMM lives in GENERIC and in the nvmm module.
2026-11-16 16:36:07 +00:00
lotherk 1c7165abc8 set list: signify is in the makronix set
security/signify (kind bin) is installed in the sysroot and registered in
its pkgdb, so the generated list carries /usr/pkg/bin/signify and its man
page.  The rest of the list is unchanged: after the failed userland the
MCDE package was restored from build/packages/All/mcde-0.1.0.tgz (the
previous archive), so the list and the sysroot match again
(tools/makronix-set.sh, build/logs/makronix-set-2026-11-16-recover.log).
2026-11-16 16:33:43 +00:00
lotherk ce42274851 XEN3_DOM0: no NVMM, the Xen pmap has no EPT hooks
Built the release and the XEN3_DOM0 kernel failed to link: nvmm_x86_vmx.o
needs pmap_ept_transform, pmap_ept_has_ad and rcr3, which the Xen dom0 pmap
does not provide.  NVMM stays in GENERIC and in the nvmm module; the dom0
entry goes back to commented, with the measurement in the comment.

Measured: build/logs/release-iso-2026-11-16-mascot4.log, kern-XEN3_DOM0
(undefined reference to pmap_ept_transform/pmap_ept_has_ad/rcr3).  nbconfig
for XEN3_DOM0 is clean again, ioconf.c has no nvmm.
2026-11-16 16:25:07 +00:00
lotherk 377e2d023a workstation: one shared kernel config, amdgpu built in, all firmware
Konrad's rule: hardware is recognised and works by itself, and every
firmware image ships.  NetBSD autoloads network interfaces, device nodes,
exec formats and file systems (net/if.c:1689, specfs/spec_vnops.c:895,
kern_exec.c:674, vfs_syscalls.c:502), but not PCI or USB attachments, so
such drivers are built in.

sys/conf/makronix_workstation.config, included by amd64 and i386 GENERIC:
WSDISPLAY_MULTICONS, WSDISPLAY_DEFAULTSCREENS=4, SPLASHSCREEN with
docs/logo/makronix-square-239.png (the tile that is also the dtlogin logo).
COMPAT_BSDPTY and Veriexec already come from compat_netbsd.config and
dev/veriexec.config; config(1) rejects a second options line, so they are
not repeated.

amdgpu/amdgpufb built in on amd64 and i386 (NetBSD ships them as a module
only); i386 also gets video* at videobus? so uvideo gives a video(4) there.

src/mk.conf forces MKFIRMWARE, MKAMDGPUFIRMWARE, MKNOUVEAUFIRMWARE and
MKRADEONFIRMWARE to yes on every architecture; without it i386 would get no
AMD GPU firmware (bsd.own.mk:1506 is x86_64 only).  build.sh picks the file
up itself (log: 'mk.conf MAKECONF: .../src/mk.conf').

Measured: nbconfig for both GENERIC; make kernel KERNEL=GENERIC exit=0
(build/logs/kernel-GENERIC-2026-11-16-workstation.log); nm netbsd has
amdgpu_attach and nvmm_attach; splash_image.o is 26656 bytes, so the PNG is
embedded; opt_wsdisplay_compat.h has WSDISPLAY_MULTICONS and
WSDISPLAY_DEFAULTSCREENS 4.  i386 is config-validated only: the tree has no
i486 toolchain yet (t0313).
2026-11-16 15:43:13 +00:00
lotherk d059e53852 boot: the Makronix M and the squirrel in the booter, no NetBSD labels
Konrad, 2026-11-16: the bootloader's NetBSD mountain goes; the Makronix
mark and the mascot come in.

- lib/libsa/bootcfg.c prints the M tile of docs/logo/makronix.txt (the
  ASCII the logo tool draws) with the booter name, revision and
  https://makronix.hiddenbox.org when a boot.cfg has no banner.
  BOOTCFG_MAXBANNER is 24: the mascot alone is eleven lines.
- installdvd, installcd and bootcd carry the squirrel of
  ~/src/mikronix/sys/stand/banner.sh above their welcome text, and their
  "Makronix is based on NetBSD (www.NetBSD.org)" line becomes
  "Makronix (https://makronix.hiddenbox.org/)".
- User-facing NetBSD in the booters is Makronix: the "from NetBSD" in the
  dosboot, multiboot2 and efiboot banners, the filesystem labels in
  biosdisk.c (Makronix RAID/FFS/LFS/Swap/ccd/cgd) and the MBR banner
  ("Makronix MBR boot").  The FIRMWARE path esp:/EFI/NetBSD/boot.cfg and
  the FAT OEM names stay: they are protocol, not a label.

The stand code compiled with -Werror in make release.  The medium itself
could not be built: the release stopped at checkflist because the failed
make userland left the MCDE package out of the sysroot (2576 missing
/usr/pkg files, tasksd t0217, MCDE scope).  The banner is measured on the
next medium once that is fixed.
2026-11-16 15:37:38 +00:00
lotherk bf9c7fe8bd amd64: build NVMM into GENERIC and XEN3_DOM0
The hypervisor a workstation needs: qemu with -accel nvmm talks to
/dev/nvmm through libnvmm, and nvmmctl lists the VMs.  NetBSD leaves the
pseudo-device commented in GENERIC and ships nvmm as a module; built in,
it needs no modload at boot and is available to every user in group nvmm
(etc/group:32, etc/MAKEDEV.tmpl:2264).  NVMM is amd64-only: files.nvmm
guards its x86 files with 'ifdef amd64', so i386 cannot have it.

Measured: make kernel KERNEL=GENERIC exit=0
(build/logs/kernel-GENERIC-2026-11-16-nvmm.log); nm netbsd has
nvmm_attach.  XEN3_DOM0 is a config only so far (not in the default
release kernel list).
2026-11-16 15:17:37 +00:00
lotherk 2c30d21fd2 sysinst: the IRIX Indigo Magic colours on a fixed-colour console
The first screen follows the console theme now: where curses cannot
redefine a colour (wscons, VGA text), util.c's set_coloring() takes the
IRIX Indigo Magic console - light text (snow) on ANSI magenta, the
closest the eight fixed colours get to Indigo #4B0082 - with a black
selection on light white, a black box and the window colour behind the
menus.  The colour menu still offers the classic schemes: do_coloring()
passes startup=false, only main.c's first call does not.

i386/conf/GENERIC gets the same four wscons defaults as amd64 (commit
46b08b567e): WS_DEFAULT_FG=LIGHT_WHITE, WS_DEFAULT_BG=MAGENTA,
WS_KERNEL_FG=GREEN, WS_KERNEL_BG=MAGENTA.

Measured: sysinst built with nbmake-amd64 (build/obj/usr.sbin/sysinst/
arch/amd64), -Werror, linked; nm util.o has do_coloring_startup.  i386
GENERIC through nbconfig generates opt_wsmsgattrs.h with the four
defines.  The i386 kernel itself was not compiled yet: build.sh has no
i386 toolchain in this tree and the build lock was held by the MCDE
build.
2026-11-16 15:03:42 +00:00
lotherk 46b08b567e amd64 wscons: the IRIX Indigo Magic console defaults
The IRIX console (IWsh/winterm app-defaults) is snow on Indigo (#4B0082,
x_eoe/usr/lib/X11/rgb.txt).  wscons can only name the ANSI colours, so the
defaults become WSCOL_LIGHT_WHITE on WSCOL_MAGENTA (ANSI 5, #AA00AA on VGA
text); the exact Indigo needs WSDISPLAYIO_PUTCMAP, which VGA text mode does
not offer.  Kernel messages stay green, on magenta.

GENERIC and XEN3_DOM0, so INSTALL (include GENERIC) and the release kernel
carry it.  Measured: make kernel KERNEL=GENERIC exit=0; opt_wsmsgattrs.h has
WS_DEFAULT_FG=WSCOL_LIGHT_WHITE, WS_DEFAULT_BG=WSCOL_MAGENTA,
WS_KERNEL_FG=WSCOL_GREEN, WS_KERNEL_BG=WSCOL_MAGENTA.
2026-11-16 14:46:11 +00:00
lotherk fe91a83f88 sysinst: the palette comes from the release codename
- PALETTE_DP is ext/src/mcde/programs/palettes/<makronix-codename>.dp, so a
  release is coloured by the CDE palette it is named after; a codename
  without a palette stops the build (PALETTE_DP=... still overrides).  The
  local copy src/usr.sbin/sysinst/palette.dp is removed.
- The slots follow the CDE color sets (docs/reference/cde-colorsets.txt):
  5 window, 6 menu/dialog, 1 active line; the text colour is black or white,
  whichever contrasts.  menu_sys.def draws a menu with pair 4 (slot 6) when
  the program defined it, pair 1 otherwise; the box stays pair 3.
- menu_defs.c now depends on usr.bin/menuc/menu_sys.def.  It had been stale
  since 2026-11-15 21:27: the runtime change was never regenerated (the
  pair-4 code was missing in build/obj/.../menu_defs.c).
- The palette is validated (eight lines #RRRRGGGGBBBB) and regenerated when
  the codename file changes.
- Measured: Camouflage gives slot 5 557/557/467, slot 6 498/424/424 and
  slot 1 675/745/706; sysinst compiles (nbmake in arch/amd64).
2026-11-16 14:14:25 +00:00
lotherk a3df74a5b3 docs: screenshots in the desktop chapters, page numbers and outline in the PDF
The MCDE chapter gets the desktop, System Settings, file manager and
terminal figures; the Information Manager chapter gets its book list.
The system HTML embeds the PNGs as data URIs, the website form points to
www/img/, the manual pages keep the caption and the dtinfo book keeps
the caption (the CDE DTD could carry TIFFs, but the library stays text).

The PDF gets a page-number overlay (gs + qpdf) and a chapter outline
(mutool); mutool clean normalises the file so qpdf and readers see the
outline.  docs/guide/check.sh checks outline and page numbers when the
tools are installed; tools/test-tools.sh copies www/img for the site
check and stays at 33 ok.
2026-11-16 10:22:20 +00:00
lotherk a5ee20710d signify: a root key signs the release key, the release key signs a release
Konrad, 2026-11-16: the master key model.  The root key stays offline with
Konrad and signs release keys only; the release key (0.99) signs the SHA512
of a release.  Rotation is a new release key plus one signature by the root
key, not a new root.

- src/etc/signify/makronix-root.pub and makronix-0.99.pub.sig are installed
  next to the release key (etc set, etc-sys-etc); the private root and
  release keys are outside the tree (SIGNIFY_ROOT_SECKEY, SIGNIFY_SECKEY).
- tools/sign-release.sh: sign, verify (checks root -> release key -> file)
  and sign-key (root signs a new release public key).
- GOAL.md names the chain.

Measured: sign-key with the root key produces the same Ed25519 signature;
verify prints "signed by the root key" and "good signature" for a signed
test file.
2026-11-16 09:58:57 +00:00
lotherk 0ff53291c5 etc: the etc set list carries /etc/signify itself
checkflist stopped the release with "1 extra files ./etc/signify": the
directory is in METALOG (mtree and the install) but was only implied by the
file entry.  List it like /etc/dt (build/logs/release-2026-11-16-signify2.log).
2026-11-16 09:11:04 +00:00
lotherk 758a0b7f54 etc: install-etc-files must name signify
The subdir loop of install-etc-files has its own list; adding signify to
SUBDIR alone left /etc/signify empty.  checkflist stopped the release with
"./etc/signify extra, ./etc/signify/makronix-0.99.pub missing"
(build/logs/release-2026-11-16-signify.log).
2026-11-16 09:02:33 +00:00
lotherk 5bbadd18e8 signify: the release key's public half, and the signing tool
Konrad, 2026-11-16: the release is signed with an own signify key.  The
key pair was generated on this host (Ed25519, no passphrase); the private
key is at ~/.config/makronix/signify/makronix-0.99.sec (0600, outside the
tree -- move it offline), the public half is installed as
/etc/signify/makronix-0.99.pub (etc set, tag etc-sys-etc).

tools/sign-release.sh signs and verifies a file with signify
(SIGNIFY_SECKEY, SIGNIFY_PUBKEY).  Measured: sign and verify of a test file
with the generated key, "Signature Verified".

Not yet wired into `make release` (tasksd t0078, with the build flow t0246)
and not yet checked by the upgrade command (t0055).
2026-11-16 08:53:26 +00:00
lotherk eaf1d1d867 sysinst: the message guard lives two levels above the arch Makefile
Makefile.inc is included from arch/<port>, so ${.CURDIR} is the arch
directory; ${.PARSEDIR} was empty in this make.  MSG_ENC_CHECK points at
../../msg_enc_check.sh.  Seen in the build: the guard ran for msg.mi.de,
msg.md.de, msg.mbr.de, msg.pm.de and msg.entropy.de, and the distribution
stayed green (build/logs/build-2026-11-16-encguard3.log).
2026-11-16 08:49:22 +00:00
lotherk 5b0f73c067 sysinst: stop the build when a message catalog lost its encoding
The non-English catalogs are ISO-8859-1 (de es fr pt) and ISO-8859-2 (pl),
English is ASCII.  An editor that reads them as UTF-8 turns every accented
byte into U+FFFD; msg_enc_check.sh runs before msg.def and each
sysinstmsgs.<lang> and fails on U+FFFD, or on a non-ASCII byte in English
(AGENTS.md).  This happened twice on 2026-11-15.
2026-11-16 08:41:15 +00:00
lotherk 632068d877 docs: bring the CNCL into the guide and explain it in the preface
Appendix C now contains the full CNCL 1.0 text, exactly as it is in
LICENSE (line-wrapped for the page), and the preface has a long section
that explains what the licence says, what it does not cover (NetBSD's
BSD licence, CDE/MCDE's LGPL, pkgsrc packages, Hack, DocBook) and why
Makronix uses a licence this short.

The same pass corrects the MCDE help claim: the cross-built MCDE
package has no help pages (options.mk turns docs off), so the
Information Manager holds this guide and no program help books.

Rebuilt all five forms: 67-page PDF, HTML, 27 manual pages, the dtinfo
library and www/guide.html.  check.sh green, test-tools 33 ok, 0 bad.
2026-11-16 08:32:32 +00:00