I want to reach imx219 driver source code in Jetson platforms.
I pull and sync Linux_for_Tegra kernel but in imx219.c file in /Linux_for_Tegra/sources/kernel/kernel-5.10 is same as mainline kernel and not developed by NVIDIA. It doesn’t contain the string “imx219 9-0010: tegracam sensor driver: imx219_v2.0.6”.
I am curious about which driver print “tegracam sensor driver: imx219_v2.0.6” messages in dmesg logs?
I tried searching like that before but nothing found in that folder. And I looked at the .c files I could find related to imx219, I could not find that string.
grep -R "imx219_v2.0.6" .
Could a driver related to tegracam work with the standart imx219 driver?
I does run to your command in terminal. Let you will know the result.
Result:
user@user-vm:~/linux-tegra-nvidia$ grep -r ‘imx219 9-0010: tegracam sensor driver: imx219_v2.0.6’ Linux_for_Tegra/
grep: 9-0010:: No such file or directory
grep: tegracam: No such file or directory
grep: sensor: No such file or directory
grep: driver:: No such file or directory
grep: imx219_v2.0.6’: No such file or directory
Hi, you can check for the imx219 sources here kernel/nvidia/drivers/media/i2c/nv_imx219.c.
The log that you are referring to, comes from one of the nvidia’s sources for tegracam api, and uses the dev_info method to print so that’s why you don’t see the hardcoded ‘imx219 9-0010’. This is not specific for the imx219 sources, but in case you want to take a look, check out kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_core.c, and the ‘tegracam_device_register’ method