Using the Jetson-IO tool to create and apply a dtbo overlay file but failed

I am in the process of developing a custom camera driver for the Jetson Xavier using JetPack 5.1.5 (L4T 35.6.1). I have created an overlay file, a device tree, and a driver file, all of which compile without any issues, and I am able to flash them successfully.

However, when I try to configure the CSI pins using the Jetson-IO tool, it indicates that it is generating a “…custom-user.dtb” file, but that file is not being created. Additionally, when I insert my kernel driver with insmod, the probe function is not being called, there is a print statement which should be printed when the probe function is called which is not printing anything in dmesg logs.

Help me figure out the issue.
Thanks in Advance.

Hi varun_pandithurai,

Are you using the devkit or custom board for AGX Xavier?

Have you tried modprobe instead?
Do you build your custom driver in to kernel or as a kernel module?

Hi @KevinFFF ,
I am using AGX Devkit. I tried both insmod and modprobe.
I am building a Loadable kernel Module.

Will Jetson-IO tool generate custom dtb if you use AGX Xavier devkit flashed with clean SDK manager?

Please run the following command on your board and share extracted_proc.dts and full dmesg for further check.

$ sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree

Hi @KevinFFF,
The user-custom dtb is not getting generated for the overlay which I created, but is working for the other sensors which were already part of the kernel sources obtained from BSP sources(I tried E3266 and E3333 ), but the dtb file itslef is not getting generated for my custom sensor overlay and the jetson-io tool doesn’t give any error also.

I am attaching the dmesg as well as the extracted dts here.
dtb_overlay_dmesg.txt (69.6 KB)
extracted_proc.txt (478.8 KB)

What’s your custom configuration for camera in device tree?

Have you tried adding OVERLAYS option in /boot/extlinux/extlinux.conf ?

Hi @KevinFFF ,
I am adding the overlay file here for your reference.
tegra194-p2822-camera-ov1999-overlay.txt (10.4 KB)

The OVERLAYS option in /boot/extlinux/extlinux.conf is already enabled.

#include <dt-bindings/gpio/tegra194-gpio.h>

#define CAM0_RST_L	TEGRA194_MAIN_GPIO(H, 3)
#define CAM0_PWDN	TEGRA194_MAIN_GPIO(H, 6)

I’m not sure if your overlay can recognize above lines.

Could you use just hex value in overlay dtbo?

Hi @KevinFFF ,
That how other overlay files are I took “tegra194-p2822-camera-e3326-overlay.dts” file as reference.

Do you see if tegra194-p2822-camera-ov1999-overlay.dts has been used in flash log or serial console log?

You can use debug UEFI binary to check if overlay DTB has been applied.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.