feat(gpu): universal NVIDIA lane — detect + install branch at boot (C&C) #31

Merged
clawdie merged 1 commit from nvidia-universal-lane into main 2026-06-04 22:22:26 +02:00
Owner

Universal NVIDIA lane behind NVIDIA_UNIVERSAL=NO (opt-in, zero blast radius).

What it does: one ISO that boots on any NVIDIA machine. At boot (pre-SDDM): detect GPU → branch {390,470,590} → pkg install from on-image repo → kldload → SDDM/XFCE accelerated. Any failure falls through to integrated/scfb — never blocks boot.

build.sh: install_nvidia_universal_repo() fetches all three families + settings into /usr/local/share/clawdie/nvidia-repo, builds repo metadata, writes clawdie-nvidia.conf.

clawdie-live-gpu: new nvidia-auto mode with detect→install→load chain, already-installed guard, best-effort fallback.

Gates: sh -n clean, format gate green, detector logic + branch/pkg mapping unit-tested.

Build-host validation needed (doc/NVIDIA-UNIVERSAL-HANDOFF.md): pkg fetch/repo layout, dep closure, file:// repo resolution at boot, kernel ABI, image size headroom.

Co-Authored-By: Claude Opus 4.8

Universal NVIDIA lane behind `NVIDIA_UNIVERSAL=NO` (opt-in, zero blast radius). **What it does:** one ISO that boots on any NVIDIA machine. At boot (pre-SDDM): detect GPU → branch {390,470,590} → `pkg install` from on-image repo → kldload → SDDM/XFCE accelerated. Any failure falls through to integrated/scfb — never blocks boot. **build.sh:** `install_nvidia_universal_repo()` fetches all three families + settings into `/usr/local/share/clawdie/nvidia-repo`, builds repo metadata, writes clawdie-nvidia.conf. **clawdie-live-gpu:** new `nvidia-auto` mode with detect→install→load chain, already-installed guard, best-effort fallback. **Gates:** sh -n clean, format gate green, detector logic + branch/pkg mapping unit-tested. **Build-host validation needed** (doc/NVIDIA-UNIVERSAL-HANDOFF.md): pkg fetch/repo layout, dep closure, file:// repo resolution at boot, kernel ABI, image size headroom. Co-Authored-By: Claude Opus 4.8
clawdie added 1 commit 2026-06-04 22:22:19 +02:00
Opt-in NVIDIA_UNIVERSAL lane (default NO; normal/single-branch builds unchanged):
one ISO that adapts to an unknown NVIDIA target.

- build.cfg: NVIDIA_UNIVERSAL flag.
- build.sh: install_nvidia_universal_repo() stages an on-image pkg repo with all
  three branches (390/470/580 + settings), pkg-repo metadata, and a file:// repo
  conf; universal mode bakes no branch and sets clawdie_live_gpu_mode=nvidia-auto.
- clawdie_live_gpu: nvidia-auto mode detects the device id (PR #30 fix) -> branch
  {390,470,590} -> pkg-name -> `pkg install -r clawdie-nvidia` -> kldload, all
  best-effort with fallback to integrated/scfb (never blocks boot).
- doc/NVIDIA-UNIVERSAL-HANDOFF.md: Codex FreeBSD build + hardware validation plan.

sh -n clean; detector+branch+pkg map unit-tested on Linux
(1c8c->590->nvidia-driver-580, 0fc8->470, 0e22->390). The pkg fetch/repo layout,
offline boot install, writable root, kernel ABI, and image size MUST be validated
on the FreeBSD build host + real NVIDIA hardware (see handoff).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
clawdie merged commit 972474e65a into main 2026-06-04 22:22:26 +02:00
clawdie deleted branch nvidia-universal-lane 2026-06-04 22:22:26 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clawdie/clawdie-iso#31
No description provided.