NVIDIA Jetson Orin - JetPack 5.0.2 - Flashing Board - Flash Filesystem
Flash Filesystem
Before flashing the Jetson Orin you need to set the board in Recovery Mode first, see the Flashing Board section to know how to set the board in Recovery Mode.
EMMC
JETPACK_DIR=/home/$USER/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/ cd $JETPACK_DIR/Linux_for_Tegra/ sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1
USB
To flash the filesystem to USB you need to put the filesystem on the USB first.
1) Insert your USB flash/drive into your PC and check where it was mounted:
$ mount /dev/sdd1 on /media/$USER/bde7a526-1b2d-4ad3-925f-4650b2563ab7 type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
2) Format the USB drive on your PC
umount /dev/sdd1 sudo mkfs.ext4 /dev/sdd1
3) Copy the filesystem to the USB drive. It takes a while, its size is around 6GB
JETPACK_DIR=/home/$USER/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS cd $JETPACK_DIR/Linux_for_Tegra sudo mkdir tmp_system sudo mount /dev/sdd1 $JETPACK_DIR/Linux_for_Tegra/tmp_system cd rootfs/ sudo cp -a * $JETPACK_DIR/Linux_for_Tegra/tmp_system && sync
4) Umount the USB drive and remove it from your PC
sudo umount $JETPACK_DIR/Linux_for_Tegra/tmp_system
5) Finally, connect the USB drive to the Jetson AGX Orin board and put it in recovery mode. Then, flash the board to look for the filesystem on the USB port
cd $JETPACK_DIR/Linux_for_Tegra sudo ./flash.sh jetson-agx-orin-devkit sda1 #it can be another mount point