Hello,
can anyone give me an guide for changing the device tree for the jetson xavier also with signing the device tree for the Nvidia Jetpack 4.3.1. Mainly i tried to change the device tree because of new hardware components but booting fails afterwards. I also signed the kernel but the jetson did not started afterwards. Are there any special things which should be care of ?
you may include --no-flash options to flash scripts, it’ll perform all steps except physically flashing the board.
if you also adding -k options to specify partition name, (i.e. kernel-dtb), it’ll generate signed and encrypted device tree binary locally.
please refer to Flash Script Usage for command descriptions.
BTW,
it’s also CBoot feature to look extlinux.conf configuration file for loading binaries.
you may refer to CBoot chapter, and check [Kernel Boot Sequence Using extlinux.conf] session for more details.
thanks
I don’t understand were you found this erroneous information,
device tree sources were public release with L4T sources package, and you may refer to Building the NVIDIA Kernel session for the steps to build the NVIDIA kernel.
So if i choose a different name like the original device tree on the jetson xavier, it will not overwrite the current (original file), it will only add an file to it.
please note that, you may also refer to $OUT/Linux_for_Tegra/bootloader/flash.xml for correct partition names,
you should enable below commands to flash device tree partition for your Jetson AGX Xavier.
for example, $ sudo ./flash.sh -r -k kernel-dtb jetson-xavier mmcblk0p1
that’ll looking for device tree binary from default path, i.e. $OUT/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb,
and this command will only perform partition update by writing this binary file to kernel-dtb partition.
if you’re assign -d options, you should also specify the path name of a device tree file for flashing.
thanks
if you’re using flash commands, it’ll update kernel-dtb partition to overwrite device tree binary.
there’re different ways to load device tree,
for example, (1) device tree could load from kernel-dtb partition, or (2) according to post #3, it’s also CBoot feature to look extlinux.conf configuration file for loading binaries. you may specify FDT entry to include the name of the device tree binary file.
thanks
you may consider the approach (2) as I mentioned in post #11, by simply update extlinux.conf configuration file to assign FDT entry for loading device tree.
thanks
it’s unnecessary to sign and encrypt the binary file by yourself.
you may copy the device tree binary to your target, assign the file path to FDT entry.
thanks
Maybe we both talked past, but there it is written: Tegra Linux Driver : “To support Secureboot, each kernel binary and kernel-dtb binary must be signed with a signature file. CBoot authenticates the kernel binary and kernel-dtb binary with their respective signature files. CBoot assumes that a signature file is in the same folder as the corresponding binary file, and has the same filename with the extension .sig.”
So i guess the binary and signed file mus be copied whereas both are in the same directory.
sorry for misunderstand.
that’s correct for approach (1), that bootloader binaries should be signed and encrypted.
however, for the approach (2), you may copy binary to the target and assign the file path to FDT entry,
had you ever tried with approach (2) for confirmation?
thanks
There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks