This is setup guide for enabling MIPI AR0234 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 AR0234
This step will redirect user to the current platform setup directory
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0234
-
Run below script to install userspace IPU libraries.
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0234/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
-
To ensure IPU FW is probed and loaded properly, run this command.
sudo dmesg | grep ipu
-
Lastly check if AR0234 sensor(s) are detected.
sudo dmesg | grep ar0234
media-ctl -p
-
In order to use v412 API with AR0234 MIPI camera, run following commands
sudo modprobe v4l2loopback devices=2
devices=x (number of AR0234 cameras connected)
-
You will get the video device name by running following command.
ls -1 /sys/devices/virtual/video4linux
Take note the device name (e.g. video131)
-
Run the following command to enter root mode.
sudo bash
-
Set environment variables with following commands.
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0234/scripts source setup_camera_env.sh
-
Launch the following command to see
gst-launch-1.0 icamerasrc device-name=ar0234 printfps=true ! video/x-raw,format=NV12,width=1280,height=960 ! videoconvert ! xvimagesink
gst-launch-1.0 icamerasrc device-name=ar0234 printfps=true ! video/x-raw,format=NV12,width=1280,height=960 ! videoconvert ! xvimagesink icamerasrc device-name=ar0234-2 printfps=true ! video/x-raw,format=NV12,width=1280,height=960 ! videoconvert ! xvimagesink
The images below shows the output for 2 AR0234 camera streams.
Refer to the available use cases and examples below