register a camera device using the main platform device tree L4T-32.2.1

Hi,
in L4T-32.2.1 building device tree for TX2 fails because of nonexisting labels.
comment #include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi>
and
#include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi> in
tegra186-quill-p3310-1000-a00-00-base.dts

i face this err when build them

make -C kernel/kernel-4.9/ ARCH=arm64 O=$KERNEL_OUT CROSS_COMPILE=${CROSS_COMPILE} -j6 dtbs
make: Entering directory '/home/user/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources/kernel/kernel-4.9'
make[1]: Entering directory '/home/user/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources/build'
  CHK     scripts/mod/devicetable-offsets.h
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-ape-cam.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-edp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-dsi-hdmi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-dsi-hdmi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-dsi-dp.dtb
ERROR (phandle_references): Reference to non-existent node or label "imx390_cam0"

ERROR (phandle_references): Reference to non-existent node or label "cam_module0"

ERROR (phandle_references): Reference to non-existent node or label "cam_module0_drivernode0"

ERROR (phandle_references): Reference to non-existent node or label "imx390_cam1"

ERROR (phandle_references): Reference to non-existent node or label "cam_module1"

ERROR (phandle_references): Reference to non-existent node or label "cam_module1_drivernode0"

ERROR (phandle_references): Reference to non-existent node or label "vi_base"

ERROR (phandle_references): Reference to non-existent node or label "vi_port0"

ERROR (phandle_references): Reference to non-existent node or label "vi_port1"

ERROR (phandle_references): Reference to non-existent node or label "imx390_cam0"

ERROR (phandle_references): Reference to non-existent node or label "cam_module0"

ERROR (phandle_references): Reference to non-existent node or label "cam_module0_drivernode0"

ERROR (phandle_references): Reference to non-existent node or label "imx390_cam1"

ERROR (phandle_references): ERROR (phandle_references): Reference to non-existent node or label "cam_module1"

Reference to non-existent node or label "imx390_vi_in0"

ERROR (phandle_references): Reference to non-existent node or label "cam_module1_drivernode0"

ERROR (phandle_references): Reference to non-existent node or label "vi_base"

ERROR (phandle_references): Reference to non-existent node or label "vi_port0"

ERROR (phandle_references): Reference to non-existent node or label "vi_port1"

ERROR (phandle_references): ERROR (phandle_references): Reference to non-existent node or label "imx390_vi_in0"

how add my camera DTS,
before in L4T-28.1 ,I add My DTS in

t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-base.dts

#include "tegra186-quill-p3310-1000-a00-00-base.dts"
#include <t18x-common-platforms/tegra186-my-camera-config-a00.dtsi>

and comment

#include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi> 
#include <t18x-common-plugin-manager/tegra186-quill-camera-plugin-manager.dtsi>

In

t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts

Thanks for any help you can recommend me.

Does the build log show builded which file error?

I just commented it

//#include <t18x-common-platforms/tegra186-quill-camera-modules.dtsi>

in

/public_sources/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dts
user@ubuntu:~/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources$ make -C kernel/kernel-4.9/ ARCH=arm64 O=$KERNEL_OUT CROSS_COMPILE=${CROSS_COMPILE} -j6 dtbs
make: Entering directory '/home/user/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources/kernel/kernel-4.9'
make[1]: Entering directory '/home/user/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources/build'
  CHK     scripts/mod/devicetable-offsets.h
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-ape-cam.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-edp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-dsi-hdmi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-dsi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-dsi-hdmi-dp.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-hdmi-primary-p3310-1000-c03-00.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-hdmi-primary-p3310-1000-a00-00.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-imx274.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-base-mods-display.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-lc898212.dtb
  DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-imx185_v1.dtb
ERROR (phandle_references): Reference to non-existent node or label "cam_module0_drivernode1"

ERROR (phandle_references): Reference to non-existent node or label "cam_module1_drivernode1"

ERROR (phandle_references): Reference to non-existent node or label "vi_base"

ERROR: Input tree has errors, aborting (use -f to force output)
/home/user/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources/kernel/kernel-4.9/arch/arm64/boot/dts/Makefile:120: recipe for target 'arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-lc898212.dtb' failed
make[2]: *** [arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-lc898212.dtb] Error 2
make[2]: *** Waiting for unfinished jobs....
Warning (reg_format): "reg" property in /host1x/nvcsi@150c0000/channel@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /host1x/nvcsi@150c0000/channel@1 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /host1x/nvcsi@150c0000/channel@0
Warning (avoid_default_addr_size): Relying on default #size-cells value for /host1x/nvcsi@150c0000/channel@0
Warning (avoid_default_addr_size): Relying on default #address-cells value for /host1x/nvcsi@150c0000/channel@1
Warning (avoid_default_addr_size): Relying on default #size-cells value for /host1x/nvcsi@150c0000/channel@1
arch/arm64/Makefile:154: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
make[1]: Leaving directory '/home/user/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/public_sources/build'
Makefile:171: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

To simplify the development of the camera Module.
I want to disable Nvidia’s camera plugin manager and remove all references to other camera boards??
Thanks for any help

I comment

dtb-$(CONFIG_ARCH_TEGRA_18x_SOC) += tegra186-quill-p3310-1000-a00-00-lc898212.dtb

in

/public_sources/hardware/nvidia/platform/t18x/quill/kernel-dts/Makefile

And then it Compiled!
Doesn’t this cause tegra186-quill-p3310-1000-a00-00-lc898212 a problem ??

It’s doesn’t matter because you shouldn’t use this dtb file.

Hi hhami.2040,

Have you managed to get issue resolved? Any result can be shared?