Linking externel driver

Hello team,

I m trying to load one of the camera driver on Nvidia Xavier Nx module. To do this,

  1. I have made toolchain setup and extracted source codes
  2. Placed .c file and edited Makefile and Kconfig under path /nx/source/Linux_for_Tegra/source/public/kernel
  3. Then i wanted to disable the default imx219 camera driver. To disable imx219, i commented out the
    #include “tegra194-camera-jakku-rbpcv2-imx219.dtsi”
    line in “tegra194-p3509-0000-a00.dtsi” file

And added my camera dtsi file and included my dtsi in
“tegra194-p3668-common.dtsi” file
but, even after doing this, i notice imx219 dtsi file properties in /proc/device-tree directory

Could you please help me to disable imx219 completely and guide me where and all i have to make changes to include my driver files?

hello kamalskdy,

for driver layer, you may update defconfig to disable built this driver, then, its *.o file will not created for your kernel image.
for example, $public_sources/kernel_src/kernel/kernel-5.10/arch/arm64/configs/tegra_defconfig

and… there’re by default some device tree overlay (*.dtbo) files under /boot/, you may delete those imx219 dtbo files if you would like to disable imx219 completely.

yes, we even did changes in tegra_defconfig file but no use.

there is no imx219 dtb0 file in Linux_for_Tegra/rootfs/boot/

hello kamalskdy,

may I know which Jetpack release you’re working with?
BTW, they’re *.dtbo, device tree binary overlay files.

i m using L4T 32.5.0 version

hello kamalskdy,

removing that include of IMX219 from jakku/kernel-dts/common/tegra194-p3509-0000-a00.dtsi should be enough.
you may not update the customize device tree correctly. please share your steps for reference, thanks

Hello JerryChang,

Not updated correctly you mean there is something wrong in our dtsi file?

or we didn’t include our dtsi file properly in jakku/kernel-dts/common/tegra194-p3668-common.dtsi file ?

hello kamalskdy,

IIRC, Xavier with r32.5 release version was loading device tree binary via kernel-dtb partition.
that you may perform partition flash to update the binary file to this partition individually.

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