NVIDIA Xavier - JetPack 5.0.2 - Flashing Board - Flash Kernel
Flash Kernel
To flash your kernel you just need to copy it to /boot in your filesystem. The old method to flash it in the LNX partition (./flash.sh -k LNX <target_board> mmcblk1p1) is no longer used. If you wish to recompile the kernel you can check this page.
eMMC
1) Access the device using ssh. This is necesary since you will need root permissions to copy to the /boot directory
ssh nvidia@$TEGRA_IP
2) Use scp to copy the kernel image
sudo scp $MY_IPADDRESS:$TEGRA_KERNEL_OUT/arch/arm64/boot/Image /boot #Your source image might be in another location
USB Card
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) Mount and copy the kernel image
DEVDIR=/home/$USER/devdirs/ mkdir $DEVDIR/images/fs sudo mount /dev/sdb1 $DEVDIR/images/fs sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/Image $DEVDIR/images/fs/boot/ #Your source image might be in another location
SD Card
This process is similar to the USB flashing
1) Insert your USB flash/drive in your PC and check where it was mounted:
$ mount /dev/mmcblk1p1 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) Mount and copy the kernel image
DEVDIR=/home/$USER/devdirs/ mkdir $DEVDIR/images/fs sudo mount /dev/mmcblk1p1 $DEVDIR/images/fs sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/Image $DEVDIR/images/fs/boot/ #Your source image might be in another location
NFS
If you followed the guide here, the NFS /boot directory will be located in:
JETPACK_DIR=/home/$USER/JetPack/ sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/Image $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/boot/ #Your source image might be in another location
Rebuilding DTB
To modify the DTS and rebuild the DTB
1. Locate the cbo.dts file in this directory:
JETPACK_DIR=/home/$USER/JetPack/ cd $JETPACK_DIR/Xavier/Linux_for_Tegra/bootloader/
2. Modify the file as necessary
3. Enter this command to convert the DTS to a DTB:
$JETPACK_DIR/Xavier/Linux_for_Tegra/kernel/dtc -I dts -O dtb -o cbo.dtb cbo.dts
4. Flash the partition CPUBL-CFG.This asumes that a filesystem already exists in the desired location, if not follow the instructions here
eMMC
cd .. sudo ./flash.sh -k CPUBL-CFG jetson-xavier mmcblk0p1
USB
cd .. sudo ./flash.sh -k CPUBL-CFG jetson-xavier sdb1 #it can be other mount point
SD Card
cd .. sudo ./flash.sh -k CPUBL-CFG jetson-xavier mmcblk1p1 #it can be other mount point
NFC
cd .. sudo ./flash.sh -N $MY_IPADDRESS:$JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs --rcm-boot -k CPUBL-CFG jetson-xavier eth0 #it can be other mount point