npx skills add ...
npx skills add nvidia/skills --skill jetson-print-bsp-info
Use when you need to print Jetson BSP info (L4T version, board configs, rootfs state) from a Linux_for_Tegra root on the host PC. This is an example skill.
npx skills add nvidia/skills --skill jetson-print-bsp-info
Prints a concise summary of a Jetson Linux_for_Tegra (BSP) tree on the host PC.
This skill is intended as a reference example for the jetson-bsp-skills repo and the NVIDIA-wide skills CI. It performs read-only inspection — no flashing, no rootfs changes.
Capture a baseline snapshot of a Linux_for_Tegra BSP tree (release, board configs, rootfs state) before flashing, so issues like "wrong L4T version" or "rootfs never populated" are caught early.
Linux_for_Tegra/ directory looks valid (expected scripts and config files present).Linux_for_Tegra/ directory extracted from a Jetson BSP tarball.ls, head, cat, paste, sed.L4T_ROOT (optional): absolute path to the Linux_for_Tegra/ directory. If unset, use the current working directory.Run each step in order and print the captured values into the report shown under Output format.
L4T_ROOT and validate the directory is a Linux_for_Tegra root — exit early otherwise. flash.sh and nv_tegra/ are the two anchor artifacts that every BSP ships:
nv_tegra/nv_tegra_release; the same file is copied into the rootfs by apply_binaries.sh. Only the first line is useful — the rest is a long list of library SHAs:
rootfs/ means apply_binaries.sh has not been run yet:
Print a short report with these sections, one line each where possible:
Example output on an Orin AGX BSP (L4T R36):
Example output on a freshly untarred BSP where apply_binaries.sh has not been run yet:
Each command falls back to a clearly labeled "... not found" string if the underlying file is missing — the skill never errors out mid-report. If L4T_ROOT does not contain flash.sh and nv_tegra/, exit early with a clear "not a Linux_for_Tegra root" message rather than printing misleading info.
rootfs/etc/passwd as a populated-rootfs proxy; will not detect a half-populated rootfs.*.conf board configs in L4T_ROOT/; does not try to infer which one the user intends to flash.Error: Not a Linux_for_Tegra root: '...' (missing flash.sh or nv_tegra/)
Cause: L4T_ROOT points at a parent directory, an extracted rootfs, or an unrelated path.
Solution: Point L4T_ROOT at the directory that contains flash.sh (typically Linux_for_Tegra/).
Error: L4T release info not found
Cause: Neither nv_tegra/nv_tegra_release nor rootfs/etc/nv_tegra_release exists — the BSP tarball may be incomplete or apply_binaries.sh was never run.
Solution: Re-extract the BSP tarball or run apply_binaries.sh to populate the rootfs.