Skip to content

c35: follow-ups from the v2026.47 live boot, install and release #3287

Done

Description

@bong-water-water-bong

Follow-ups found while taking v2026.47 (c34) through the live USB boot, the install and the release on 2026-11-21/22. Each one was worked around on the night; each needs a real fix in the next candidate.

Appliance (os/v3/puppy)

Release tooling

Serving

Activity

  1. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Added (2026-11-22 02:3x): the engine's self-hosted runners (engine, bench, org) lived on the build host that was reinstalled as the appliance for the install test, so the required build and reviewer checks have nothing to run on. Every engine PR waits on them, including #3285 (the v2026.47 docs, whose release-notes anchor the release post links). Re-home the runners on a build machine first; #3285 then merges normally. Runner configs are in the build host's backup.

  2. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Added (2026-11-22 02:4x, owner): c35 ships an AppImage: one portable file with Lemonade, 1bit and the GPU runtime, for a no-install download. It still needs the host's amdgpu and amdxdna drivers and device permissions, which the AppImage cannot carry, so its first page says so. No Flatpak (owner decision): a background server needing raw GPU (/dev/kfd) and NPU (/dev/accel) access fights the sandbox, and Flathub does not accept the closed compiled-in components. The native packages (deb, rpm, Arch, tarball) shipped with v2026.47 and pass pack-proof.sh 6/6 (with #3289).

  3. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Release-check rows, 2026-11-22 04:3x AST: all five fixed and proven on the hardware. A stick built with these fixes passes 1bit-release-check 38/38, no failures both live (booted from the stick) and installed to the NVMe (Secure Boot on; NPU chat 99.2 tok/s, HRX 49.6 tok/s).

    row cause fix
    sealed, npu-kernels-beside-engine looked for format-1 sets on /data; os/v3 ships signed-manifest sets in the payload #3292 (also caught a real leak: the v2026.47 0.6B set shipped its kernel build tree; release files rebuilt and republished)
    payload-runpath packer kept build-host-only TheRock LLVM dirs #3294 ($ORIGIN only; 27B runs on HRX from the rewritten tree)
    xhci-capture the Puppy image never installed the tool #3291
    chat-npu-queue-plain the check's curl branch used wget options; Lemonade dropped the backend's Retry-After #3293 + 1bit-MONSTER/lemonade#57 (pin bump to follow)

    New, found while proving it, release-blocking: a live stick on a machine that already runs an installed 1bit OS booted the installed system's SFS (both found their root by the 1BIT-DATA label). Fixed in #3295 (the stick pins its own UUID; the installer handles it). Also merged tonight: #3289 (pack-proof), #3290 (HF_HOME on /data).

    Still open from this list: the NPU route answering tool-offered chats (a proxy covers the chat page for now), the stick data partition not growing on first boot, the catalogue offering Qwen3-1.7B-NPU with no kernel set (it fails to load with a misleading 'array busy' error), keeping the exact tested image, and the issue digest skip.

  4. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    c35 stick rebuilt from main: 38/38 PASS on the AI MAX+ 395 (22 Nov 06:3x AST), image sha256 562dd9b6…, live from the stick (booted itself, Secure Boot on; NPU 94.6 tok/s, HRX 45.6 tok/s).

    Rebuilding from main showed it could not reproduce the tested package on its own; fixes, each open:

    Not rebuilt from source: the Puppy base layers (woof-CE not available; v2026.47's, permissions normalised by scripts/base-modes.sh) and the HSA runtime set (the release copy; TheRock not on the build host).

  5. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    c35 installed to the NVMe and passes 38/38 INSTALLED (22 Nov, AI MAX+ 395; Secure Boot on; NPU 97.3 tok/s, HRX 51.0 tok/s; identity payload=lemonade-onebit-rc-2026-11-22-c35).

    New, unexplained: the box froze on the installer's own reboot. 1bit-install finished all 7 steps (INSTALLED: … UUID=160b07b2…, Boot0003 first) and began its 10 s countdown to reboot; the machine then dropped off the network and stayed down until it was power-cycled by hand (Puppy left /data/fsckme.flg). No log from the frozen boot exists: the last snapshot is the stick boot the installer ran from (11:36Z), the next is the power-cycled boot (13:56Z), which came up normally. The same reboot after the c35b install, two hours earlier, worked. Changed between the two: the c35 stick adds the xhci keep-awake udev rule and the base-mode normalisation. Needs a console capture on the next install (serial or JetKVM recording) before anything is changed.

    Also measured on every boot of this board: GPT: Use GNU Parted to correct GPT errors for the stick (the dd'd image's backup GPT sits at the end of the image, not the stick); #3301 relocates it on first boot.

  6. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Installer reboot freeze: evidence so far, and two PRs (cl-release, 22 Nov ~15:20Z). All of this was read on the box without changing anything except where noted.

    • The freeze came after our last log save. The stick boot the c35 installer ran from logged its shutdown marker at 11:37:29Z. Its shutdown tail is the same, line for line, as three reboots that came back (stick 10:31Z, stick 14:23Z, NVMe 14:18Z). That leaves four places it could have stopped: the end of rc.shutdown, the kernel's reset, firmware POST, or early in the first NVMe boot.
    • It was not a kernel panic or oops. efi_pstore was loaded and its store is empty. A normal reboot doesn't write a record either, so the empty store can't separate the other cases. os/v3/puppy: every reboot leaves its kernel log tail in EFI pstore, and the next boot files it (engine#3287) #3306 makes every reboot leave the kernel's log tail in EFI pstore, written after reboot: Restarting system. The next boot then files it under /data/logs/<boot>/pstore/ and writes a verdict line to markers.
    • Side bug: os/v3/puppy: read the hardware clock as UTC, so a boot does not run 4 h ahead until NTP (engine#3287) #3308. The installed system reads its UTC hardware clock as Atlantic time, so it runs 4 h ahead until NTP. As a result, the log directories got future names, and pruning by name deleted the real boot logs from around the freeze.
    • Next: one plain reboot of the installed box, to prove this board writes the shutdown record. That waits on the orchestrator's go. After that, a stick boot plus install to reproduce the freeze itself.
  7. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Release tooling items - PRs (lane cl-buildenv, 2026-11-22):

  8. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release: two fixes merged.

    cut.sh BASE mode does not carry #3308's rc.country change yet; cl-buildenv has a tested patch. The reboot reproduction on the appliance waits on the owner's go.

    🤖 Generated with Claude Code

  9. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release: the plain reboot of the installed c35 appliance (orchestrator GO, owner word). It reproduced a stall, and pstore is empty.

    Measured on the box (/data/logs, /data/dev/cl-release/reboot.log):

    • 19:57:49Z: printk.always_kmsg_dump=Y set at runtime, pstore held 0 records, then /sbin/reboot.
    • The old boot's markers file has two shutdown lines, 19:57:55Z and 20:01:19Z. Both can only come from 06onboard-logs stop in rc.shutdown's init.d loop, so rc.shutdown ran twice. Userspace and a writable /data were still alive 3 min 24 s after the first run. The good reboots earlier today (14:15–14:18Z) each have one line.
    • The kernel log, re-captured at 20:01:20, ends at [19959.75] r8169 eno1: Link is Down (19:57:54.8Z). The kernel printed nothing for 3.4 min.
    • New boot (20:02:54Z, 299 s after the box dropped off the network): x86/amd: Previous system reset reason [0x00080800]: software wrote 0x6 to reset control register 0xCF9. The box ended in the kernel's own software reset, not a power cut. That fits a second /sbin/reboot (inittab maps Ctrl-Alt-Del to /sbin/reboot); I'm asking whether one was sent at ~20:01.
    • pstore: 0 records. kernel_restart() calls kmsg_dump(KMSG_DUMP_SHUTDOWN) before the reset, and efi_pstore, with max_reason UNDEF and always_kmsg_dump=Y, should have dumped. But efi_pstore_write uses efivar_trylock and a non-blocking SetVariable, and returns -EBUSY when the EFI runtime is busy.
      • Candidate, not proven: the stuck first shutdown holds the EFI runtime, an EFI call hung in firmware. That would explain both the stall and the missing record. The other possibility is that this board's SetVariable fails at that point.

    Next step: find which rc.shutdown step after 06onboard-logs stop stalls. Candidates: the 05/04/03/00 stops, sfs_load --cli stop, umount, connman stop, networkdisconnect, and modprobe -r of r8169/mt7925e. Lemonade :13300/:13305 are back up (HTTP 200).

    🤖 Generated with Claude Code

  10. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release, follow-up on the reboot stall: the second shutdown at 20:01:19Z was the owner rebooting the box by hand, because it was unreachable.

    What that means for the c35 "frozen reboot":

    • Whatever the owner did went through init. It ran rc.shutdown again (the 06onboard-logs stop marker at 20:01:19Z) and ended in a CF9 software reset. A power cut would have done neither.
    • So at 20:01 PID 1, the init.d scripts and a writable /data were all alive. The kernel was not hung, and the firmware/POST stage had not been reached.
    • The freeze is therefore the first rc.shutdown stuck, or very slow, somewhere after 06onboard-logs stop. The network is already down at that point, which is why the box looks frozen from outside. That run was never seen to finish, so stuck versus slow is still open.
    • pstore stayed empty even through the owner's completed second reboot. Either efi_pstore did not keep a SHUTDOWN record on this board, or the record was dropped (the non-blocking write gives up when the EFI runtime is busy). Cause open.

    #3330 (merged) makes the next one observable: 1bit-shutdown-watch names each rc.shutdown step, and the stack of a step that hangs, in the kernel log, which reaches the screen, the serial console and the next boot's dmesg snapshot. It reaches the box with the next image, or sooner if the owner agrees to it being put on the live box.

    🤖 Generated with Claude Code

  11. bong-water-water-bong commented on Nov 22, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release: correction, and the pstore record. pstore was not empty. At 20:03 I listed /sys/fs/pstore while it was not mounted; the c35 image's 1bit-logs predates #3306 and does not mount it.

    Measured on the box, read-only: NVRAM holds 18 dump-type0-*-1795377686 variables, timestamped 20:01:26Z, which is the owner's manual reboot. I mounted pstore, copied the records without deleting any (the NVRAM variables are still there) to /data/dev/cl-release/pstore-20261122T2001Z/, and unmounted again. So efi_pstore does keep the shutdown record on this board (printk.always_kmsg_dump, #3306, works as intended). The reassembled log ends:

    <6>[19958.331333] usbcore: deregistering interface driver snd-usb-audio
    <6>[19959.746543] r8169 0000:c1:00.0 eno1: Link is Down
    <6>[20170.142126] ACPI: PM: Preparing to enter system sleep state S5
    <6>[20170.453373] kvm: exiting hardware virtualization
    <0>[20170.453720] reboot: Restarting system
    
    • The stall is 210 s with no kernel message at all. There is no hung-task report and no driver error. The first rc.shutdown was waiting in userspace, or on something that does not print. Once the owner's reboot started, the kernel's own part took under a second.
    • Earlier in the same boot: [14344.849850] amdgpu 0000:c5:00.0: GPU reset: queues of 1 process(es) are no longer usable, then [drm] device wedged, but no recovery needed (about 18:24Z). A process stuck on the wedged GPU is now my lead for what rc.shutdown waited on. It is not proven.
    • The os/v3/puppy: rc.shutdown names each step in the kernel log, so a stalled reboot shows where (engine#3287) #3330 watcher is installed on the live box. The next reboot will name the step, and its stack if it hangs.

    🤖 Generated with Claude Code

  12. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release: second GO'd plain reboot, 23 Nov 04:28:41Z, with the #3330 shutdown watcher in place. The box was back at 04:33:27Z, about 4.8 min later, after a software reset (reset reason CF9). The pstore record (16 parts) was filed automatically into the new boot's log directory by v2026.48's 1bit-logs (#3306 working). It shows the stall:

    [12564.64] 1bit-shutdown: watching rc.shutdown 1942955
    [12568.98] 1bit-shutdown: step modprobe -rv snd_hda_intel
    [12570.09] 1bit-shutdown: step modprobe -rv snd_hda_codec
    [12570.55] r8169 eno1: Link is Down
    [12571.14] 1bit-shutdown: step modprobe -r mt7925e
    [12572.19] 1bit-shutdown: step sleep 2          <- rc.shutdown's 'sleep 2 # needed to clean up' after the NIC unload
                (233 s, nothing)
    [12805.07] 1bit-shutdown: watching rc.shutdown 1954911   <- a SECOND rc.shutdown
    [12807.22] step sleep 2, then 11 x 'step sleep 1'         <- the dev_save kill loop: kill + sleep 1 per process
    [12823.96] ACPI: PM: Preparing to enter system sleep state S5
    [12824.28] reboot: Restarting system
    

    The same shape as 22 Nov: the first rc.shutdown stalls after the NIC unload and never finishes, and a second one starts about 4 min later and finishes in 19 s. Last time the owner started the second run by hand. For this run I'm asking whether anyone touched the box at about 04:32:40Z.

    The first watcher went silent, with no finished and no still in … after N s. There are two possible reasons:

    • rc.shutdown's kill loop killed it, since it is a process too;
    • it blocked reading /proc/<pid>/cmdline of a stuck process, because that read takes the target's mmap lock.

    Either way, the next step is a watcher that cannot be silenced this way: it logs on SIGTERM, prints a heartbeat every 15 s, and reads cmdline with a timeout. Then one more reboot will name the stuck step.

    🤖 Generated with Claude Code

  13. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release: a clean baseline for comparison. The owner's reboot at 09:48Z finished its shutdown on its own: the old boot's shutdown marker is at 09:48:11Z, the new boot at 09:48:46Z, and the reset was a CF9 software reset. That is 35 s for rc.shutdown plus POST, against about 4 min in both stalled reboots, which only ended with a hand reboot.

    The difference: the box was idle (6 W), with no model loaded in lemond and no lane jobs. In both stalls, lemond and lane jobs held GPU/NPU state (lemond's last lines on 22 Nov were its model teardown) when rc.shutdown reached the NIC unload and the dev_save kill loop. That points at a process stuck releasing device state, which is what the v2 watcher (#3362) is built to name.

    This reboot left no pstore record: /proc/cmdline has no printk.always_kmsg_dump=1 because 1bit-update copies the old slot's kernel parameters. That is filed separately.

    🤖 Generated with Claude Code

  14. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-release, reboot under load, 23 Nov:

    • Load: Qwen3-0.6B-NPU-1bit loaded in Lemonade with a streaming chat in flight. The GPU model, Qwen3-4B-Instruct-2507-HRX, failed to load just before ("llama-server failed to start"), so this was an NPU-only load.
    • Timing: /sbin/reboot at 15:02:05Z, ssh gone at 15:02:21, box back at 15:07:26 with uptime 0 min. That is ~4.5 min of shutdown, against 35 s idle, so the stall reproduced. This time it cleared on its own, with no Ctrl-Alt-Del.
    • Capture failed: pstore is empty, although the backend is efi_pstore and always_kmsg_dump=Y was set at runtime. The kernel's restart dump doesn't reach EFI on this box, so watcher v2's kernel-log lines are lost.
    • Next (proposed, waiting for a GO): the watcher also writes its current step into one small efivarfs variable, overwritten at each step and read and deleted at the next boot. That's a userspace write that doesn't depend on the kernel dump.

    🤖 Generated with Claude Code

  15. bong-water-water-bong commented on Nov 23, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Correction to my comment above: the 15:02Z stall did not clear on its own. The owner hand-rebooted at 15:06:46Z (orchestrator's read on #3361). The capture also worked: the previous boot's /data/logs/<boot>/dmesg.log holds watcher v2's lines up to rc.shutdown line 169's sleep 2, then 258 s of silence. pstore isn't needed for this. The follow-up is on #3361.

    🤖 Generated with Claude Code

  16. bong-water-water-bong commented on Nov 24, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Every checklist line in this issue has landed on main; the body's boxes were just never ticked. Verified the commits, not the prose: all 18 PRs named on the thread have merge commits on main (spot-checked every sha), and gh pr view confirms the two that looked dubious (#3293 → 0287d8d58c merged, #3296 → 8396b2fdbd merged).

    Landed, by body line:

    The two follow-ups this umbrella spawned are open under their own numbers and are where the remaining work lives:

    Closing this as a completed checklist, with the pointer above so nothing lands back here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions