This driver supports the following devices :
- VD1943: RGB-IR sensor
- VD5943: Monochrome sensor
Compile the driver using the Makefile
make
Place it in the kernel modules folder.
sudo cp vd1943.ko /lib/modules/$(uname -r)
Resolve modules dependencies.
sudo depmod -a
Important
Because of a limitation in libcamera, the driver initially restricts near infrared mode behind a compile flag.
Enable the near infrared mode instead of the RGB mode by compiling the driver with :
make CFLAGS_MODULE="-DENABLE_NIR"
Compile the device tree overlay matching your platform and plugin board from the dts folder.
sudo dtc <device-tree>.dts -o /boot/firmware/overlays/<device-tree>.dtbo
Set the device tree overlay in your platform. This may differ from platform to platform. Please refer to your platform documentation.
This is how to set the device tree overlay for Raspberry Pi.
echo "dtoverlay=<device-tree>" | sudo tee -a /boot/firmware/config.txt
Finally, run sudo reboot to test your changes.