[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71NNJ6MR6ASRVSAN13K1RDG":3,"skill-same:01M71NNJ6MR6ASRVSAN13K1RDG":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":14,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M71NNJ6MR6ASRVSAN13K1RDG","jetson-validate-image",null,"Use after jetson-flash-image to run static BSP checks, on-target smoke\u002Fregression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.","pattanation\u002FNorvik","pattanation","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235419268?v=4","01M71M5THHYYB15ME8R2E4FCZG","Patta","01M71M5TJM1NDM992M8PDKYR2K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"jetson validate image","validate","image","deploy","flash","public","validation","run","build","test","team","use","tests","triggers","Meta","static","regression","for","smoke","target","2026-11-10 10:56:23",false,"---\nname: jetson-validate-image\ndescription: >-\n  Use after jetson-flash-image to run static BSP checks, on-target\n  smoke\u002Fregression tests on a flashed DUT, or both. Not for build\n  or flash steps. Triggers: validate bsp, on-target validation.\nversion: 0.0.1\nlicense: \"Apache-2.0\"\nmetadata:\n  data-classification: public\n  author: \"Jetson Team\"\n  tags:\n    - bsp\n    - validation\n    - test\n    - deploy\n  domain: meta\n---\n\n# Validate BSP Image\n\n> **Status:** the DUT-access contract is stable; the rest of the\n> validation procedure is a skeleton.\n\n## Purpose\n\nConfirm that a freshly customized BSP landed correctly — both as a\nstatic artifact on disk and as a running system on the target —\nwithout re-promoting or re-flashing. Forms the **validation tail of\nDeploy** in the Setup → Customize → Build → Deploy pipeline (see\n[`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md)\nfor the pipeline view) and is independently re-runnable.\n\n## Prerequisites\n\n- Active target-platform profile with `bsp_image:` resolved (run\n  `\u002Fjetson-init-image` first).\n- For static-only scope: nothing further; the skill reads\n  `\u003Cbsp_image.root_path>` directly.\n- For on-target scope:\n  - `\u002Fjetson-flash-image` already pushed the staged BSP to the DUT.\n  - `dut_access:` block authored in the active profile (or filled\n    interactively at runtime — see [`## DUT access`](#dut-access)).\n  - Host tooling per transport: `ssh` + `sshpass` for SSH; Python\n    3.6+ with `pyserial` for UART.\n  - Required env vars resolvable on the host when `auth=password`\n    or `sudo.method=password` (`password_env` \u002F `sudo.password_env`\n    name the env var; never inline the secret in YAML).\n\n## When to invoke\n\n- After `jetson-flash-image` has put the BSP onto a target.\n- The user explicitly asks to validate, test, or run smoke \u002F\n  regression checks on a flashed device.\n- As a CI gate before declaring a customization batch shippable.\n\n## Instructions\n\nThe procedure below is a skeleton.\n\n1. **Read the active target** per the prerequisite contract.\n2. **Choose validation scope** — static (against `bsp_image` on\n   disk, no DUT needed) and\u002For on-target (DUT must be booted\n   from the just-flashed image).\n3. **Static checks** (if in scope):\n     - Required artifacts present at expected paths in\n       `\u003Cbsp_image.root_path>\u002FLinux_for_Tegra\u002F`.\n     - DTB \u002F module checksum or signature verification.\n     - Partition-layout sanity vs. the per-board `.conf`'s XML.\n     - Cross-check overlay-staged outputs against `bsp_image`\n       (they should be identical post-promotion).\n     - **Initramfs ↔ kernel + rootfs module coherence.** Extract\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fbootloader\u002Fl4t_initrd.img` and\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Frootfs\u002Fboot\u002Finitrd`; verify\n       three invariants against the *promoted* `bsp_image` state:\n       (a) `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fkernel\u002FImage` matches\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Frootfs\u002Fboot\u002FImage` byte-for-\n       byte — drift here means\n       [the \"Mirror kernel Image into rootfs\" step](..\u002Fjetson-promote-image\u002FSKILL.md#mirror-kernel-image-into-rootfs-when-kernel-changed)\n       was skipped and any subsequent initramfs refresh built\n       against the previous kernel.\n       (b) for each module path the two initrd images ship, the\n       bytes \u002F md5 match the file under\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Frootfs\u002Flib\u002Fmodules\u002F\u003Cver>\u002F` —\n       any drift means modules will be shadowed at early boot.\n       (c) the vermagic stamped on every initramfs `*.ko` matches\n       the `UTS_RELEASE` reachable from\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fkernel\u002FImage` (e.g. parse the\n       `Linux version …` string with `strings`) — a vermagic skew\n       means the kernel `Image` was refreshed without rerunning\n       `l4t_update_initrd.sh`, and modules will fail to load with\n       \"disagrees about version of symbol …\". All three failure\n       modes are closed by `\u002Fjetson-promote-image`'s gate on\n       either `kernel\u002FImage` or `rootfs\u002Flib\u002Fmodules\u002F` plus the\n       kernel-Image mirror; surface drift here and route the user\n       back to a clean promote. See\n       [`..\u002Fjetson-promote-image\u002FSKILL.md`](..\u002Fjetson-promote-image\u002FSKILL.md#refresh-initramfs-when-kernel-or-modules-changed).\n4. **On-target checks** (if in scope):\n     - **Connect to the DUT** per the [`## DUT access`](#dut-access)\n       section below — resolve transport (ssh \u002F uart), credentials,\n       and sudo method from the active profile's `dut_access:`\n       block (with interactive fallback when fields are missing \u002F\n       marked `prompt`), then run the connection probe and refuse\n       if it fails.\n     - Confirm boot reached userspace.\n     - Run the selected test suite (smoke, regression, focused\n       per-customization, ad-hoc).\n     - **Loaded-module srcversion drift.** For modules a\n       customization is known to have rebuilt, compare\n       `cat \u002Fsys\u002Fmodule\u002F\u003Cname>\u002Fsrcversion` on the DUT against the\n       `modinfo \u002Flib\u002Fmodules\u002F$(uname -r)\u002F...\u002F\u003Cname>.ko | awk\n       '\u002Fsrcversion\u002F {print $2}'` reading. A mismatch means the\n       kernel is running an older copy than the rootfs ships —\n       almost always a stale initramfs (the bootloader-side initrd\n       shipped a pre-customize module, it loaded first, and the\n       rootfs copy cannot replace a live module). Recommend\n       re-running `\u002Fjetson-promote-image` and re-flashing. Note:\n       some modules don't emit `srcversion`; fall back to an md5\n       check against the binary the kernel loaded by extracting the\n       region under `\u002Fsys\u002Fmodule\u002F\u003Cname>\u002Fsections\u002F` or by comparing\n       behaviorally (printk \u002F sysfs nodes \u002F DT properties the new\n       version is known to expose).\n     - **Running kernel vs. rootfs kernel `Image`.** Compare\n       `cat \u002Fproc\u002Fversion` (or `uname -v`) on the DUT against the\n       `Linux version …` string extracted from\n       `\u002Fboot\u002FImage` (`strings \u002Fboot\u002FImage | grep -m1 'Linux version'`).\n       A mismatch — usually the build timestamp \u002F `LOCALVERSION` —\n       means the bootloader is running an older kernel `Image` than\n       the rootfs holds, almost certainly because a fresh `Image`\n       was promoted but the initramfs \u002F `extlinux.conf` \u002F QSPI\n       boot partition wasn't refreshed. Modules in the rootfs\n       will then have a different vermagic and any subsequent\n       `modprobe` of a built-against-the-new-kernel `.ko` will\n       fail. Recommend `\u002Fjetson-promote-image` and re-flash.\n     - **Userspace dmesg readability.** Ubuntu 22.04 sets\n       `kernel.dmesg_restrict=1`; non-root `dmesg` reads return\n       \"Operation not permitted\" and silently zero hits. Every\n       `dmesg`-based check must run with `sudo` (or temporarily\n       lower the restriction via `sudo sysctl\n       kernel.dmesg_restrict=0`). Surfacing this in the validate\n       layer keeps printk-based customization checks honest.\n     - Collect results, logs, artifacts.\n5. **Summary**: per-check pass\u002Ffail, overall verdict, where\n   logs and artifacts landed.\n\n## DUT access\n\nThe on-target leg needs a way to reach the just-flashed DUT.\nTwo transports are supported as full peers: `ssh` (primary) and\n`uart` (fallback for DUTs with no network).\n\nThe contract is locked in but lives in\n[`references\u002Fdut-access.md`](references\u002Fdut-access.md) to keep this\nSKILL.md under the agent-routing budget. That reference covers:\n\n- The `dut_access:` profile schema (ssh, uart, sudo, workdir).\n- Resolution order (profile → env var → interactive prompt) with\n  the full refusal-trigger table.\n- The mandatory connection probe (`uname -r` +\n  `cat \u002Fetc\u002Fnv_tegra_release`) and its output-validation rules.\n- File transfer per transport (`scp` vs. base64-over-tty, with\n  the >100 KB warning).\n- Sudo invocation matrix per `sudo.method` × transport.\n- UART implementation contract that `scripts\u002Fuart_session.py`\n  honors (state machines for login \u002F exec \u002F push \u002F pull, exit\n  codes, robustness notes).\n- Security notes (password handling, host-key pinning).\n\n## Available Scripts\n\n| Script | Purpose | Arguments |\n|---|---|---|\n| `scripts\u002Fuart_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 \u003Cdev> [--baud \u003Cn>] --user \u003Cname> --password-env \u003CENVVAR> [--sudo-password-env \u003CENVVAR>] [--shell-prompt \u003Cregex>] [--lock-strategy refuse\\|wait] \u003Cprobe\\|exec\\|push\\|pull> [...]` |\n\nInvocation (the skill calls scripts as a subprocess — `run_script()`\nin agent-runtime terminology):\n\n```bash\n# run_script: probe the DUT over UART\nDUT_UART_PASSWORD_ENV=DUT_UART_PWD \\\nDUT_UART_PWD=\"$(read -rs -p 'UART login pw: '; echo \"$REPLY\")\" \\\n  scripts\u002Fuart_session.py \\\n    --tty \u002Fdev\u002FttyACM0 --baud 115200 \\\n    --user ubuntu --password-env DUT_UART_PASSWORD_ENV \\\n    probe\n\n# run_script: exec a sudo command and capture exit code\nscripts\u002Fuart_session.py --tty \u002Fdev\u002FttyACM0 --user ubuntu \\\n  --password-env DUT_UART_PASSWORD_ENV \\\n  --sudo-password-env DUT_SUDO_PWD \\\n  exec --use-sudo 'dmesg | tail -200'\n```\n\nThe script's exit code is the contract — see the exit-code table in\n[`UART implementation contract`](references\u002Fdut-access.md#uart-implementation-contract).\n\n## Examples\n\nStatic-only validation (no DUT needed):\n\n```\n\u002Fjetson-validate-image\n> static checks only against the staged BSP\n```\n\nOn-target validation over SSH after a freshly flashed DUT:\n\n```\n\u002Fjetson-flash-image\n   ↓\n\u002Fjetson-validate-image\n> on-target checks via dut_access.ssh\n```\n\nOn-target validation over UART (no network on the DUT):\n\n```\n\u002Fjetson-validate-image\n> use the uart transport at \u002Fdev\u002FttyACM0; the dut_access.uart block\n  in the profile already has the tty and login_password_env wired up\n```\n\n## Limitations\n\n- Placeholder skill — only the DUT-access contract and the\n  `uart_session.py` helper are locked in. The static-check list,\n  test-suite selection, result-sink layout, and pass\u002Ffail policy\n  are tracked under `## Open items` and may change.\n- UART file transfer is byte-banged base64 at ~10 KB\u002Fs on 115200\n  baud — emits a warning for sources > 100 KB but proceeds. For\n  high-volume transfers, switch to the SSH transport.\n- `uart_session.py` opens and closes the tty per subcommand\n  invocation (~1–2 s login per call). Validation passes running\n  > 10 commands amortize poorly on UART; prefer SSH.\n- SSH uses `StrictHostKeyChecking=accept-new` with a per-profile\n  `known_hosts` file. A fingerprint change refuses — typically\n  means the DUT was reflashed (host keys regenerated) or the IP\n  was reassigned. Remove the per-profile entry manually rather\n  than auto-accepting.\n- Passwords are never inlined in the profile YAML — only\n  `password_env` (env-var name) is persisted. `auth=prompt` \u002F\n  `sudo.method=prompt` exposes the password in the conversation\n  log, which is the user's responsibility to manage.\n- `transport=uart` with `lock_strategy=steal` is **not implemented**\n  (would require sending control characters that could corrupt the\n  holder's state).\n\n## Troubleshooting\n\n| Error | Cause | Solution |\n|---|---|---|\n| `no DUT transport configured` (refuse) | On-target scope requested but `dut_access.transport` unresolved across profile \u002F env \u002F interactive prompt | Author `dut_access:` in the active profile, or rerun with static-only scope. |\n| `$PASSWORD_ENV is unset` (refuse) | `auth=password` (or `sudo.method=password`) names an env var that isn't exported on the host | `export \u003CENVVAR>=...` before invoking the skill; do NOT inline the password in YAML. |\n| `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 \u003Ctty>` only if you know what's there), or rerun with `lock_strategy=wait`. |\n| `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`. |\n| SSH fingerprint refused | DUT's host keys changed since the per-profile `known_hosts` was pinned (typically a reflash) | Remove the matching line from `\u003Cworkspace>\u002Ftarget-platform\u002F\u003Cprofile-stem>.known_hosts` and rerun — the new key will be accepted on first connect. |\n| `login failed` (exit 128) | UART probe couldn't match a login or shell prompt within timeout | Confirm the DUT is powered + booted to userspace; check `--shell-prompt` override if the DUT carries an unusual `PS1`; verify the `--user` matches a real account. |\n| `DUT not booted from the just-flashed BSP` (warn \u002F refuse) | `\u002Fetc\u002Fnv_tegra_release` on the DUT doesn't match `bsp_image.version` | Re-run `\u002Fjetson-flash-image` and confirm the DUT actually power-cycled into the new BSP, not the previous one. |\n| `sudo prompt detected but no sudo password configured` (exit 130) | `--use-sudo` passed to `uart_session.py exec` but `--sudo-password-env` not set, and DUT user lacks NOPASSWD | Set `sudo.method=password` + `sudo.password_env` in the profile, or grant NOPASSWD on the DUT via `\u002Fetc\u002Fsudoers.d\u002F`. |\n| `command timed out` (exit 129) | Long-running DUT command exceeded the script's timeout | Run the command directly via `ssh` transport, or split into shorter steps. |\n\n## References\n\n- [`references\u002Fdut-access.md`](references\u002Fdut-access.md) — full DUT-access contract: profile schema, resolution order, probe, file transfer, sudo, UART implementation, security.\n- [`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md) — target-platform contract.\n- [`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md#workflow-invariants) — Workspace edit protocol (this skill is the Deploy tail).\n- [`..\u002Fjetson-build-source\u002FSKILL.md`](..\u002Fjetson-build-source\u002FSKILL.md) — Build builder; produces the artifacts this skill validates.\n","# Validate BSP Image\n\n> **Status:** the DUT-access contract is stable; the rest of the\n> validation procedure is a skeleton.\n\n## Purpose\n\nConfirm that a freshly customized BSP landed correctly — both as a\nstatic artifact on disk and as a running system on the target —\nwithout re-promoting or re-flashing. Forms the **validation tail of\nDeploy** in the Setup → Customize → Build → Deploy pipeline (see\n[`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md)\nfor the pipeline view) and is independently re-runnable.\n\n## Prerequisites\n\n- Active target-platform profile with `bsp_image:` resolved (run\n  `\u002Fjetson-init-image` first).\n- For static-only scope: nothing further; the skill reads\n  `\u003Cbsp_image.root_path>` directly.\n- For on-target scope:\n  - `\u002Fjetson-flash-image` already pushed the staged BSP to the DUT.\n  - `dut_access:` block authored in the active profile (or filled\n    interactively at runtime — see [`## DUT access`](#dut-access)).\n  - Host tooling per transport: `ssh` + `sshpass` for SSH; Python\n    3.6+ with `pyserial` for UART.\n  - Required env vars resolvable on the host when `auth=password`\n    or `sudo.method=password` (`password_env` \u002F `sudo.password_env`\n    name the env var; never inline the secret in YAML).\n\n## When to invoke\n\n- After `jetson-flash-image` has put the BSP onto a target.\n- The user explicitly asks to validate, test, or run smoke \u002F\n  regression checks on a flashed device.\n- As a CI gate before declaring a customization batch shippable.\n\n## Instructions\n\nThe procedure below is a skeleton.\n\n1. **Read the active target** per the prerequisite contract.\n2. **Choose validation scope** — static (against `bsp_image` on\n   disk, no DUT needed) and\u002For on-target (DUT must be booted\n   from the just-flashed image).\n3. **Static checks** (if in scope):\n     - Required artifacts present at expected paths in\n       `\u003Cbsp_image.root_path>\u002FLinux_for_Tegra\u002F`.\n     - DTB \u002F module checksum or signature verification.\n     - Partition-layout sanity vs. the per-board `.conf`'s XML.\n     - Cross-check overlay-staged outputs against `bsp_image`\n       (they should be identical post-promotion).\n     - **Initramfs ↔ kernel + rootfs module coherence.** Extract\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fbootloader\u002Fl4t_initrd.img` and\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Frootfs\u002Fboot\u002Finitrd`; verify\n       three invariants against the *promoted* `bsp_image` state:\n       (a) `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fkernel\u002FImage` matches\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Frootfs\u002Fboot\u002FImage` byte-for-\n       byte — drift here means\n       [the \"Mirror kernel Image into rootfs\" step](..\u002Fjetson-promote-image\u002FSKILL.md#mirror-kernel-image-into-rootfs-when-kernel-changed)\n       was skipped and any subsequent initramfs refresh built\n       against the previous kernel.\n       (b) for each module path the two initrd images ship, the\n       bytes \u002F md5 match the file under\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Frootfs\u002Flib\u002Fmodules\u002F\u003Cver>\u002F` —\n       any drift means modules will be shadowed at early boot.\n       (c) the vermagic stamped on every initramfs `*.ko` matches\n       the `UTS_RELEASE` reachable from\n       `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fkernel\u002FImage` (e.g. parse the\n       `Linux version …` string with `strings`) — a vermagic skew\n       means the kernel `Image` was refreshed without rerunning\n       `l4t_update_initrd.sh`, and modules will fail to load with\n       \"disagrees about version of symbol …\". All three failure\n       modes are closed by `\u002Fjetson-promote-image`'s gate on\n       either `kernel\u002FImage` or `rootfs\u002Flib\u002Fmodules\u002F` plus the\n       kernel-Image mirror; surface drift here and route the user\n       back to a clean promote. See\n       [`..\u002Fjetson-promote-image\u002FSKILL.md`](..\u002Fjetson-promote-image\u002FSKILL.md#refresh-initramfs-when-kernel-or-modules-changed).\n4. **On-target checks** (if in scope):\n     - **Connect to the DUT** per the [`## DUT access`](#dut-access)\n       section below — resolve transport (ssh \u002F uart), credentials,\n       and sudo method from the active profile's `dut_access:`\n       block (with interactive fallback when fields are missing \u002F\n       marked `prompt`), then run the connection probe and refuse\n       if it fails.\n     - Confirm boot reached userspace.\n     - Run the selected test suite (smoke, regression, focused\n       per-customization, ad-hoc).\n     - **Loaded-module srcversion drift.** For modules a\n       customization is known to have rebuilt, compare\n       `cat \u002Fsys\u002Fmodule\u002F\u003Cname>\u002Fsrcversion` on the DUT against the\n       `modinfo \u002Flib\u002Fmodules\u002F$(uname -r)\u002F...\u002F\u003Cname>.ko | awk\n       '\u002Fsrcversion\u002F {print $2}'` reading. A mismatch means the\n       kernel is running an older copy than the rootfs ships —\n       almost always a stale initramfs (the bootloader-side initrd\n       shipped a pre-customize module, it loaded first, and the\n       rootfs copy cannot replace a live module). Recommend\n       re-running `\u002Fjetson-promote-image` and re-flashing. Note:\n       some modules don't emit `srcversion`; fall back to an md5\n       check against the binary the kernel loaded by extracting the\n       region under `\u002Fsys\u002Fmodule\u002F\u003Cname>\u002Fsections\u002F` or by comparing\n       behaviorally (printk \u002F sysfs nodes \u002F DT properties the new\n       version is known to expose).\n     - **Running kernel vs. rootfs kernel `Image`.** Compare\n       `cat \u002Fproc\u002Fversion` (or `uname -v`) on the DUT against the\n       `Linux version …` string extracted from\n       `\u002Fboot\u002FImage` (`strings \u002Fboot\u002FImage | grep -m1 'Linux version'`).\n       A mismatch — usually the build timestamp \u002F `LOCALVERSION` —\n       means the bootloader is running an older kernel `Image` than\n       the rootfs holds, almost certainly because a fresh `Image`\n       was promoted but the initramfs \u002F `extlinux.conf` \u002F QSPI\n       boot partition wasn't refreshed. Modules in the rootfs\n       will then have a different vermagic and any subsequent\n       `modprobe` of a built-against-the-new-kernel `.ko` will\n       fail. Recommend `\u002Fjetson-promote-image` and re-flash.\n     - **Userspace dmesg readability.** Ubuntu 22.04 sets\n       `kernel.dmesg_restrict=1`; non-root `dmesg` reads return\n       \"Operation not permitted\" and silently zero hits. Every\n       `dmesg`-based check must run with `sudo` (or temporarily\n       lower the restriction via `sudo sysctl\n       kernel.dmesg_restrict=0`). Surfacing this in the validate\n       layer keeps printk-based customization checks honest.\n     - Collect results, logs, artifacts.\n5. **Summary**: per-check pass\u002Ffail, overall verdict, where\n   logs and artifacts landed.\n\n## DUT access\n\nThe on-target leg needs a way to reach the just-flashed DUT.\nTwo transports are supported as full peers: `ssh` (primary) and\n`uart` (fallback for DUTs with no network).\n\nThe contract is locked in but lives in\n[`references\u002Fdut-access.md`](references\u002Fdut-access.md) to keep this\nSKILL.md under the agent-routing budget. That reference covers:\n\n- The `dut_access:` profile schema (ssh, uart, sudo, workdir).\n- Resolution order (profile → env var → interactive prompt) with\n  the full refusal-trigger table.\n- The mandatory connection probe (`uname -r` +\n  `cat \u002Fetc\u002Fnv_tegra_release`) and its output-validation rules.\n- File transfer per transport (`scp` vs. base64-over-tty, with\n  the >100 KB warning).\n- Sudo invocation matrix per `sudo.method` × transport.\n- UART implementation contract that `scripts\u002Fuart_session.py`\n  honors (state machines for login \u002F exec \u002F push \u002F pull, exit\n  codes, robustness notes).\n- Security notes (password handling, host-key pinning).\n\n## Available Scripts\n\n| Script | Purpose | Arguments |\n|---|---|---|\n| `scripts\u002Fuart_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 \u003Cdev> [--baud \u003Cn>] --user \u003Cname> --password-env \u003CENVVAR> [--sudo-password-env \u003CENVVAR>] [--shell-prompt \u003Cregex>] [--lock-strategy refuse\\|wait] \u003Cprobe\\|exec\\|push\\|pull> [...]` |\n\nInvocation (the skill calls scripts as a subprocess — `run_script()`\nin agent-runtime terminology):\n\n```bash\n# run_script: probe the DUT over UART\nDUT_UART_PASSWORD_ENV=DUT_UART_PWD \\\nDUT_UART_PWD=\"$(read -rs -p 'UART login pw: '; echo \"$REPLY\")\" \\\n  scripts\u002Fuart_session.py \\\n    --tty \u002Fdev\u002FttyACM0 --baud 115200 \\\n    --user ubuntu --password-env DUT_UART_PASSWORD_ENV \\\n    probe\n\n# run_script: exec a sudo command and capture exit code\nscripts\u002Fuart_session.py --tty \u002Fdev\u002FttyACM0 --user ubuntu \\\n  --password-env DUT_UART_PASSWORD_ENV \\\n  --sudo-password-env DUT_SUDO_PWD \\\n  exec --use-sudo 'dmesg | tail -200'\n```\n\nThe script's exit code is the contract — see the exit-code table in\n[`UART implementation contract`](references\u002Fdut-access.md#uart-implementation-contract).\n\n## Examples\n\nStatic-only validation (no DUT needed):\n\n```\n\u002Fjetson-validate-image\n> static checks only against the staged BSP\n```\n\nOn-target validation over SSH after a freshly flashed DUT:\n\n```\n\u002Fjetson-flash-image\n   ↓\n\u002Fjetson-validate-image\n> on-target checks via dut_access.ssh\n```\n\nOn-target validation over UART (no network on the DUT):\n\n```\n\u002Fjetson-validate-image\n> use the uart transport at \u002Fdev\u002FttyACM0; the dut_access.uart block\n  in the profile already has the tty and login_password_env wired up\n```\n\n## Limitations\n\n- Placeholder skill — only the DUT-access contract and the\n  `uart_session.py` helper are locked in. The static-check list,\n  test-suite selection, result-sink layout, and pass\u002Ffail policy\n  are tracked under `## Open items` and may change.\n- UART file transfer is byte-banged base64 at ~10 KB\u002Fs on 115200\n  baud — emits a warning for sources > 100 KB but proceeds. For\n  high-volume transfers, switch to the SSH transport.\n- `uart_session.py` opens and closes the tty per subcommand\n  invocation (~1–2 s login per call). Validation passes running\n  > 10 commands amortize poorly on UART; prefer SSH.\n- SSH uses `StrictHostKeyChecking=accept-new` with a per-profile\n  `known_hosts` file. A fingerprint change refuses — typically\n  means the DUT was reflashed (host keys regenerated) or the IP\n  was reassigned. Remove the per-profile entry manually rather\n  than auto-accepting.\n- Passwords are never inlined in the profile YAML — only\n  `password_env` (env-var name) is persisted. `auth=prompt` \u002F\n  `sudo.method=prompt` exposes the password in the conversation\n  log, which is the user's responsibility to manage.\n- `transport=uart` with `lock_strategy=steal` is **not implemented**\n  (would require sending control characters that could corrupt the\n  holder's state).\n\n## Troubleshooting\n\n| Error | Cause | Solution |\n|---|---|---|\n| `no DUT transport configured` (refuse) | On-target scope requested but `dut_access.transport` unresolved across profile \u002F env \u002F interactive prompt | Author `dut_access:` in the active profile, or rerun with static-only scope. |\n| `$PASSWORD_ENV is unset` (refuse) | `auth=password` (or `sudo.method=password`) names an env var that isn't exported on the host | `export \u003CENVVAR>=...` before invoking the skill; do NOT inline the password in YAML. |\n| `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 \u003Ctty>` only if you know what's there), or rerun with `lock_strategy=wait`. |\n| `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`. |\n| SSH fingerprint refused | DUT's host keys changed since the per-profile `known_hosts` was pinned (typically a reflash) | Remove the matching line from `\u003Cworkspace>\u002Ftarget-platform\u002F\u003Cprofile-stem>.known_hosts` and rerun — the new key will be accepted on first connect. |\n| `login failed` (exit 128) | UART probe couldn't match a login or shell prompt within timeout | Confirm the DUT is powered + booted to userspace; check `--shell-prompt` override if the DUT carries an unusual `PS1`; verify the `--user` matches a real account. |\n| `DUT not booted from the just-flashed BSP` (warn \u002F refuse) | `\u002Fetc\u002Fnv_tegra_release` on the DUT doesn't match `bsp_image.version` | Re-run `\u002Fjetson-flash-image` and confirm the DUT actually power-cycled into the new BSP, not the previous one. |\n| `sudo prompt detected but no sudo password configured` (exit 130) | `--use-sudo` passed to `uart_session.py exec` but `--sudo-password-env` not set, and DUT user lacks NOPASSWD | Set `sudo.method=password` + `sudo.password_env` in the profile, or grant NOPASSWD on the DUT via `\u002Fetc\u002Fsudoers.d\u002F`. |\n| `command timed out` (exit 129) | Long-running DUT command exceeded the script's timeout | Run the command directly via `ssh` transport, or split into shorter steps. |\n\n## References\n\n- [`references\u002Fdut-access.md`](references\u002Fdut-access.md) — full DUT-access contract: profile schema, resolution order, probe, file transfer, sudo, UART implementation, security.\n- [`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md) — target-platform contract.\n- [`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md#workflow-invariants) — Workspace edit protocol (this skill is the Deploy tail).\n- [`..\u002Fjetson-build-source\u002FSKILL.md`](..\u002Fjetson-build-source\u002FSKILL.md) — Build builder; produces the artifacts this skill validates.\n",{"name":5,"license":15,"version":44,"metadata":45,"description":7},"0.0.1",{"tags":46,"author":48,"domain":49,"data-classification":24},[47,25,28,22],"bsp","Jetson Team","meta","claude\u002Finstall-gsd-build-foQdV","d86cd127f527124b5fd0fd0bc679a4d79b7d01d7",".agents\u002Fskills\u002Fjetson-validate-image","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik","https:\u002F\u002Fnorvik-orpin.vercel.app","https:\u002F\u002Fgithub.com\u002Fpattanation","2026-07-17 11:17:04",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add pattanation\u002FNorvik --skill jetson-validate-image",{"tool":63,"command":64},"bunx","bunx skills add pattanation\u002FNorvik --skill jetson-validate-image",{"tool":66,"command":67},"pnpm","pnpm dlx skills add pattanation\u002FNorvik --skill jetson-validate-image","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002FSKILL.md",true,[71,77,81,85,91,95],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"BENCHMARK.md","REFERENCE","参考文档",3571,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002FBENCHMARK.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fevals.json",4130,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002Fevals\u002Fevals.json",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fdut-access.md",15324,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002Freferences\u002Fdut-access.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fuart_session.py","SCRIPT","脚本",25628,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002Fscripts\u002Fuart_session.py",{"path":92,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":93,"sourceHtmlUrl":94},"skill-card.md",3585,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002Fskill-card.md",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"skill.oms.sig","OTHER","其他",5061,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-validate-image\u002Fskill.oms.sig",[102,110,117,124,149,173],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":109},"01M73Z1NPMJ667E0DSPBS9FH0B","jetson-set-target","Switch the active Jetson target-platform pointer to an existing profile YAML. Use before customize\u002Fbuild\u002Fflash to change target; not for authoring profiles — use jetson-init-target instead.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-set-target\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":109},"01M73YC29YWGCW521P7B0NM3HQ","earth2studio-data-fetch","Fetch weather\u002Fclimate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-data-fetch\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":109},"01M73YBNHMHFDFP83MAVGQQ92N","earth2studio-create-datasource","Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-create-datasource\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":148},"01M71QDV4DM8T19HEHWATEF1K4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[132,133,134,135,136,36,137,138,139,140,141,142,143,144,145,146,147],"webapp","testing","webapp testing","local","screenshots","applications","browser","ui","behavior","web","playwright","with","frontend","debugging","toolkit","logs","2026-11-10 13:02:02",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":153,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":148},"01M71QDH2GGMXGA9105C9W1N7B","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[157,141,158,159,160,161,162,163,164,165,166,167,36,168,169,144,170,30,171,172],"web artifacts builder","artifacts","artifacts builder","builder","multi","state","routing","state management","react","single-file","css","Tailwind","ui components","single","file","components",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":177,"licenseFileUrl":178,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":148},"01M71QD9T2XC3EWMQNN9ACNWQ1","vueuse-functions","Apply VueUse composables where appropriate to build concise, maintainable Vue.js \u002F Nuxt features.","MIT","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FSKILL.md",[],[182,183,184,185,186,187,188,189,190,27,191,192,193,194],"vueuse","vueuse functions","functions","composables","project","nuxt","apply","github","concise","https","features","vue","js"]