CSI Camera: Device Tree Problem

Hello,

I am trying to modify the device tree on Jetson Xavier to make a CSI camera work.

I tried the following:

  1. Obtaining the device tree from the /sys:
    dtc -I fs /sys/firmware/devicetree/base > devtree.dts

  2. Recompiling the dt:
    dtc -I dts -o devtree.dtb devtree.dts

  3. Passing the device tree to the kernel over extlinux.conf:
    FDT /boot/devtree.dtb

When I apply that steps, the kernel does not run correctly anymore, even with the original device tree.

[ 0.000000] Boot CPU: AArch64 Processor [4e0f0040]
[ 0.000000] OF: fdt:memory scan node memory, reg size 48,
[ 0.000000] OF: fdt: - 80000000 , 2c000000
[ 0.000000] OF: fdt: - ac200000 , 44800000
[ 0.000000] OF: fdt: - 100000000 , 180000000
[ 0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options ‘’)
[ 1.736158] tegradc 15200000.nvdisplay: tegra_dc_parse_panel_ops: panel: /host1x/sor1/hdmi-display is not active
[ 1.736195] tegradc 15200000.nvdisplay: err:-19 parsing panel_ops
[ 2.180358] imx219 9-0010: imx219_board_setup: error during i2c read probe (-121)
[ 2.180654] imx219 9-0010: board setup failed
[ 2.204858] imx219 10-0010: imx219_board_setup: error during i2c read probe (-121)
[ 2.205139] imx219 10-0010: board setup failed
[ 2.321625] tegra186-aondbg aondbg: No response
[ 2.321787] tegra_clocks_config: initialization failed: error -110
��WARNING: at platform/drivers/pg/pg-gpu-t194.c:185
WARNING: at platform/drivers/pg/pg-gpu-t194.c:185
��[ 3.549622] tegra186-aondbg aondbg: No response
[ 3.605611] tegra186-aondbg aondbg: No response

What can be the problem? What am I missing?

Best regards,

Mert T.

Try below command to get original dts instead of /sys/firmware/devicetree/base

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

Thank you, it worked.

Best regards.