Hello! I’ve been trying to develop IMX283 driver for TX2 Dev kit (for now) and I can’t understand some things:
So I’ve used IMX185 example from Nvidia’s Sensor Programming guide and it seems okay. The trouble is with compiling the driver. Nevertheless my questions are:
IMX185 has 5 DTSI files (tegra186-camera-imx185-a00.dtsi, tegra186-quill-camera-imx185-a00.dtsi, tegra194-camera-imx185-a00.dtsi, tegra194-e3900-0000-camera-imx185-a00.dtsi, tegra194-p2822-0000-camera-imx185-a00.dtsi). Do I also need all 5 of them? I understand that TX2 is Tegra186 - so do I need only Tegra186 DTSI files? Why isn’t there only one device tree file?
When I compile the kernel, I put all the files on the same folder, where there is IMX185 files and add Kconfig and Makefile lines. Is this the right way? It does compile imx283.o in the end, but it doesn’t compile imx283.ko, when I’m building modules (I don’t know if the .ko modules are needed). Do I have to copy the .o files to somewhere before I flash DTB and Kernel or what?
Why does IMX185 create dtb files in $L4T_Source_Dir/build/arch/arm64/boot/dts/ but my IMX283 are not created. Is there anything else than Makefile and Kconfig where you have to set up your own camera?
Which DTB do I exactly have to flash for TX2 Dev Kit?
I read that there are 2 of them? tegra186-quill-p3310-1000-c03-00-base.dtb and tegra186-quill-p3310-1000-a00-00-base.dtb. Does the “base” include my IMX283 device tree on compilation?
Am I doing the flashing correctly - it does flash, but when I check boot logs via UART0, basically nothing about my driver appears:
sudo ./flash.sh -r -k kernel-dtb -d kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb jetson-tx2-devkit mmcblk0p1
After this I obviously copy compiled Image file to TX2 Dev Kit /boot/ folder and restart.
Thanks in advance!