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…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
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:
- Connect to the DUT per the
Установить jetson-validate-image в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл jetson-validate-image?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jetson-validate-image запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic