What does this repository do?
- Install ROS on Jetson
- Install OpenCV with CUDA support on Jetson
- Install some ROS packages relying on OpenCV
- Clone the Jetson NVME SSD (Optional)
Tested on
- Jetson AGX Orin
- Jetson AGX Orin NX
Tested software version
- JetPack 5.1.2, JetPack 5.1.3, JetPack 5.1.4
- ROS Noetic
- OpenCV 4.5.5
Follow the instructions to install the JetPack using the SDK Manager if you have not done it yet.
- Clone this repository.
- Modify the
HOME_USER,OPENCV_VERSION,CUDA_ARCH_BINandROS_VERSIONin theinstall_ros.shandinstall_opencv.shandinstall_packages.shscripts. You may go to cuda-arch-bin to find theCUDA_ARCH_BINfor your GPU. - Run the scripts in the
docsfolder.
cd docs
sudo -s
bash install_ros.sh
cd docs
sudo -s
bash install_opencv.sh
cd docs
sudo -s
bash install_packages.sh
For the case where you have multiple Jetson devices, you can clone the NVME SSD to save time.
- Before cloning, you may also install other necessary softwares (like VS code, camera driver, etc.) on the Jetson to avoid the installation process.
I have tried to use the tools in Linux_for_Tegra to clone the NVME SSD, but it did not work. The whole process will be stuck at the 'Flashing the device' step. So I switched other tools to clone the NVME SSD. The dd command can work, however, it is not recommended because it will clone the whole disk, including the empty space. Finally, I found the Clonezilla tool can work well.
What you need
- A NVME SSD
- A NVME SSD enclosure adapter
- A USB drive
- A Host PC to save the clone image
Step 1: Prepare the USB drive
- Download the Clonezilla live iso file from the official website.
- Use the 'Startup Disk Creator' to create a bootable USB drive with the Clonezilla live iso file.
Step 2: Clone the NVME SSD
- Boot the Host PC with the USB drive.
- When Clonezilla boots, select
Clonezilla liveand pressEnter. - Choose your language and select Keep the default keyboard layout.
- Select
Start Clonezilla. - Choose
device-devicemode if you want to clone directly from one drive to another ordevice-imagemode if you want to create an image file of the drive. - For the first time, you need to select
local_devto specify the destination path to save the image file. - For Device-Image Clone (Save an Image):
- Select Beginner mode.
- Choose
savediskto save the entire disk as an image. - Select the source drive.
- Confirm the operation, and Clonezilla will create a compressed image of the drive.
Step 3: Restore the NVME SSD
- Choose
device-imagemode. - For Device-Image Clone (Restore an Image):
- Select Beginner mode.
- Choose
restorediskto restore the entire disk from an image. - Select the image file.
- Select the destination drive.
- Confirm the operation, and Clonezilla will restore the image to the drive.