§2024-12-01

bootFromExternalStorage

These scripts were written before there was official support in the NVIDIA SDK Manager for booting from external storage. The NVIDIA SDK Manager is a tool used to flash and configure the Jetson. You may prefer to use the SDK Manager instead of these scripts. To get started with SDK Manager:

Shell scripts to setup a NVIDIA Jetson Xavier or Orin (AGX, NX, Nano models) to boot from external storage.

Support code for the video and article: Native Boot for Jetson Xaviers

¶Scripts

  1. get_jetson_files.sh

Downloads the Jetson BSP and rootfs for the Xavier/Orin Dev Kits. This script must be run on the host machine.

  1. install_dependencies.sh

Install dependencies for flashing the Jetson. This script must be run on the host machine. This is done by get_jetson_files.sh, but is added here as legacy. flash_jetson_external_storage.sh

  1. Flashes the Jetson attached to the host via a USB cable. This script must be run on the host machine. The Jetson must be in Force Recovery Mode. The script prepares external storage attached to the Jetson, either NVMe or USB. Default is NVMe as the Orin and Xaviers have M.2 Key M slots which accept NVMe SSDs. The SSDs must be PCIE, SATA does not work. For the Xavier NX and Orin NX and Orin Nano, this flashes the QSPI memory on the Jetson module.
Usage: ./flash_jetson_external_storage [OPTIONS]
  No option flashes to nvme0n1p1 by default
  -s | --storage - Specific storage media to flash; sda1 or nvme0n1p1
  -h | --help    - displays this message
  1. install_jetson_default_packages.sh

Once the script flash_jetson_external_storage script completes, the Jetson is ready for setup. First, configure the Jetson through the standard oem-config process. Then you are ready to install the default JetPack packages using this script. You will need to either download the script or clone this repository on the Jetson itself. The Jetson must be connected to the Internet.

Executing the script will install the metapackage nvida-jetpack which in turn installs the following metapackages:

nvidia-cuda
nvidia-cudnn
nvidia-tensorrt
nvidia-visionworks
nvidia-vpi
nvidia-l4t-jetson-multimedia-api
nvidia-opencv

The script installs other packages, to match the default SD Card installation. These include:

libtbb-dev
uff-converter-tf
python3-vpi1
python3-libnvinfer-dev
Various Python2.7 support files