Commit Graph
42 Commits
Author SHA1 Message Date
lotherkandClaude Opus 5.5 4e22a7aa9b patch 0018: /source on both sticks, both DVD-sized (4482 MiB); no UEFI stick test under QEMU
The 3 GB GPT image without /source fails the same way under OVMF from USB
(test-smoke-usb-uefi-2026-11-09.log), so the size was never the cause.
make test installs fully from the GPT stick through its BIOS path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:33:52 +00:00
lotherk 1615fe2ef3 fix 0018: /source only on BIOS USB (GPT 7GB FFS breaks efiboot, 2026-11-09d); test usb-bios+sources, smoke usb-uefi 2026-11-09 11:59:52 +00:00
lotherkandClaude Opus 5.5 e723962ac1 patch 0018: the source sets on both install images; make test installs from the stick (UEFI)
sysinst finds them in /source/sets when it runs from the stick (main.c:144)
and installs them in the simple mode (util.c:1536).  Chain 2026-11-09c
proved the config-menu flow of 0b4d2a9 up to the reboot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:41:11 +00:00
lotherkandClaude Opus 5.5 e92badb52c NEXT.md: source sets on the stick, patch 0018 staged; install-simple -U checks the sources
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:01:48 +00:00
lotherkandClaude Opus 5.5 861608eaaa AGENTS.md: make usb, compress, test; tools/AGENTS.md: cd-com0.sh, -U, VMSH_AHCI
Written by opencode (iceman-contributor-free), checked against Makefile:79-92,
tools/test.sh, tools/vmsh.sh:97-100, tools/cd-com0.sh:7-12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 07:54:37 +00:00
lotherkandClaude Opus 5.5 0b4d2a9e34 sysinst simple mode: network, root password and user from the configuration menu
setup.c calls set_network/add_new_user (configmenu.c wrappers) and
root_pw_setup while the target is mounted, instead of its own forms;
ordinary users get the desktop groups afterwards.  dup_file_into_target
copies only a source that exists.  Tests answer the new prompts.
Not built yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 07:50:33 +00:00
lotherkandClaude Sonnet 5.5 074f559615 Remove the Apple special image: no tools/apple-image.sh, no make apple-amd64
A Mac that needs rEFInd boots a rEFInd stick and picks the Makronix stick.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 07:19:24 +00:00
lotherkandClaude Sonnet 5.5 b0dd9322c2 sysinst: the extra programs are installed without a question
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 06:17:38 +00:00
lotherkandClaude Sonnet 5.5 dbd45ff4f0 images raw, packed on request: images.sh, make compress; apple image raw; tests take raw images
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 22:13:25 +00:00
lotherkandClaude Sonnet 5.5 2b5755498c apple-image: the image goes to the release directory with its checksums
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:22:39 +00:00
lotherkandClaude Sonnet 5.5 6322dde7e9 tools/apple-image.sh: install image for Intel Macs with rEFInd in front
MacBookPro8,1 has EFI 1.1 by Apple; NetBSD's EFI loader stops after loading the
kernel there (gnats 58279).  rEFInd 0.14.2 (pinned SHA-256) starts the loader.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:06:57 +00:00
lotherkandClaude Sonnet 5.5 035aff1794 logo: palette-driven theme, 0.99.9 is Camouflage; 'based on NetBSD' without version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:10:48 +00:00
lotherkandClaude Sonnet 5.5 879beda8c6 make test: media check, one full installation (DVD), smoke tests; patch 0016: packages on the MBR image
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:06:13 +00:00
lotherkandClaude Sonnet 5.5 49aaf27498 logo: square form, XPM for dtlogin, ASCII form for the console
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:05:41 +00:00
lotherkandClaude Sonnet 5.5 2cda72050a Rebrand: Makronix 0.99.9, based on NetBSD
Kernel banner, boot loaders, motd, /etc/release, getty banner, boot.cfg menus,
sysinst messages and the media names say Makronix (patch 0015, overlay).
kern.ostype stays NetBSD on purpose.  install-simple: 38 PASS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:52:49 +00:00
lotherkandClaude Sonnet 5.5 0d60f4dadf USB stick image with packages; sysinst does not offer the stick as a target
- patch 0014: the install image carries the binary packages (MD_IMGDIR_EXTRA,
  amd64 installimage, 3072 MB) and consdev=auto in its boot.cfg
