From ad1f7a6a3cd262cc084673ec5cf0c561328ec7c7 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 21 Sep 2026 11:09:36 -0400 Subject: Make repo fully path-portable and add reproducible installer - install.sh: one-command fresh-Ubuntu reproduction (deps, NVIDIA clone + patch, GSP firmware fetch from linux-firmware.git with objcopy .fwimage extraction + MD5 verify, ordered build, host config, load, mdev creation). Wrapper-neutral: works with libvirt/raw QEMU. - patches/nvidia: regenerated path-independent patch (KBUILD_EXTRA_SYMBOLS resolved via $(src)/$(CURDIR) relative to the NVIDIA tree). - scripts/stack_manager.sh and helper scripts auto-detect repo root (OPEN_IOV_ROOT override); no hardcoded developer paths anywhere. - firmware analysis scripts use script-relative paths (also fixes stale firmware/570-GSP references); docs/wiki updated to $OPEN_IOV_ROOT. - .github/workflows/ci.yml updated for standalone repo layout; firmware fetched from linux-firmware in CI. - Untrack remaining kbuild artifacts (Module.symvers, modules.order, *.o.d); gitignore them. - STATE.md: live project state, limitations, fixed/open bugs. - README.md: rewritten for clone-and-run reproducibility. --- tools/module_ops/dry_run.sh | 2 +- tools/module_ops/load_converged.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/module_ops/dry_run.sh b/tools/module_ops/dry_run.sh index 8bda820..e6bb6f2 100755 --- a/tools/module_ops/dry_run.sh +++ b/tools/module_ops/dry_run.sh @@ -4,7 +4,7 @@ set -euo pipefail -VGPU_KERNEL="$OPEN_IOV_ROOT/kernel" +VGPU_KERNEL="${OPEN_IOV_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}/kernel" echo "=== Open-IOV vGPU Dry-Run Validation ===" echo "" diff --git a/tools/module_ops/load_converged.sh b/tools/module_ops/load_converged.sh index 77cde09..dbd090e 100755 --- a/tools/module_ops/load_converged.sh +++ b/tools/module_ops/load_converged.sh @@ -4,7 +4,7 @@ set -euo pipefail -OPEN_IOV_ROOT="$OPEN_IOV_ROOT" +OPEN_IOV_ROOT="${OPEN_IOV_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}" NVIDIA_OPEN_KERNEL="$OPEN_IOV_ROOT/nvidia-open-gpu-kernel-modules/kernel-open" VGPU_KERNEL="$OPEN_IOV_ROOT/kernel" -- cgit v1.2.3