Creating Linux Root Filesystem in NVIDIA DriveOS 7.0#

To reduce the space consumed by platform-specific Linux Root Filesystems (RFS) in the NVIDIA DriveOS™ SDK Docker Image, only the Linux pre-rfs tarballs are present in the SDK. This pre-rfs contains files common for all supported platforms.

Use one of the following methods to generate the final flashable RFS by adding platform-specific files and other NVIDIA files to the pre-rfs.

Option 1: Using bind_partitions#

If a Linux Root Filesystem does not exist on the host, bind_partitions automatically creates an RFS for the appropriate platform in the /drive/drive-linux/filesystem/targetfs-images directory. This is supported for prod_nsr, test_nsr, and dev_nsr PCT variants.

Option 2: Using create_linux_targetfs.sh#

Manually execute the following command to create a flashable Linux RFS in the /drive/drive-linux/filesystem/targetfs-images directory.

/drive/drive-linux/filesystem/create_linux_targetfs.sh -t <target_platform> -p <pct_variant>

Command Line Arguments for the``create_linux_targetfs.sh`` Script

Argument

Description

Required

Default

Valid Values

-t, –target_platform

Specify the target platform

No

thor

  • thor

  • orin

-p, –pct_variant

Specify PCT variant

No

dev_nsr

  • prod_nsr

  • test_nsr

  • dev_nsr

-h, –help

Prints the help message of create_linux_targetfs.sh

No

NA

NA

Linux RFS Types#

Based on the PCT variant and the platform selected, bind_partitions or the create_linux_targetfs.sh script can create the following variants of the RFS:

PCT Variant

Distro

Platform

Path of output RFS Image

prod_nsr

Ubuntu 24.04

thor

/drive/drive-linux/filesystem/targetfs-images/prod_nsr_ubuntu-24.04_thor_rfs.img

orin

/drive/drive-linux/filesystem/targetfs-images/prod_nsr_ubuntu-24.04_orin_rfs.img

test_nsr

Ubuntu 24.04

thor

/drive/drive-linux/filesystem/targetfs-images/test_nsr_ubuntu-24.04_thor_rfs.img

orin

/drive/drive-linux/filesystem/targetfs-images/test_nsr_ubuntu-24.04_orin_rfs.img

dev_nsr

Ubuntu 24.04

thor

/drive/drive-linux/filesystem/targetfs-images/dev_nsr_desktop_ubuntu-24.04_thor_rfs.img

orin

/drive/drive-linux/filesystem/targetfs-images/dev_nsr_desktop_ubuntu-24.04_orin_rfs.img