Spi Enable Jetsonnano logo

Spi Enable Jetsonnano

Organization
Seeed-Projects
spi-enable-jetsonnano

Enable SPI1 interface on Jetson Nano by modifying the device tree before flashing. Covers DTB decompilation, SPI pin patching, recompilation, flashing, and loopback testing. Must be applied before flashing the image.

Overview

PublisherSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill namespi-enable-jetsonnano
Stars
58
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Seeed-Projects on GitHub. Read the source before you install it.

Installation

Install the Spi Enable Jetsonnano AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/spi-enable-jetsonnano
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/spi-enable-jetsonnano .claude/skills/spi-enable-jetsonnano
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Spi Enable Jetsonnano in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Spi Enable Jetsonnano on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Spi Enable Jetsonnano is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Enable SPI Interface on Jetson Nano

Execution model

Run one phase at a time. After each phase, verify the expected result before continuing.

  • If a phase succeeds → print [OK] and move to the next phase.
  • If a phase fails → print [STOP], consult the failure decision tree, and ask the user before retrying.

Important: This procedure must be performed on the host PC before flashing the Jetson Nano. SPI cannot be enabled via jetson-io.py on Nano.

Phase 1 — Enter recovery mode and prepare BSP on host PC

Short the REC and GND pins on the Jetson Nano to enter recovery mode.

Download L4T BSP and Root Filesystem from NVIDIA Jetson Linux Archive (example uses L4T 32.7.2):

bash
tar xf Jetson-210_Linux_R32.7.2_aarch64.tbz2
cd Linux_for_Tegra/rootfs/
sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R32.7.2_aarch64.tbz2
cd ..
sudo ./apply_binaries.sh

Expected: BSP extracted and binaries applied without errors.

Phase 2 — Create and run SPI modification script

Create modify_spi.sh in the Linux_for_Tegra directory with the following content, then run it:

bash
cat << 'SCRIPT_EOF' > modify_spi.sh
#!/bin/bash
set -e

cd "$(dirname "$0")"
cd kernel/dtb

DTS=tegra210-p3448-0002-p3449-0000-b00.dts
DTB=tegra210-p3448-0002-p3449-0000-b00.dtb

echo "Decompiling $DTB to $DTS..."
sudo dtc -I dtb -O dts -o "$DTS" "$DTB"

fix_spi_node() {
    local node=$1
    if grep -A5 "$node {" "$DTS" | grep -q 'status'; then
        sudo sed -i "/$node {/,/spi-max-frequency/ s/status = \".*\";/status = \"okay\";/" "$DTS"
    else
        sudo sed -i "/$node {/,/spi-max-frequency/ s/compatible = \"tegra-spidev\";/&\n\t\tstatus = \"okay\";/" "$DTS"
    fi
}

echo "Enabling spi@0 and spi@1..."
fix_spi_node "spi@0"
fix_spi_node "spi@1"

patch_pin() {
    local pin=$1
    sudo sed -i "/${pin} {/,/nvidia,enable-input/ {
        s/nvidia,function = \"rsvd1\"/nvidia,function = \"spi1\"/
        s/nvidia,tristate = <0x01>/nvidia,tristate = <0x00>/
        s/nvidia,enable-input = <0x00>/nvidia,enable-input = <0x01>/
    }" "$DTS"
}

echo "Patching pinmux blocks..."
for pin in spi1_mosi_pc0 spi1_miso_pc1 spi1_sck_pc2 spi1_cs0_pc3 spi1_cs1_pc4; do
    patch_pin "$pin"
done

echo "Fixing tristate and input-enable for SPI1 pins..."

fix_pinmux_field() {
  local pin=$1
  awk -v pin="$pin" '
  BEGIN { in_block = 0 }
  {
    if ($0 ~ pin " {") { in_block = 1 }
    if (in_block && /nvidia,tristate =/) { sub(/<0x1>/, "<0x0>") }
    if (in_block && /nvidia,enable-input =/) { sub(/<0x0>/, "<0x1>") }
    print
    if (in_block && /}/) { in_block = 0 }
  }' "$DTS" | sudo tee "$DTS.fixed" > /dev/null && sudo mv "$DTS.fixed" "$DTS"
}

fix_pinmux_field "spi1_mosi_pc0"
fix_pinmux_field "spi1_miso_pc1"
fix_pinmux_field "spi1_sck_pc2"
fix_pinmux_field "spi1_cs0_pc3"
fix_pinmux_field "spi1_cs1_pc4"

echo "Recompiling DTS to $DTB..."
sudo dtc -I dts -O dtb -o "$DTB" "$DTS"

echo "SPI DTS patch applied and DTB regenerated successfully."
SCRIPT_EOF

sudo bash modify_spi.sh

To enable SPI2 instead, replace spi1 with spi2 in the script.

Expected: Script completes with "SPI DTS patch applied and DTB regenerated successfully."

Phase 3 — Flash the Jetson Nano

bash
sudo ./flash.sh jetson-nano-emmc mmcblk0p1

Expected: Flash completes successfully. After reboot, SPI pins are available on the 40-pin header.

Phase 4 — Test SPI1 with loopback

On the Jetson Nano, short pin 19 (SPI0_MOSI) and pin 21 (SPI0_MISO) for loopback test.

bash
sudo modprobe spidev
git clone https://github.com/rm-hull/spidev-test
cd spidev-test/
gcc spidev_test.c -o spidev_test
./spidev_test -v -D /dev/spidev0.0 -p "Test"

Verify available SPI devices:

bash
ls /dev/spidev*

Expected: Loopback test shows transmitted data matches received data; /dev/spidev0.0 exists.

Failure decision tree

SymptomLikely causeSuggested fix
dtc command not foundDevice tree compiler not installedsudo apt-get install device-tree-compiler
DTB file not foundWrong L4T version or pathVerify the DTB filename matches your board revision
Flash failsDevice not in recovery modeRe-short REC and GND pins; verify with lsusb on host
/dev/spidev* not found after bootScript did not patch correctlyRe-run modify_spi.sh and reflash; check DTS changes
Loopback test failsPins not shorted properlyVerify pin 19 and pin 21 are connected; check wiring
SPI2 needed instead of SPI1Wrong SPI controller targetedReplace spi1 with spi2 in modify_spi.sh and reflash

Reference files

  • references/source.body.md — Full original wiki content (reference only)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Spi Enable Jetsonnano AI skill do?

Enable SPI1 interface on Jetson Nano by modifying the device tree before flashing. Covers DTB decompilation, SPI pin patching, recompilation, flashing, and loopback testing. Must be applied before flashing the image.

Why use Spi Enable Jetsonnano on TypingMind?

Because you install it once and use it with any model. Spi Enable Jetsonnano is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Spi Enable Jetsonnano in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/spi-enable-jetsonnano. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Spi Enable Jetsonnano?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Spi Enable Jetsonnano?

As many as you like. As long as a model supports skills, you can use Spi Enable Jetsonnano with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Spi Enable Jetsonnano AI skill free?

Yes. It is published on GitHub by Seeed-Projects under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