NVIDIA Xavier - JetPack 5.0.2 - Flashing Board - Flash Filesystem
Flash Filesystem
EMMC
JETPACK_DIR=/home/$USER/JetPack/ cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh jetson-xavier mmcblk0p1
USB
Important: Only for USB Tegra needs a firmware that is loaded from the filesystem, so the USB port is not enabled on uboot and then it causes problems to mount the fs from there, you can read about it here.
To flash the filesystem to USB you need to put the filesystem on the USB first
1) Insert your USB flash/drive in your PC and check where it was mounted:
$ mount /dev/sdb1 on /media/$USER/EF02-5626 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
2) Format the USB drive in your PCB
umount /dev/sdb1 sudo mkfs.ext4 /dev/sdb1
3) Copy the filesystem to the USB drive. It takes a while, its size is around 2.4GB
JETPACK_DIR=/home/$USER/JetPack/ DEVDIR=/home/$USER/devdirs/ mkdir $DEVDIR/images/fs sudo mount /dev/sdb1 $DEVDIR/images/fs cd $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/ sudo cp -a * $DEVDIR/images/fs && sync
4) Unmount the USB drive and remove it
sudo umount $DEVDIR/images/fs
5) Finally connect the USB drive to the Jetson board put the Jetson on recovery mode, flash the board to look for the filesystem on the USB port:
cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh jetson-xavier sdb1 #it can be other mount point
SD Card
Similar to USB but you need to replace the extlinux.conf
, so before copying the filesystem into the SD card run:
JETPACK_DIR=/home/$USER/JetPack/ sudo cp $JETPACK_DIR/Xavier/Linux_for_Tegra/bootloader/t186ref/p2771-0000/extlinux.conf.sdcard $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/boot/extlinux/extlinux.conf
then flash it
cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh jetson-xavier mmcblk1p1
NFS
1) First you need to set up your NFS server using these instructions.
2) Open file in $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/etc/network/interfaces
and add:
auto eth0 iface eth0 inet manual
3) Then flash the board to generate and install the initrd image to use NFS, you need to do this every time that you recompile the kernel
JETPACK_DIR=/home/$USER/JetPack/ cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh -N $MY_IPADDRESS:$JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs --rcm-boot jetson-xavier eth0