- sysinst disks.c: the disk whose wedge is the root is not listed (the stick
  was offered as "a: sd0")
- vmsh.sh -U (image as USB stick, snapshot), install-simple.sh -U

Measured 2026-11-08: install from the stick (BIOS, USB) 38 PASS, with the extra
programs from the stick; the GPT image boots to sysinst in QEMU/UEFI.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 09:43:31 +00:00
lotherkandClaude Sonnet 5.5 a18bbcf277 tests: UEFI boots a com0 copy of CD 1, 4 GB for the cgd test
- tools/cd-com0.sh: copy of an install CD with `consdev=com0' in /boot.cfg;
  the UEFI loader (console=auto) did not take the serial port in the test VM
  (a key through the serial pipe or the keyboard did not count; screen dump:
  installer on VGA)
- install-cgd.sh: UEFI uses that copy, 4 GB RAM; install-simple.sh: no
  Enter loop; vmsh.sh: VMSH_AHCI

Measured 2026-11-08: cgd UEFI 35 PASS, multi-CD (3 package CDs) 38 PASS.
Open: three guest freezes in write-heavy phases at 2 GB, cause unknown.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 07:54:36 +00:00
lotherkandClaude Sonnet 5.5 840782e24c sysinst, media, tests: desktop defaults, four CDs, Portuguese, AHCI test VMs
- sysinst simple mode: sshd on with root login by password, npf firewall,
  mDNS (mdnsd, nsswitch), PulseAudio, CUPS, dbus; extra programs from N
  package CDs (extras.c); cgd root fix (mnt2_mounted)
- Portuguese (pt_BR) catalogs and patch 0013; welcome text for DVD/CDs
- media: console=auto (0008), RAM-disk installer with two CDs (0012),
  package CDs and DVD packages (cd3.sh), userland.sh for the build VM
- tests: line-by-line checks, mDNS pattern, UEFI Enter loop, VMSH_AHCI
  (QEMU 11.1.2 loses PIIX IDE interrupts under load)
- docs: UPDATING.md, npf-default.conf, AGENTS.md updates

Measured 2026-11-07: simple 37 PASS, DVD+sources 42 PASS, cgd BIOS 35 PASS;
cgd UEFI with console=auto not green yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 21:09:35 +00:00
lotherkandClaude Sonnet 5.5 6c714a0ea7 tools, Makefile, package lists: media (CD 2, CD 3), install tests, build VM, source sets, binary packages
make iso now also writes CD 2 (makronix set) and CD 3 (binary packages); make sourcesets/isosrc make the source sets and the DVD with them. tools: cd2.sh cd3.sh, install-simple.sh install-cgd.sh (end-to-end tests on the serial console), vmsh.sh devvm.sh (QEMU sessions, the kept build VM), vm-pkgbuild.sh vm-pkgcollect.sh (native pkgsrc builds), pkg-binaries.sh (the project's binary packages), host-nfs-setup.sh (NFS for the build VM; loopback-only through an nftables rule), makronix-distfiles.sh makronix-pins.sh msrc-stage.sh. Package lists: common, per platform, and binary.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:53:21 +00:00
lotherkandClaude Sonnet 5.5 2e55d77c20 claude: permission rules, AGENTS.md and the build gate
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:53:11 +00:00
lotherkandClaude Sonnet 5.5 5214e15a20 tools: remove the Python FDE drivers
The goal is a sysinst that encrypts by itself; tools/install-simple.sh and tools/install-cgd.sh drive that in sh. They stay in git history.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:53:11 +00:00
lotherkandClaude Opus 5.5 0cf14ec379 mobile: root image on userdata, Void (runit) boots on hotdogb
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>
2026-11-07 11:30:02 +00:00
makronix d41a8c0db1 claude: CLAUDE.md, permission rules and the build gate as a PreToolUse hook 2026-11-05 20:48:08 +00:00
makronix 81be2630a3 tools: the remaining FDE drivers (key input, sysinst sequence, test, vm monitor) 2026-11-05 16:00:30 +00:00
makronix fbe0f4ed1b handoff: measured state of the FDE medium, and the build order that fixes it
The installer cannot read its own CD: cd9660.kmod is 62 hours older than the
kernel inside the same ISO, so the module does not load. build.sh iso-image
only packages releasedir; the kmods come from distribution. Two steps, in this
order, with the timestamp check as the gate.

docs/HANDOFF-2026-11-05.md carries the measurements, the file map and what is
already proven (unencrypted GPT/EFI install boots to login:).
2026-11-05 16:00:21 +00:00
makronix 32fce54f47 tools: install-test.py drives the CD this tree builds over a pty.
The old driver waited for menu text on a unix socket; these menus are drawn
with box characters and their labels are not contiguous text, so it gave up
before sysinst had drawn anything.  This waits only for the two plain strings
the console does contain and otherwise sends keys on a schedule.
2026-11-05 02:00:01 +00:00
makronix 9b62ae139d boot.cfg: the amd64 media declare a 5 second menu timeout, and what boots is measured.
The five amd64 boot.cfg.in files carried upstream's 30.  What a medium
actually waits comes from /boot.cfg, and on this tree's media that file is the
etc set's (distrib/sets/lists/etc/md.amd64:3), extracted after the medium's
own copy; measured with tools/boottimeout-probe.py on the built CD: countdown
5,4,3,2,1, menu gone at 5.8s; the same image with that byte set to 9 counts
from 9 and leaves the menu at 16.5s.  The patch makes the declared value equal
to the value that boots.

docs/reference/boot-cfg-timeout.txt records the quotes and the finding;
build/logs/t-d1972f2e-media.log is the release that carried it (rc=0).
2026-11-04 22:28:25 +00:00
makronix 5f98fe2797 fde-tick: a cron that does the next step itself and always says what it did, instead of an agent session that logs nothing. 2026-11-04 17:38:46 +00:00
makronix 7158df1cf6 tick: prompt moves to tools/agent-tick.prompt, run with 'hermes chat --query-file --oneshot'.
Quoting a multi-line prompt inside a shell string broke twice today (backticks
executed, inner quotes split the argument). A file has no quoting.
2026-11-04 15:12:20 +00:00
makronix 98e5ca2187 tick: backticks in the prompt executed commands inside the double-quoted string; removed. 2026-11-04 15:08:42 +00:00
makronix ccad6dfef7 tick: quoting bug in the cgd note broke the hermes call (double quotes inside the prompt). 2026-11-04 15:08:24 +00:00
makronix 4ef7552971 tick: documentation duty is the first paragraph of every run, and the previous run is audited for it. 2026-11-04 08:29:26 +00:00
makronix d18ccdeb38 tick: cgd boot goes through the cgdroot miniroot module -- read that path first. 2026-11-04 08:24:59 +00:00
makronix 89e63fa59d tick: iterate in a live guest and on a booted disk; build an ISO only to prove a fix. 2026-11-03 22:19:16 +00:00
makronix 3f7e52fcfe build stamp: derived artefacts are keyed by content, not by timestamps.
A patch to sysinst left the INSTALL ramdisk and the install CD from an earlier
run in place, and the test measured the previous code.
2026-11-03 21:54:54 +00:00
makronix 9c5a6eae93 src and xsrc stay pristine upstream; our changes are patches under patches/, applied by tools/apply-patches.sh. 2026-11-03 16:41:34 +00:00
makronix 157d3284c4 tick: stage 2 is FDE -- prove an encrypted install boots, patch what is missing. 2026-11-03 16:40:34 +00:00
lotherk 980c4113a3 vmbuild: CDE built on a NetBSD host this tree produces, and in the set.
wm/cde cannot be cross-built from Linux (mk/tools/replace.mk:142 refuses
awk:run when OPSYS != NATIVE_OPSYS), so it is built on a live image from src/
under qemu: tools/vm-boot.cfg puts the console on com0, tools/vmctl.py drives
it, and tools/vmbuild/ holds the stages that bootstrap pkgsrc there with
--prefer-native=yes and build the recipe unchanged.

Two settings, both configuration, both scoped to wm/cde in the build host's
mk.conf: FORCE_C_STD=gnu11 (autoconf 2.72 picks C23, where CDE's 'int f();'
means 'int f(void)') and the C wrapper's append list for the five GCC 14
implicit-declaration errors, the only lever that reaches the ksh93 subtree.

stage6 walks the runtime closure over the @pkgdep lines in +CONTENTS, not over
+DEPENDS (that file is in the binary package, not in the registration
database), and the closure is unpacked into the sysroot rather than pkg_add'ed
so CDE's /etc/dt paths do not land on the build host.  10837 set entries,
checkflist green.
2026-11-03 13:52:27 +00:00
makronix c923819a02 pkgsrc cross: NO_SKIP for the run-on-target tool check on a non-NetBSD host.
The tools it guards (awk:run, install-info:run) only ever see TARGET paths and
are never executed here; can-be-built-here.mk documents NO_SKIP for exactly
this case. Without it CDE stops before its first file is compiled.
2026-11-03 10:46:04 +00:00
Makronix Bot d642251347 pkgsrc: cross-build vim for the target, and give /usr/pkg its own set.
vim 9.2.1202 and vim-share build cross with the tree's toolchain
(x86_64--netbsd-gcc) and come out as NetBSD 11.99.9 ELF.  Two
configuration defects had to go first: bootstrap on a Linux host writes
PREFER_PKGSRC=yes, which made pkgsrc rebuild curses (devel/ncurses) for
the host and mix host and target in one build; and the fragment described
a target pkg_install that does not exist, since pkgtools/pkg_install
cannot cross-build.

The 'makronix' set is generated by tools/makronix-set.sh from what the
packages installed plus the METALOG records pkg_add does not write.
See AGENTS.md for the set, the bootstrap flag and where a Linux build
host stops.
2026-11-03 09:54:05 +00:00
lotherk 314f44dc90 pkgsrc: cross bootstrap against the tree's own toolchain.
The tree builds pkgsrc packages for NetBSD/amd64 with the tooldir and the
sysroot that build.sh produced; tools/pkgsrc-cross.mk.conf carries the whole
configuration as the bootstrap's mk-fragment.  Measured: devel/zlib comes out
"for NetBSD 11.99.9", installs into destdir.amd64/usr/pkg through pkgsrc's
bootstrap pkg_add with -p, and checkflist reports those files as extra until a
set lists them.

OPSYS_VERSION in the fragment was 119900900; bsd.prefs.mk computes it as
printf "%02d%02d%02d" of major/minor/patch, so 11.99.9 is 119909, and the
missing CROSS_LOWER_*/CROSS_OBJECT_FMT stop bsd.prefs.mk with "missing cross
variable settings".

Also: build/ is output and now ignored, the tick uses the absolute path to
hermes, and AGENTS.md names the import pins and how a build is gated.
2026-11-03 09:20:06 +00:00
makronix 32032ec800 skeleton: three entry points, the conventions, and the tick that keeps work moving. 2026-11-02 22:30:44 +00:00