Loading...
Loading...
Build a per-target knowledge-base markdown next to the active profile by walking the BSP root and source tree. Use after init-image / init-source; not for editing profile fields.
npx skill4agent add nvidia/skills jetson-generate-kbtarget-platform/<profile-stem>.mdbsp_image.root_pathrootfs/bootloader/source/source.root_pathkernel-jammy-src/hardware/nvidia/nvidia-oot/documents.*jetson-init-imagebsp_image.root_pathsource.root_pathbsp_image.*documents.*../../context/target-platform-contract.md<profile-stem>.yaml| Field | Required for KB? | If missing |
|---|---|---|
| yes | Refuse. A KB with no BSP root to scan is just a YAML restatement; tell the user to run |
| no | Skip the source-tree section; note "source_root not recorded" in the KB. |
| no | Render an empty Documents table with a "no documents recorded" note. |
bsp_image.root_pathbsp_image.root_pathls -1bsp_image.root_pathrootfs/bootloader/kernel/source/tools/nv_tegra/flash_config<bsp_image.root_path>/<flash_config>(missing)rootfs/etc/nvpmodel/nvpmodel_<module.id>_<module.sku>*.confp37670001source.root_pathsource.root_pathNAls -1source.root_pathkernel-jammy-src/hardware/nvidia/nvidia-oot/nvgpu/nvethernetrm/nvdisplay/hwpm/kernel-devicetree/kernel-devicetree/generic-dts/dts/tegra<chip>*<chip><chip>module.id | Chip family | |
|---|---|---|
| T234 — Orin | |
| T264 — Thor | |
module.idunknown (module.id=<value>)documents.*http://https://ftp://os.path.exists (missing)../../references/platform_template.yaml<OPTIONAL: …>documents:_No documents recorded — run or hand-edit the profile to add references._target-platform/<profile-stem>.md# Target knowledge base — <profile-stem>
> Generated <YYYY-MM-DD> from `<bsp_image.root_path>` (BSP version `<bsp_image.version>`).
> Re-run `jetson-generate-kb` after extracting a new BSP, applying
> patches, or editing profile fields. This file is a regenerated
> snapshot — do not hand-edit.
## Profile facts
- **Reference devkit:** `<reference_devkit.name>`
- **Module:** `<module.id>-<module.sku>` (`<chip family label>`)
- **Reference carrier:** `<carrier.id>-<carrier.sku>`
- **Custom carrier:** `<custom_carrier.name>` (`<custom_carrier.id>-<custom_carrier.sku>`) _← omit this row if Case 1_
- **Active flash conf:** `<flash_config>`
- **BSP path:** `<bsp_image.root_path>`
- **BSP version:** `<bsp_image.version>`
- **Source root:** `<source.root_path>` _← or "_not recorded_" if NA_
## BSP image layout
Top-level directories under `<bsp_image.root_path>`:
| Directory | Present | Purpose |
|---|---|---|
| `rootfs/` | ✓ / ✗ | userspace rootfs (nvpmodel, nvfan, systemd units, etc.) |
| `bootloader/` | ✓ / ✗ | firmware blobs, BCT, MB1/MB2 dts |
| `kernel/` | ✓ / ✗ | prebuilt kernel + modules |
| `source/` | ✓ / ✗ | BSP source tree (kernel, OOT drivers, DT) |
| `tools/` | ✓ / ✗ | flashing helpers, jetson-io, kernel_flash |
| `nv_tegra/` | ✓ / ✗ | nvidia firmware tarballs, kernel-supplements |
Active flash conf `<flash_config>`: present at
`<bsp_image.root_path>/<flash_config>` _or_ `(missing — verify before flashing)`.
### nvpmodel files matching the active SKU
Filtered from `rootfs/etc/nvpmodel/` by `nvpmodel_<module.id>_<module.sku>*.conf`:
- `<each match, one per line>`
The active variant at boot is selected by `nvpower.sh` from
`/proc/device-tree/compatible` plus super / safety state — see
`jetson-customize-nvpmodel` for the resolution rules.
## Source tree layout
(omit this whole section if `source.root_path` is `NA`/missing)
Top-level subtrees under `<source.root_path>`:
| Subtree | Present | Purpose |
|---|---|---|
| `kernel-jammy-src/` | ✓ / ✗ | mainline 5.x kernel sources |
| `hardware/nvidia/` | ✓ / ✗ | NVIDIA platform DTs (per chip family) |
| `nvidia-oot/` | ✓ / ✗ | NVIDIA out-of-tree kernel modules |
| `nvgpu/` | ✓ / ✗ | GPU driver |
| `nvethernetrm/` | ✓ / ✗ | ethernet driver |
| `nvdisplay/` | ✓ / ✗ | display driver |
| `hwpm/` | ✓ / ✗ | hardware performance monitor |
| `kernel-devicetree/` | ✓ / ✗ | devicetree sources |
### Devicetree files for chip family `<chip>`
(omit if `kernel-devicetree/generic-dts/dts/` is absent)
Files matching `tegra<chip>*` under `kernel-devicetree/generic-dts/dts/`:
- `<each match, one per line — cap at 30, then a "first 30 of N" note>`
## Documents
| Field | Reference |
|---|---|
| Documents root folder | `<doc_root>` _or_ _not recorded_ |
| BSP / Jetson Linux developer guide | `<bsp_developer_guide>` _or_ _not recorded_ |
| Tegra SoC Technical Reference Manual | `<soc_tech_ref_manual>` _or_ _not recorded_ |
| Jetson module data sheet | `<module_data_sheet>` _or_ _not recorded_ |
| Jetson module design guide (PDG) | `<module_design_guide>` _or_ _not recorded_ |
| Jetson module thermal design guide (TDG) | `<module_thermal_design_guide>` _or_ _not recorded_ |
| Jetson module schematic | `<module_schematic>` _or_ _not recorded_ |
| Reference carrier board specification | `<carrier_board_spec>` _or_ _not recorded_ |
| Reference carrier schematic | `<carrier_schematic>` _or_ _not recorded_ |
| Custom carrier schematic | `<custom_carrier_schematic>` _or_ _not recorded / N/A (no custom carrier)_ |
| Reference-devkit pinmux spreadsheet | `<ref_devkit_pinmux_xls>` _or_ _not recorded_ |
| Custom-carrier pinmux spreadsheet | `<custom_carrier_pinmux_xls>` _or_ _not recorded / N/A (no custom carrier)_ |
(Local paths are tagged ` (missing)` if absent on disk. URLs are
recorded verbatim and not fetched. If `doc_root` is set, also tag
` (missing)` on it if the directory itself is gone — that signals
auto-mapping in `jetson-link-docs` won't work on a re-run.)
## How to refresh this file
Re-run `jetson-generate-kb` whenever any of the following changes:
- the BSP at `<bsp_image.root_path>` is re-extracted, patched, or upgraded,
- the source tree at `<source.root_path>` changes,
- the active profile's `bsp_image.*` or `documents.*` fields are edited.
This file is overwritten on every run. Do not hand-edit it — edit the
source data (profile YAML or the BSP tree) and re-run instead.target-platform/<profile-stem>.md(missing)target-platform/<profile-stem>.mdbsp_image.root_path = NAtarget-platform/<stem>.md<stem>.yaml.mdjetson-set-target*.yamlchip: unknown<chip>../../context/target-platform-contract.mdbsp_image:/jetson-init-imagesource.root_path/jetson-init-sourcesource:/jetson-link-docsdocuments:chip: unknowntarget-platform/<stem>.mdbsp_image.root_path/jetson-init-imagesource.root_path/jetson-init-sourcedocuments:/jetson-link-docs../../context/target-platform-contract.md../../context/bsp-customization-workflow.md../../references/platform_template.yaml../jetson-init-target/SKILL.md../jetson-init-image/SKILL.md../jetson-set-target/SKILL.md