How Do You Capture a Reproducible Software Baseline?
Primary platform: Jetson Orin Nano Super
QEMU alternative: Not applicable
Safety level: S0
Problem and outcome
A board name and uname -r do not reproduce a kernel investigation. Two systems can report the same release while using different configs, modules, runtime FDTs, boot files, or packages. This guide consumes the validated platform identity bundle and records the software state that later build, driver, and regression work must cite.
Completion produces a checksummed evidence directory and a short explanation of which facts are proven, which are only candidate files, and which remain unavailable.
Captured board baseline
An S0 run on 2026-07-24 collected a baseline for the Jetson Orin Nano Super board described in the platform-identification guide. The collector and its SHA-256 manifest completed successfully, but this is not an accepted baseline: the runtime device-tree model reports Orin NX despite the P3767-0003 Orin Nano module identity, and /sys/firmware/fdt was unreadable. Neither gap may be bypassed or replaced with a candidate boot DTB.
| Evidence | Captured result |
|---|---|
| Running kernel | 5.15.148-tegra |
| Kernel config source | /proc/config.gz |
| Loaded modules | none at collection time |
| Installed module-tree files | 1,118 under /lib/modules/5.15.148-tegra |
| Boot selection | DEFAULT primary; candidate LINUX /boot/Image; candidate INITRD /boot/initrd |
| Candidate board DTB | kernel_tegra234-j401-p3768-0000+p3767-0003-recomputer.dtb |
| Runtime FDT hash | unavailable: /sys/firmware/fdt was not readable |
The software-baseline manifest hash is f6730a5e2f1f3d0ea3297ff963c9a9df98d9e56be4257412bf6c286c7a4d23f7. The candidate DTB and boot entries above are deliberately not claimed to be the files used by the running kernel. Do not use this run as deployment or boot-proof evidence until the runtime-FDT gap is resolved.
Prerequisites
- Complete platform identification on the same running Orin and retain its validated bundle.
- Bash, GNU findutils,
gzip,awk,sort,sha256sum,uname,date, anddpkg-query. - Read access to
/proc,/sys/firmware/fdt,/boot,/lib/modules, and the Debian package database. - The dated NVIDIA baseline sources cited in the platform-identification guide.
The collector never loads configs.ko. It reads /proc/config.gz only if the file is already available.
Step 1 — Validate the platform identity dependency
cd labs/orin-kernel-debugging/capture-software-baseline
platform="$HOME/kernel-lab/platform-identity-<UTC timestamp>"
../identify-orin-platform/scripts/validate-evidence.sh \
"$platform" ../identify-orin-platform/expected/required-files.txtDo not continue if the platform bundle checksum, model, architecture, or compatible checks fail. The software-baseline collector calls this same validator again and records its output.
Step 2 — Collect the software baseline
output="$HOME/kernel-lab/software-baseline-$(date -u +%Y%m%dT%H%M%SZ)"
scripts/collect-software-baseline.sh "$platform" "$output"
scripts/validate-software-baseline.sh "$output" expected/required-files.txtThe destination must be missing or empty. Expected final messages are:
software baseline collected: /home/<user>/kernel-lab/software-baseline-<timestamp>
software baseline validated: /home/<user>/kernel-lab/software-baseline-<timestamp>Step 3 — Check config provenance first
cat "$output/kernel-release.txt"
cat "$output/kernel-config-source.txt"
grep -E '^(CONFIG_LOCALVERSION|CONFIG_IKCONFIG|CONFIG_MODULES|CONFIG_OF)=' \
"$output/kernel-config.txt"The collector chooses exactly one config source:
- an explicit
CONFIG_OVERRIDEsupplied by the operator; - an already-readable
/proc/config.gz; /boot/config-$(uname -r).
kernel-config-source.txt records the chosen class, path, and fallback. A boot config may be stale if someone replaced Image without replacing its config, so source provenance matters as much as content.
Step 4 — Interpret each evidence file
| Evidence | What it constrains | What it does not prove |
|---|---|---|
platform-reference.txt | Exact platform identity bundle and manifest used | That the board has not changed since collection |
kernel-command-line.txt | Arguments visible to this running kernel | Which boot entry supplied them |
loaded-modules.txt | Modules loaded at collection time | All modules installed or previously loaded |
module-tree.txt | Relative regular files under this release's module tree | That each file matches the running image |
runtime-fdt.sha256 | Raw FDT blob exposed by the running kernel | Which on-disk DTB filename firmware selected |
boot-artifacts.sha256 | Hashes of candidate images, initramfs, DTB/DTBO, extlinux config | That any candidate was actually loaded |
boot-selection.txt | extlinux labels/default and supplied read-only UEFI state | Complete firmware decision history |
| package snapshots | Installed package/version database state | Which kernel or DTB booted |
Read the small files directly:
cat "$output/platform-reference.txt"
cat "$output/runtime-fdt.sha256"
cat "$output/boot-selection.txt"
cat "$output/boot-artifacts.sha256"Use none and unavailable differently: none means a readable module source was empty; unavailable means the source could not be read or no matching boot artifact was found. Validation rejects unavailable because the baseline is not yet sufficient for later deployment lessons.
Step 5 — Compare candidate boot state with runtime state
Ask three separate questions:
- Does
kernel-release.txtmatch the module-tree directory and package names? - Does the selected extlinux/UEFI evidence point at one of the hashed image and DTB candidates?
- Is there an operational record—such as a serial log or later boot evidence—that connects the selected entry to the runtime kernel/FDT?
This guide answers the first two as far as read-only files allow. It deliberately does not claim the third. File presence is not boot proof.
Step 6 — Verify integrity and archive
(cd "$output" && sha256sum -c SHA256SUMS)
tar -C "$(dirname "$output")" -caf "${output}.tar.xz" "$(basename "$output")"
sha256sum "${output}.tar.xz" > "${output}.tar.xz.sha256"Every manifest entry must report OK. Keep the platform and software baseline archives together; the path and manifest hash in platform-reference.txt preserve their relationship.
Failure decisions
- Platform identity validation fails: stop and repair provenance; never bypass it.
- Kernel config unavailable: obtain the correct config through a read-only source or explicit operator override; do not load a module in this S0 lesson.
- Runtime FDT unavailable: record the environment gap and stop; hashing an arbitrary on-disk DTB is not an equivalent substitute.
- Boot artifacts unavailable: identify the actual boot filesystem/mount before kernel, module, or DTB deployment work; do not search and hash the entire root filesystem.
- Package snapshot unavailable: restore access to
dpkg-query; do not copy package data from another machine.
Independent exercise
Use the fixture test to change one boot image, package version, and runtime FDT in separate runs. Identify the one evidence file that changes first, then show how its change propagates into top-level SHA256SUMS.
Completion checklist
- The platform identity validator output is present and successful.
- Kernel config source and fallback are explicit.
- Loaded and installed modules are not confused.
- Runtime FDT and boot candidate hashes are interpreted separately.
- Package lists are sorted package/version pairs.
SHA256SUMSverifies and the bundle is archived.- No output in the repository claims to be a real Orin capture.