Update device tree (dtb) to use IMX477

I am using a Xavier NX on a production carrier board with an IMX477 camera. The device tree defaults to using the IMX219 camera. I initially attempted to use jetson-io.py to choose an IMX477 camera. The IMX477 did work, but it changed other settings specific to the carrier board. I could no longer use the SD card reader.

I have reflashed and the card reader is working again. What is the best procedure to choose the IMX477 camera when using a customer carrier board? I tried using fdtoverlay to apply tegra194-p3668-all-p3509-0000-camera-imx477-dual.dtbo to the dtb. This resulted in an error without additional explanation.

Jetson-io won’t change any others PIN doesn’t matter with IMX477 I think.
You could use dtc to extract the device tree before/after enable IMX477 to compare any different cause SD card malfunction.

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

Thanks for your feedback. I manually modified the .dtb in which the SD card was working. I replaced blocks and references to the IMX219 with the IMX477. So far, it appears to have worked.