What is the difference of the different media/i2c paths in JetPack 4.2?

Whats the difference between /kernel/nvidia/drivers/media/i2c/ and /kernel/kernel-4.9/drivers/media/i2c/? I’m aiming to build a new driver for a camera sensor, and I see kind of confusing that in the Sensor Driver Programming Guide v32.1 the path to locate the new drivers is /kernel/nvidia/drivers/media/i2c/. Anyway, the Makefile and Kconfig files are located in /kernel/kernel-4.9/. Can someone clarify this or provide any documentation where this is explained?

hello euskadi,

below were the upstream kernel source

kernel_src/kernel/nvidia/drivers/media/i2c/

these kernel were maintained for Jetson platforms, you should have modification and development for below.

kernel_src/kernel/kernel-4.9/drivers/media/i2c/

please refer to Kernel Customization for the steps to build the NVIDIA kernel.
thanks