Seeed-Jetson-DevelopTool / jetpack-flash-wsl2
CLAUDE.md57 starsChanged 4 months agoMITView on GitHub
Flash JetPack on Jetson from Windows using WSL2 + usbipd-win. Covers custom WSL kernel setup, USB passthrough, and Seeed BSP massflash. Not officially supported — use native Ubuntu if issues persist.
- 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 14
Run one phase at a time. After each phase:
- Very specific: line 16
If output contains [STOP] → stop immediately, consult the failure decision tree below.
- Very specific: line 17
If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.
- Distinctive: line 34
Verify Windows build, WSL version, and usbipd-win.
- Very specific: line 53
Place it at D:\WSL_Kernel\bzImage (or any path without spaces).
≈ “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
Flash JetPack with WSL2
Stability warning: This is not an officially supported flashing path. Seeed documents it as a workaround. If you hit repeated USB or flash failures, switch to a native Ubuntu 20.04/22.04 machine.
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 | Minimum |
| Windows | 10 build 1903+ or Windows 11 |
| WSL2 | installed and enabled |
| usbipd-win | v4.x+ |
| JetPack / WSL distro | JP4.x → Ubuntu 18.04 · JP5.x → 18.04 or 20.04 · JP6.x → 20.04 or 22.04 |
Phase 1 — Check system (PowerShell)
Verify Windows build, WSL version, and usbipd-win. Install the target Ubuntu distro if missing.
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuild
wsl -v
usbipd --version
wsl --install -d Ubuntu-22.04Expected: build ≥ 19041, WSL 2.x, usbipd 4.x. [OK] when all three pass.
Phase 2 — Set up custom WSL2 kernel (PowerShell + WSL)
The stock WSL2 kernel lacks USB RNDIS support required for flashing. A pre-built kernel is needed.
- Download the pre-built kernel from the Seeed OneDrive link (see
references/source.body.md). SHA256:f249022feab9372d448d236a4401e087d0f150dd6b3367b571f0b9a703bd2d38 - Place it at
D:\WSL_Kernel\bzImage(or any path without spaces). - Edit
%USERPROFILE%\.wslconfig— add or update the[wsl2]section:[wsl2] kernel=D:\\WSL_Kernel\\bzImage - Restart WSL and verify:
wsl --shutdown# In WSL after restart:
uname -a
zcat /proc/config.gz | grep RNDISExpected: uname -a shows the custom kernel tag; grep RNDIS returns CONFIG_USB_NET_RNDIS_HOST=y. [OK] when both pass.
Phase 3 — Enter force recovery mode on Jetson
Physical steps — no commands. Do these in order:
- Power off the Jetson device completely.
- Short the FEC and GND pins with a jumper.
- Connect the USB-C cable from the Jetson to the Windows host.
- Connect power to the Jetson; wait 2–3 seconds, then remove the jumper.
The device is now in APX (force recovery) mode. Proceed immediately to Phase 4.
Phase 4 — Attach USB device to WSL (PowerShell as Administrator)
usbipd list
# Locate the "NVIDIA APX" entry and note its bus ID, e.g. 1-1
usbipd bind -b 1-1 -f
usbipd attach -b 1-1 --wsl --auto-attachVerify in WSL:
lsusb
# Expected line: Bus 001 Device 00x: ID 0955:7045 NVIDIA Corp. APX[OK] when lsusb shows the NVIDIA APX device. [STOP] if it does not appear — see failure decision tree.
Phase 5 — Flash (WSL terminal)
Replace <user> and <xxxx> with your actual values.
# Install flash prerequisites
sudo apt install -y qemu-user-static sshpass abootimg nfs-kernel-server libxml2-utils binutils
# Move image from Windows Downloads into WSL home
mv /mnt/c/Users/<user>/Downloads/mfi_recomputer-<xxxx>.tar.gz ~
# Remove accidental execute bit, then verify checksum
chmod -x ~/mfi_recomputer-<xxxx>.tar.gz
sha256sum ~/mfi_recomputer-<xxxx>.tar.gz
# Extract
tar -xzf ~/mfi_recomputer-<xxxx>.tar.gz
cd mfi_recomputer-<xxxx>
# Flash via Seeed BSP massflash
sudo ./tools/kernel_flash/l4t_initrd_flash.sh \
--flash-only --massflash 1 --network usb0 --showlogsExpected: flash log ends with Flash success. [OK] when the device reboots into JetPack. [STOP] on any error — see failure decision tree.
Failure decision tree
| Symptom | Action |
APX device not visible in usbipd list | Confirm device is in force recovery mode (redo Phase 3). Try a different USB port. Disable Windows Firewall temporarily. |
usbipd attach succeeds but lsusb in WSL shows nothing | Confirm usbipd-win is v4.x+. Rerun usbipd attach. Check that the correct WSL distro is targeted. |
| RNDIS not in kernel config | Custom kernel not loaded. Verify .wslconfig path has double backslashes. Run wsl --shutdown and retry. |
| Flash times out or stalls | Cable quality issue — use a cable ≤1.5 m. Ensure 5 V / 4 A power supply. Consider switching to native Ubuntu. |
Permission denied on /dev/bus/usb | Run sudo chmod 666 /dev/bus/usb/001/* in WSL, then retry flash. |
usbipd bind fails | Run PowerShell as Administrator. |
| SHA256 mismatch on image | Re-download the BSP image. Do not flash a corrupt image. |
| Repeated unexplained failures | This method is not officially supported. Switch to a native Ubuntu 20.04/22.04 host. |
Reference files
references/source.body.md— full original Seeed tutorial with screenshots, kernel download link, and additional context (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.

