There are two ways to update the device tree. One is to delete the file “/boot/extlinux/extlinux. conf” and then use the command to refresh the device tree (sudo./flash - r - k kernel dtb jet son xavier nx devkit emmc mmcblk0p1). After deleting the “extlinux. conf” kernel boot file, how does the kernel automatically choose which kernel to start with?
What is the difference between the two commands? When I use the “- r” parameter, I occasionally need to reconfigure the system initialization, but after the configuration, my own files in the system are not lost.
No, you don’t need to totally delete the whole extlinux.conf. You just need to remove one line from it.
“-r” means re-use the “system.img” created before. If your BSP does not have “system.img” created in prior flash, then running -r will give you error message.
OK, I see. If I choose the second way to update the device tree, do I need to delete the FDT entries in the “extlinux. conf” file first, and then copy the compiled new device tree to the “/boot/dtb” directory.
I don’t want to directly answer this question as this is really not that hard and you can figure it out by yourself…
Just some hints here…
“FDT” in extlinux indicates a path where UEFI can read dtb from rootfs. Which means you don’t need to reflash to update kernel dtb. Just replace that file.
And flash command with “-r -k xxxx” is to flash the dtb into a partition which is not rootfs.