Before we start
Camera modules need a driver to work. More specifically, we need to integrate the driver for the camera to the kernel to work.
The default IMX219 is of on exception. Its camera driver is shipped with every Jetson kernel update, so you don’t have to install the drivers.
And that’s the only camera driver shipped. If you want to use an image sensor other than the IMX219, you need to patch the driver to the kernel.
When you update your system, the old patched kernel will be overridden by the newly shipped one. That means if the kernel gets updated, the driver needs to be patched again.
The following tutorial is based on L4T 32.4.4 (JetPack 4.4.1).
Connect the camera module
Refer to the official guide on how to connect the camera module:
Check L4T version
Check your L4T (Linux4Tegra) Version with the following command:
Get the driver matching your IMX298 image sensor and L4T version at https://github.com/ArduCAM/MIPI_Camera/releases/tag/v0.0.1-nano-isp
Install the .deb file
dpkg --list | grep nvidia-l4t-kernel
sudo dpkg -i arducam-nvidia-l4t-kernel_4.9.140-32.4.4-xxxxxxxxx_arm64.deb
Use the Camera
Test the camera
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ispdigitalgainrange="1 1" ! "video/x-raw(memory:NVMM),width=4656,height=3496,framerate=11/1" ! nvvidconv ! nvoverlaysink
Ctrl+C to exit.