Skip to main content
skill CX Codex

jetson-print-bsp-info — Claude Code skill: how to install & use

Inspects an unpacked Linux_for_Tegra BSP tree on a Linux host PC before flashing. Reports the L4T release version and rootfs state.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add NVIDIA/skills --skill jetson-print-bsp-info -a claude-code
Open on GitHub

What jetson-print-bsp-info does

This skill runs read-only checks on a Linux_for_Tegra tree on a Linux host. It validates the root path by looking for flash.sh and nv_tegra/. Missing files trigger an immediate stop. This prevents misleading reports on incorrect folders.

Next, it extracts the L4T release header from nv_tegra/nv_tegra_release. It also formats all *.conf files into a single line. The file rootfs/etc/passwd acts as a quick rootfs indicator. A missing passwd file confirms that apply_binaries.sh never ran.

The commands use standard host tools such as ls, head, paste, and sed. The skill does not check kernel signatures or device-tree overlays. Because it only checks for passwd, a half-populated rootfs still passes inspection without warnings.

What it helps with

  • check the L4T release version in an unpacked Linux_for_Tegra tree
  • verify whether apply_binaries.sh populated the rootfs
  • list all board configuration files (*.conf) in a BSP directory
  • catch missing BSP root artifacts before flashing a Jetson device

Example prompts for the agent

  • Check the Linux_for_Tegra directory in /tmp/Linux_for_Tegra and show the BSP release
  • Verify if the rootfs is populated and list all board configs for this Jetson tree

How to install jetson-print-bsp-info

1Skills CLI (Vercel)

npx skills add NVIDIA/skills --skill jetson-print-bsp-info -a claude-code

2Manually: put the files in place

~/.claude/skills/jetson-print-bsp-info/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/jetson-print-bsp-info/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about jetson-print-bsp-info

How to install jetson-print-bsp-info in Claude Code?

Run npx skills add NVIDIA/skills --skill jetson-print-bsp-info -a claude-code in your terminal.

What does jetson-print-bsp-info do?

It inspects a Linux_for_Tegra directory on a Linux host PC, reporting the L4T release version, board configs, and whether rootfs has been populated.

Can jetson-print-bsp-info run on the Jetson target board?

No, it requires a Linux host PC containing the extracted BSP directory prior to flashing.

Source text

SKILL.md · Apache-2.0
---
name: jetson-print-bsp-info
description: 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.
version: 0.0.1
license: "Apache-2.0"
metadata:
  author: "Jetson Team"
  tags: [jetson, bsp, info]
  languages: [bash]
  data-classification: public
---

# 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.

## Purpose

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.

## When to use

- A user has unpacked a Jetson BSP tarball and wants to confirm the L4T version, supported boards, and rootfs state before flashing.
- You need a quick sanity check that a `Linux_for_Tegra/` directory looks valid (expected scripts and config files present).

## Prerequisites

- Running on the host PC (Linux), not on the Jetson target.
- A `Linux_for_Tegra/` directory extracted from a Jetson BSP tarball.
- Standard CLIs available: `ls`, `head`, `cat`, `paste`, `sed`.

## Inputs

- `L4T_ROOT` (optional): absolute path to the `Linux_for_Tegra/` directory. If unset, use the current working directory.

## Instructions

Run each step in order and print the captured values into the report shown under [Output format](#output-format).

1. **Resolve** `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:
   ```bash
   L4T_ROOT="${L4T_ROOT:-$PWD}"
   if [ ! -f "$L4T_ROOT/flash.sh" ] || [ ! -d "$L4T_ROOT/nv_tegra" ]; then
     echo "Not a Linux_for_Tegra root: '$L4T_ROOT' (missing flash.sh or nv_tegra/)"
     exit 1
   fi
   echo "$L4T_ROOT"
   ```
2. **Extract** the L4T release header line. The canonical host-side location is `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:
   ```bash
   head -1 "$L4T_ROOT/nv_tegra/nv_tegra_release" 2>/dev/null \
     || head -1 "$L4T_ROOT/rootfs/etc/nv_tegra_release" 2>/dev/null \
     || echo "L4T release info not found"
   ```
3. **List** supported board config files and **join** them onto one comma-separated line:
   ```bash
   (cd "$L4T_ROOT" && ls *.conf 2>/dev/null) | paste -sd, -
   ```
4. **Check** whether the rootfs has been populated. An empty `rootfs/` means `apply_binaries.sh` has not been run yet:
   ```bash
   if [ -f "$L4T_ROOT/rootfs/etc/passwd" ]; then
     echo "populated"
   else
     echo "empty"
   fi
   ```

## Output format

Print a short report with these sections, one line each where possible:

```text
L4T root:        <path>
L4T release:     <release header line>
Board configs:   <comma-separated list>
Rootfs:          populated | empty
```

## Examples

Example output on an Orin AGX BSP (L4T R36):

```text
L4T root:        $HOME/Linux_for_Tegra
L4T release:     # R36 (release), REVISION: 3.0
Board configs:   jetson-agx-orin-devkit.conf,jetson-orin-nano-devkit.conf
Rootfs:          populated
```

Example output on a freshly untarred BSP where `apply_binaries.sh` has not been run yet:

```text
L4T root:        /tmp/Linux_for_Tegra
L4T release:     # R39 (release), REVISION: 0.0
Board configs:   jetson-agx-thor-devkit.conf
Rootfs:          empty
```

## Error handling

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.

## Limitations

- Read-only inspection only — does not validate signatures, kernel images, or device-tree overlays.
- Only checks the presence of `rootfs/etc/passwd` as a populated-rootfs proxy; will not detect a half-populated rootfs.
- Lists all `*.conf` board configs in `L4T_ROOT/`; does not try to infer which one the user intends to flash.

## Troubleshooting

- **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.

## Notes

- Do not modify any files. This skill is read-only.
- If multiple board config files exist, list all of them — do not try to guess which one the user intends to flash.

© Jetson Team · Apache-2.0 · NVIDIA/skills

Similar skills

All skills for DevOps and infrastructure →

From the same set194

jetson-speculative-decoding A skill that adds EAGLE-3 or draft-model speculative decoding to a Jetson vLLM server when token generation is the slow part. CX Codex +1 1,100installs jetson-validate-image Validates NVIDIA Jetson BSP builds statically on disk or directly on the device. Catches kernel, initramfs, and module mismatches. CX Codex +1 1,100installs jetson-customize-pcie Configures individual PCIe controllers on a Jetson Thor or Orin custom carrier: enable, lane count, link speed. Changes land in a kernel-DT overlay. CX Codex +1 1,100installs jetson-customize-pinmux Parses a Jetson Orin or Thor pinmux XLSM and emits three BCT DTSIs, one entry per pin on a custom carrier. CX Codex +1 1,100installs jetson-link-docs Writes paths to already-downloaded Jetson documents into the active target-platform profile so other skills can resolve them by name. CX Codex +1 1,100installs jetson-init-source Bootstraps the Jetson BSP source workspace: Linux_for_Tegra overlay tracker, bsp_sources tree and a Crosstool-NG cross-compile prefix. Run it after jetson-init-image. CX Codex +1 1,100installs jetson-init-image Extracts Jetson Linux and sample rootfs tarballs, executes apply_binaries.sh, and records BSP metadata in the target profile. Useful when preparing an OS image before flashing. CX Codex +1 1,100installs jetson-customize-uphy Picks a UPHY lane allocation for custom Jetson Orin and Thor carriers and writes the tokens into ODMDATA. Useful when a controller fails to enumerate after flashing. CX Codex +1 1,100installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor