NVIDIA Jetson Orin - JetPack 6.1 - Flashing Board - Flash Filesystem
Flash Filesystem
Before flashing the Jetson Orin from an external device (USB, NVMe, or SD Card), you need to prepare the filesystem on that device. See the Flashing Board section for how to set the board into Recovery Mode and general flashing steps.
Requirements for External Media
- External storage should be 64 GB or larger.
- For smaller devices, you must adjust the partition layout in the XML configuration and use the option
-S <rootfssize>
when flashing. - See the official Flashing Support Guide for more details.
USB Drive
1) Identify the device:
sudo lsblk -p -d | grep sd
2) Format the USB drive:
sudo umount /dev/sdX1 sudo mkfs.ext4 /dev/sdX1
3) Copy the rootfs (~6 GB):
export JETPACK=$HOME/nvidia/nvidia_sdk/JetPack_6.1_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra cd $JETPACK sudo mkdir tmp_system sudo mount /dev/sdX1 $JETPACK/tmp_system cd rootfs/ sudo cp -a * $JETPACK/tmp_system && sync
4) Umount the drive:
sudo umount $JETPACK/tmp_system
5) Flash with flash.sh
:
cd $JETPACK sudo ./flash.sh jetson-agx-orin-devkit sda1
Alternatively, for a faster and more robust method, use l4t_initrd_flash.sh
:
cd $JETPACK sudo tools/kernel_flash/l4t_initrd_flash.sh --external-device sda1 --direct /dev/sdX \ jetson-agx-orin-devkit external
NVMe Drive
1) Format the NVMe partition:
sudo mkfs.ext4 /dev/nvme0n1p1
2) Copy the rootfs:
export JETPACK=$HOME/nvidia/nvidia_sdk/JetPack_6.1_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra cd $JETPACK sudo mkdir tmp_nvme sudo mount /dev/nvme0n1p1 $JETPACK/tmp_nvme cd rootfs/ sudo cp -a * $JETPACK/tmp_nvme && sync
3) Umount:
sudo umount $JETPACK/tmp_nvme
4) Flash with flash.sh
:
cd $JETPACK sudo ./flash.sh jetson-agx-orin-devkit nvme0n1p1
Or use l4t_initrd_flash.sh
:
cd $JETPACK sudo tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 --direct /dev/nvme0n1 \ jetson-agx-orin-devkit external
SD Card (Orin Nano / NX only)
SD Card boot is supported only for Jetson Orin Nano and NX.
1) Create an SD image with the provided script:
cd $JETPACK/tools ./jetson-disk-image-creator.sh -o sd-blob.img -b jetson-orin-nano-devkit
2) Flash the image to the SD Card with dd
:
sudo dd if=sd-blob.img of=/dev/mmcblkX bs=1M oflag=direct sync
Alternatively, you can use balenaEtcher or another SD card flashing tool.