Part 1: The Foundation – Preparing the Jetson Nano

This first post focuses on the essential hardware and OS setup required to build a robust Hardware-in-the-Loop (HiL) testbench.

The Hardware Leap: NVMe SSD & SDK Manager

While the Jetson comes with a microSD slot, it is a significant bottleneck for robotics development.

Decoding the Partition “Mystery”

The Jetson Orin uses a complex partition structure because it lacks a traditional BIOS.

Memory Optimization: The “OOM” Lifesaver

The Jetson Orin Nano has 8GB of physical RAM shared between the CPU and GPU. Running a ROS2 stack plus simulation data will quickly lead to Out-of-Memory (OOM) errors unless optimized.


Implementation: Storage and Memory Setup

To prepare your Jetson, run the following commands.

1. Disable NVIDIA’s default ZRAM and reboot: ```bash sudo systemctl disable nvzramconfig sudo reboot

2. Create a physical 8GB Swap file on the NVMe SSD: ```bash sudo fallocate -l 8G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile

3. Make the swap permanent by adding it to /etc/fstab: ```bash echo ‘/swapfile none swap sw 0 0’ | sudo tee -a /etc/fstab