Seeed-Jetson-DevelopTool / diy-bsp-build
CLAUDE.md57 starsChanged 4 months agoMITView on GitHub
Create a custom flashable BSP (Board Support Package) by cloning a complete Jetson development environment. Covers working directory setup, environment cloning via l4t_backup_restore, BSP packaging, and flashing to target devices. Requires Ubuntu 22.04 host PC and USB-C cable.
- Installs packages
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- fix-browser-snap-jetsonAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- gr00t-n1-6-deploy-agxAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- lerobot-env-setupAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run one phase at a time. After each phase:
- Very specific: line 14
If output contains [STOP] → stop immediately, consult the failure decision tree below.
- Very specific: line 15
If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.
- Distinctive: line 78
After compilation, copy and install:
- Very specific: line 110
Check .conf filenames in Linux_for_Tegra/ root to find valid device names.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Creating a Custom BSP Package from Jetson Development Environment
Execution model
Run one phase at a time. After each phase:
- Relay all command output to the user.
- If output contains
[STOP]→ stop immediately, consult the failure decision tree below. - If output ends with
[OK]→ tell the user "Phase N complete" and proceed to the next phase.
Prerequisites
| Requirement | Details |
| Source Jetson | Device with configured development environment |
| Host PC | Ubuntu 22.04 |
| Cable | USB Type-C data transmission cable |
| JetPack | 6.0 / 6.2 / 6.2.1 (guide uses 6.2 as example) |
| Disk space | Approximately 2× the storage used by the Jetson dev environment |
The reComputer Classic series has insufficient cooling for MAXN super mode. Do not enable MAXN mode on reComputer Classic with JetPack 6.2.
Phase 1 — Install host dependencies and prepare working directory (~10 min)
Download the working directory package for your JetPack version from the Seeed wiki, then install build dependencies on the host PC.
sudo apt-get update -y
sudo apt-get install -y \
build-essential flex bison libssl-dev \
sshpass abootimg nfs-kernel-server \
libxml2-utils qemu-user-staticExtract the downloaded package and generate content:
sudo tar xpf xxx.tar.gz
# Example: sudo tar xpf L4T36-4-3_plus.tar
cd Linux_for_Tegra/
sudo ./apply_binaries.sh
cd ..[OK] when apply_binaries.sh completes without errors. [STOP] if extraction or apply_binaries fails.
Phase 2 — Set environment variables and compile source (~20–60 min)
Set up cross-compilation environment variables in the extracted directory:
export ARCH=arm64
export CROSS_COMPILE="$PWD/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-"
export PATH="$PWD/aarch64--glibc--stable-2022.08-1/bin:$PATH"
export INSTALL_MOD_PATH="$PWD/Linux_for_Tegra/rootfs/"Compile the source code:
cd Linux_for_Tegra/source
./nvbuild.shAfter compilation, copy and install:
./do_copy.sh
./nvbuild.sh -i[OK] when nvbuild.sh -i completes. [STOP] if compilation errors occur.
Phase 3 — Clone development environment from Jetson (~15–30 min)
Connect the source Jetson to the host PC via USB-C through the flashing port. Put the Jetson into Recovery mode (see https://wiki.seeedstudio.com/flash/jetpack_to_selected_product/).
Navigate to Linux_for_Tegra/ and clone:
sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b -c <board-name>
# Example:
# sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b -c recomputer-orin-j401Replace <board-name> with your device name. Valid names for L4T 36.4.3 include:
recomputer-industrial-orin-j201recomputer-orin-j401reserver-agx-orin-j501xrecomputer-orin-j40minirecomputer-orin-robotics-j401recomputer-orin-super-j401
Check .conf filenames in Linux_for_Tegra/ root to find valid device names.
[OK] when backup completes. [STOP] if device not detected — check Recovery mode and USB cable.
Phase 4 — Package BSP (~15–30 min)
The backup device must remain in Recovery mode. Package the cloned content:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash 5 <board-name> internal
# Example:
# sudo ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash 5 recomputer-orin-j401 internalExpected: files with mfi_ prefix and a mfi_xxxxx.tar.gz package generated in Linux_for_Tegra/.
(Optional) For QSPI flash format BSP suitable for factory production:
sudo BOARDID=$BOARDID BOARDSKU=$BOARDSKU FAB=$FAB BOARDREV=$BOARDREV CHIP_SKU=$CHIP_SKU ./tools/kernel_flash/l4t_initrd_flash.sh \
--external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t234_nvme.xml \
-p "-c bootloader/generic/cfg/flash_t234_qspi.xml --no-systemimg" --no-flash --massflash 5 --showlogs \
--network usb0 <board-name> internal[OK] when mfi_xxxxx.tar.gz is generated. [STOP] if packaging fails.
Phase 5 — Flash target device (~10–20 min)
Extract and flash the BSP to a new target Jetson (must be in Recovery mode):
sudo tar xpf mfi_xxxx.tar.gz
cd mfi_xxxx
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 1 --network usb0 --showlogs[OK] when flashing completes and the target Jetson boots with the cloned environment.
Failure decision tree
| Symptom | Action |
apply_binaries.sh fails | Verify the tar.gz matches your JetPack version. Re-download if corrupted. |
nvbuild.sh compilation error | Confirm cross-compiler path is correct. Check CROSS_COMPILE and PATH exports. |
| Device not detected in Recovery mode | Re-seat USB-C cable. Verify correct flashing port. Re-enter Recovery mode. |
l4t_backup_restore.sh fails | Ensure sufficient disk space (2× Jetson storage). Confirm <board-name> matches a valid .conf file. |
| BSP packaging hangs or fails | Device must stay in Recovery mode throughout. Check USB connection stability. |
| Flash fails on target device | Confirm target is in Recovery mode. Verify mfi_ package was extracted with sudo tar xpf. |
| Insufficient disk space | Free space or use a larger drive. BSP requires ~2× the source Jetson's used storage. |
Reference files
references/source.body.md— full original Seeed tutorial with download links, device name tables, and screenshots (reference only)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

