Commit Graph
7 Commits
Author SHA1 Message Date
lotherkandClaude Opus 5.5 76cc356c68 docs/reference/syspkgs.txt: what build.sh syspkgs is (read 2026-11-09)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:24:28 +00:00
lotherkandClaude Opus 5.5 5233d8297a mobile: mark the booted A/B slot successful from Linux
The bootloader counts a slot's retries down on every boot until the slot
is marked successful, and at 0 stops on "image destroyed" without falling
back to the other slot (measured).  qcom-ab-slot (soc/sm8150/rootfs, POSIX
sh) sets the successful bit of boot_<slot> in byte 6 of its GPT
attributes, in the primary and the backup table with both CRCs, checking
both before and after -- the edit qbootctl makes (docs/reference/
qbootctl.txt).  The runit service slot-successful runs it once sshd runs;
tools/mkrootimg.sh copies soc/<soc>/rootfs and rootfs-<base> into the
image.

Measured on hotdogb: after a flash (retry 7, not successful) the first
boot marks the slot at 6.4 s; fastboot then reports
slot-successful:a:yes and the retry count no longer drops.

devices/hotdogb/AGENTS.md: a rarer hang remains, 2 of 10 boots with
kernel patch 0003.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 21:12:16 +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 b83aaa425b docs: GOAL, AGENTS.md in every directory, build VM, offline build, references
Measurements named with their logs: the installs (BIOS, UEFI, encrypted, two CDs), the NetBSD self-build in the build VM (2 h 02 min, stopping only at checkflist for the missing userland), 9p and NFS against the local disk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:53:21 +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 0636e6ea15 reference: the install image needs a writable medium, and what happens when it does not
The amd64 EFI install image remounts its root read-write and copies
/tmp/gettytab into etc (distrib/amd64/installimage/etc.rc:39,46).  On a
read-only device the kernel accepts the remount and every write returns EIO,
which is the ld0d fsbn-264208 and gettytab transcript the boot failure was
reported as.  Measured both ways on the medium this tree built (2026-11-04):
attached writable it reaches install.sh, attached readonly=on it reproduces
the card.  The CD needs no writable medium -- tmpfs union on etc plus a
gettytab symlink.

Also corrects docs/reference/boot-cfg-timeout.txt section 9: install-image
does build; those runs failed on a stale work.fstab in an object directory
that is not used, because the EFI target builds inside src/.
2026-11-04 23:26:15 +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