jetson-validate-image
Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.
Install / Use
npx skills add NVIDIA/skills --skill jetson-validate-imageInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
OperationsSupported Platforms
Our assessment of jetson-validate-image
jetson-validate-image scores 95/100 on our quality scale, 88th of 487 Operations skills we index (top 19%).
Its SKILL.md is 14 KB long, well organised into 13 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
With 3,421 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 5 days ago, so jetson-validate-image is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-29. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
jetson-validate-image compared with similar skills
All 4 of these similar skills score higher than jetson-validate-image; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| jetson-validate-image (this skill)by NVIDIA | 95 | 3.4k | 5d ago | SKILL.md |
| LocalAIby mudler | 100 | 49.3k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 6d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 6d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 7d ago | SKILL.md |
Frequently asked questions
- How do I install jetson-validate-image?
- Run
npx skills add NVIDIA/skills --skill jetson-validate-image. The install tabs above show the steps for each supported agent. - Which AI agents does jetson-validate-image work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is jetson-validate-image safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is jetson-validate-image still maintained?
- The repository was last updated 5 days ago, so jetson-validate-image is actively maintained.
Skill content
View source on GitHubname: jetson-validate-image description: >- Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation. version: 0.0.1 license: "Apache-2.0" metadata: data-classification: public author: "Jetson Team" tags: - bsp - validation - test - deploy domain: meta
Validate BSP Image
Status: the DUT-access contract is stable; the rest of the validation procedure is a skeleton.
Purpose
Confirm that a freshly customized BSP landed correctly — both as a
static artifact on disk and as a running system on the target —
without re-promoting or re-flashing. Forms the validation tail of
Deploy in the Setup → Customize → Build → Deploy pipeline (see
../../context/bsp-customization-workflow.md
for the pipeline view) and is independently re-runnable.
Prerequisites
- Active target-platform profile with
bsp_image:resolved (run/jetson-init-imagefirst). - For static-only scope: nothing further; the skill reads
<bsp_image.root_path>directly. - For on-target scope:
/jetson-flash-imagealready pushed the staged BSP to the DUT.dut_access:block authored in the active profile (or filled interactively at runtime — see## DUT access).- Host tooling per transport:
ssh+sshpassfor SSH; Python 3.6+ withpyserialfor UART. - Required env vars resolvable on the host when
auth=passwordorsudo.method=password(password_env/sudo.password_envname the env var; never inline the secret in YAML).
When to invoke
- After
jetson-flash-imagehas put the BSP onto a target. - The user explicitly asks to validate, test, or run smoke / regression checks on a flashed device.
- As a CI gate before declaring a customization batch shippable.
Instructions
The procedure below is a skeleton.
- Read the active target per the prerequisite contract.
- Choose validation scope — static (against
bsp_imageon disk, no DUT needed) and/or on-target (DUT must be booted from the just-flashed image). - Static checks (if in scope):
- Required artifacts present at expected paths in
<bsp_image.root_path>/Linux_for_Tegra/. - DTB / module checksum or signature verification.
- Partition-layout sanity vs. the per-board
.conf's XML. - Cross-check overlay-staged outputs against
bsp_image(they should be identical post-promotion). - Initramfs ↔ kernel + rootfs module coherence. Extract
<bsp_image>/Linux_for_Tegra/bootloader/l4t_initrd.imgand<bsp_image>/Linux_for_Tegra/rootfs/boot/initrd; verify three invariants against the promotedbsp_imagestate: (a)<bsp_image>/Linux_for_Tegra/kernel/Imagematches<bsp_image>/Linux_for_Tegra/rootfs/boot/Imagebyte-for- byte — drift here means the "Mirror kernel Image into rootfs" step was skipped and any subsequent initramfs refresh built against the previous kernel. (b) for each module path the two initrd images ship, the bytes / md5 match the file under<bsp_image>/Linux_for_Tegra/rootfs/lib/modules/<ver>/— any drift means modules will be shadowed at early boot. (c) the vermagic stamped on every initramfs*.komatches theUTS_RELEASEreachable from<bsp_image>/Linux_for_Tegra/kernel/Image(e.g. parse theLinux version …string withstrings) — a vermagic skew means the kernelImagewas refreshed without rerunningl4t_update_initrd.sh, and modules will fail to load with "disagrees about version of symbol …". All three failure modes are closed by/jetson-promote-image's gate on eitherkernel/Imageorrootfs/lib/modules/plus the kernel-Image mirror; surface drift here and route the user back to a clean promote. See../jetson-promote-image/SKILL.md.
- Required artifacts present at expected paths in
- On-target checks (if in scope):
- Connect to the DUT per the
## DUT accesssection below — resolve transport (ssh / uart), credentials, and sudo method from the active profile'sdut_access:block (with interactive fallback when fields are missing / markedprompt), then run the connection probe and refuse if it fails. - Confirm boot reached userspace.
- Run the selected test suite (smoke, regression, focused per-customization, ad-hoc).
- Loaded-module srcversion drift. For modules a
customization is known to have rebuilt, compare
cat /sys/module/<name>/srcversionon the DUT against themodinfo /lib/modules/$(uname -r)/.../<name>.ko | awk '/srcversion/ {print $2}'reading. A mismatch means the kernel is running an older copy than the rootfs ships — almost always a stale initramfs (the bootloader-side initrd shipped a pre-customize module, it loaded first, and the rootfs copy cannot replace a live module). Recommend re-running/jetson-promote-imageand re-flashing. Note: some modules don't emitsrcversion; fall back to an md5 check against the binary the kernel loaded by extracting the region under/sys/module/<name>/sections/or by comparing behaviorally (printk / sysfs nodes / DT properties the new version is known to expose). - Running kernel vs. rootfs kernel
Image. Comparecat /proc/version(oruname -v) on the DUT against theLinux version …string extracted from/boot/Image(strings /boot/Image | grep -m1 'Linux version'). A mismatch — usually the build timestamp /LOCALVERSION— means the bootloader is running an older kernelImagethan the rootfs holds, almost certainly because a freshImagewas promoted but the initramfs /extlinux.conf/ QSPI boot partition wasn't refreshed. Modules in the rootfs will then have a different vermagic and any subsequentmodprobeof a built-against-the-new-kernel.kowill fail. Recommend/jetson-promote-imageand re-flash. - Userspace dmesg readability. Ubuntu 22.04 sets
kernel.dmesg_restrict=1; non-rootdmesgreads return "Operation not permitted" and silently zero hits. Everydmesg-based check must run withsudo(or temporarily lower the restriction viasudo sysctl kernel.dmesg_restrict=0). Surfacing this in the validate layer keeps printk-based customization checks honest. - Collect results, logs, artifacts.
- Connect to the DUT per the
- Summary: per-check pass/fail, overall verdict, where logs and artifacts landed.
DUT access
The on-target leg needs a way to reach the just-flashed DUT.
Two transports are supported as full peers: ssh (primary) and
uart (fallback for DUTs with no network).
The contract is locked in but lives in
references/dut-access.md to keep this
SKILL.md under the agent-routing budget. That reference covers:
- The
dut_access:profile schema (ssh, uart, sudo, workdir). - Resolution order (profile → env var → interactive prompt) with the full refusal-trigger table.
- The mandatory connection probe (
uname -r+cat /etc/nv_tegra_release) and its output-validation rules. - File transfer per transport (
scpvs. base64-over-tty, with the >100 KB warning). - Sudo invocation matrix per
sudo.method× transport. - UART implementation contract that
scripts/uart_session.pyhonors (state machines for login / exec / push / pull, exit codes, robustness notes). - Security notes (password handling, host-key pinning).
Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
| scripts/uart_session.py | UART transport black box for the on-target leg: login, command exec (with optional sudo), and base64-over-tty file transfer. Replaces ssh when the DUT has no network or ssh is broken. | --tty <dev> [--baud <n>] --user <name> --password-env <ENVVAR> [--sudo-password-env <ENVVAR>] [--shell-prompt <regex>] [--lock-strategy refuse\|wait] <probe\|exec\|push\|pull> [...] |
Invocation (the skill calls scripts as a subprocess — run_script()
in agent-runtime terminology):
# run_script: probe the DUT over UART
DUT_UART_PASSWORD_ENV=DUT_UART_PWD \
DUT_UART_PWD="$(read -rs -p 'UART login pw: '; echo "$REPLY")" \
scripts/uart_session.py \
--tty /dev/ttyACM0 --baud 115200 \
--user ubuntu --password-env DUT_UART_PASSWORD_ENV \
probe
# run_script: exec a sudo command and capture exit code
scripts/uart_session.py --tty /dev/ttyACM0 --user ubuntu \
--password-env DUT_UART_PASSWORD_ENV \
--sudo-password-env DUT_SUDO_PWD \
exec --use-sudo 'dmesg | tail -200'
The script's exit code is the contract — see the exit-code table in
UART implementation contract.
Examples
Static-only validation (no DUT needed):
/jetson-validate-image
> static checks only against the staged BSP
On-target validation over SSH after a freshly flashed DUT:
/jetson-flash-image
↓
/jetson-validate-image
> on-target checks via dut_access.ssh
On-target validation over UART (no network on the DUT):
/jetson-validate-image
> use the uart transport at /dev/ttyACM0; the dut_access.uart block
in the profile already has the tty and login_password_env wired up
Limitations
- Placeholder skill — only the DUT-access contract and the
uart_session.pyhelper are locked in. The static-check list, test-suite selection, result-sink layout, and pass/fail policy are tracked under## Open itemsand may change. - UART file transfer is byte-banged base64 at ~10 KB/s on 115200 baud — emits a warning for sources > 100 KB but proceeds. For high-volume transfers, switch to the SSH transport.
uart_session.pyopens and closes the tty per subcommand invocation (~1–2 s login per call). Validation passes running10 commands amortize poorly on UART; prefer SSH.
- SSH uses
StrictHostKeyChecking=accept-newwith a per-profileknown_hostsfile. A fingerprint change refuses — typically means the DUT was reflashed (host keys regenerated) or the IP was reassigned. Remove the per-profile entry manually rather than auto-accepting. - Passwords are never inlined in the profile YAML — only
password_env(env-var name) is persisted.auth=prompt/sudo.method=promptexposes the password in the conversation log, which is the user's responsibility to manage. transport=uartwithlock_strategy=stealis not implemented (would require sending control characters that could corrupt the holder's state).
Troubleshooting
| Error | Cause | Solution |
|---|---|---|
| no DUT transport configured (refuse) | On-target scope requested but dut_access.transport unresolved across profile / env / interactive prompt | Author dut_access: in the active profile, or rerun with static-only scope. |
| $PASSWORD_ENV is unset (refuse) | auth=password (or sudo.method=password) names an env var that isn't exported on the host | export <ENVVAR>=... before invoking the skill; do NOT inline the password in YAML. |
| tty held by another process (refuse, exit 3) | lock_strategy=refuse and fuser reports another holder (minicom, picocom, getty) | Close the holding process (sudo fuser -k <tty> only if you know what's there), or rerun with lock_strategy=wait. |
| pyserial import failed (exit 4) | UART transport selected but pyserial not installed in the skill's Python | apt install python3-serial or pip install pyserial
Truncated for display — read the full file on GitHub.
Related Skills
LocalAI
49.3kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
