Dtb fille of jetsin nx board

how to get dtb file for jetson xavier nx board to replace clock properties to achieve exact 1 mbps speed for can bus

hello jadhav9354,

please access L4T sources package for source data for the BSP. you should extract kernel_src.tbz2 for the device tree files.
it’s t19x series since Xavier NX sharing same chip as Xavier, please looking for Jakku for the Xavier NX’s device tree sources.

you may refer to Kernel Customization chapter for rebuild the device tree blob.
please also check Flashing a Specific Partition for updating kernel-dtb partition for the changes.
thanks

hello jerrychang ,
i am getting the error can0 not found i am using jetson pack 4.4
i want modify the clock so i can achieve the max frequency
which dts file i need to update

hello jadhav9354,

please check below device tree for the CAN controller.
for example,
$L4T_Sources/r32.4.4/Linux_for_Tegra/source/public/hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-can.dtsi

hello jerrychang ,
in matter to update the dtsi file we simply make changes and build the kernel image or there is any other method.
or we need to recompile the dtsi file to achieve the specific goal.

hello jadhav9354,

here’s an approach to disassembler the dtb file into text file for edit.
for example, $ dtc -I dtb -O dts -o temp.dts tegra.dtb

after that,
you may able execute below commands to convert the DTS into a DTB file.
for example, $ dtc -I dts -O dtb -o output.dtb temp.dts

hello jerrychang,
please provide the guideline for the following step in kernel build process,
sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install
INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs/

tar --owner root --group root -cjf kernel_supplements.tbz2
lib/modules

facing the issues while installing the kernel modules

Maybe the above is just a typo, but if you really used “INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs/”, then this will not go to the sample rootfs. The path starting with “/Linux_for_Tegra/” is an absolute path, not a relative path, and the output will not go where you expect it to go.

hello,
i am getting following error while installing the kernel modules
scripts/kconfig/conf --silentoldconfig Kconfig


*** Configuration file “.config” not found!


*** Please run some configurator (e.g. “make oldconfig” or
*** “make menuconfig” or “make xconfig”).


scripts/kconfig/Makefile:37: recipe for target ‘silentoldconfig’ failed
make[2]: *** [silentoldconfig] Error 1
Makefile:579: recipe for target ‘silentoldconfig’ failed
make[1]: *** [silentoldconfig] Error 2

The present kernel configuration has modules disabled.
Type ‘make config’ and enable loadable module support.
Then build a kernel with module support enabled.

Makefile:1405: recipe for target ‘modules_install’ failed
make: *** [modules_install] Error 1

i am using ubuntu os for building the kernel for the jetson xavier nx board

which path we need to mention
for INSTALL_MOD_PATH= ???

please assign an absolute path of your rootfs for INSTALL_MOD_PATH.

You’ll probably want to read up on kernel build. If you are building a kernel, then you must first configure it for the system. Often this starts with a duplicate of the current configuration. On cross compile often this is just performed via “make tegra_defconfig” (there would be some other setup, but tegra_defconfig is the basic target). Or, if you have a running system, then copying its current configuration by copying its “/proc/config.gz” to somewhere you build from, then “gunzip config.gz”, followed by renaming it via “cp config .config”. Aside from the CONFIG_LOCALVERSION this would cause your kernel build to be an exact duplicate of the running system. Without configuration kernel source has no meaning. Incidentally, the CONFIG_LOCALVERSION just helps the kernel find its modules…if this does not match the suffix of uname -r, then the new Image won’t be able to find modules at the old location.