NVIDIA Xavier - JetPack 5.0.2 - Flashing Board - Flash Kernel
Flash Kernel
The Jetson provides two partions for the kernel kernel
and kernel_b
the first one can be used to flash a new kernel while kernel_b
is a tolerance design for error. Once primary kernel partition is broken, it will fallback to this backup.
If you wish to recompile the kernel you can check this page.
eMMC
1) Put the board in recovery mode and connect it to the host PC
2) Flash the kernel image calling the following command
sudo ./flash.sh -k kernel jetson-xavier mmcblk0p1
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) Flash the kernel image
sudo ./flash.sh -k kernel jetson-xavier sdb1
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) Copy the kernel image
sudo ./flash.sh -k kernel jetson-xavier mmcblk1p1
NFS
1) Put the board in recovery mode and connect it to the host PC
2) Flash the kernel image to the eMMC calling the following command
sudo ./flash.sh -k kernel jetson-xavier mmcblk0p1
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 assumes 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