This is setup guide for enabling MIPI IMX415 for Intel® Alder-Lake N processor.
Ensure that your system is set up properly.
- ADLN Setup: Refer to ADLN Setup tutorial
- ADLN BIOS Setup: Refer to BIOS Setup for MIPI IMX415
- Obtain IMX415 drivers, kernels and packages zip file from Leopard team by dropping an email here: Leopard Support [email protected]
This step will redirect user to the current platform setup directory
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/imx415
-
Run below command to install pre-built kernel v5.15.137.
cd <zip_package_from_leopard>/imx415 sudo dpkg -i linux-*.deb sudo update-grub sudo reboot
-
Once the system reboots, choose and select Kernel 5.15.137 under ‘Advanced Options for Ubuntu’.
-
Run below script to install userspace IPU libraries.
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/imx415/scripts ./install_ipu.sh
-
After installing userspace IPU libraries, run below script to setup userspace IPU libraries. The system reboots after this command.
./setup_ipu.sh
-
Run below to copy necessary drivers and packages from Section: Requirements , Step 3 onto ADL-N board.
cd <zip_package_from_leopard>/ISP/ cp camera/IMX415_TGL_10bits.aiqb /usr/share/defaults/etc/camera/ipu_adl/ cp camera/libcamhal_profile.xml /usr/share/defaults/etc/camera/ipu_adl/ cp camera/sensors/imx415.xml /usr/share/defaults/etc/camera/ipu_adl/sensors/ cp camera/gcss/graph_settings_imx415.xml /usr/share/defaults/etc/camera/ipu_adl/gcss/
-
To ensure IPU FW is probed and loaded properly, run this command.
sudo dmesg | grep ipu
-
Lastly check if IMX415 sensor(s) are detected.
sudo dmesg | grep imx415
media-ctl -p
-
Set environment variables with following commands.
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/imx415/scripts source setup_camera_env.sh
-
Launch the following command to see
sudo -E gst-launch-1.0 icamerasrc device-name=imx415 printfps=true ! video/x-raw,format=NV12,width=3840,height=2160 ! videoconvert ! xvimagesink
sudo -E gst-launch-1.0 icamerasrc device-name=imx415 printfps=true ! video/x-raw,format=NV12,width=3840,height=2160 ! videoconvert ! xvimagesink icamerasrc device-name=imx415-2 printfps=true ! video/x-raw,format=NV12,width=3840,height=2160 ! videoconvert ! xvimagesink
The images below shows the output for 2 IMX415 camera streams.
Refer to the available use cases and examples below