This is setup guide for enabling MIPI AR0330 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 AR0330
- AR0330 patch package: Download from here
- Go to
ar0330_patch_package.zip
package in github repo. - Click here to access the page directly.
- Click the button shown in the red square box.
- The patch package should start downloading shortly. Ensure that the package size is 224MB.
- Go to setup directory, remove and replace existing .zip file
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0330/scripts
rm -rf ar0330_patch_package.zip
cp ~/Downloads/ar0330_patch_package.zip .
- Unzip the patch package using the command
sudo apt install unzip
unzip ar0330_patch_package.zip
This step will redirect user to the current platform setup directory
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0330
- Install GStreamer
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools libgstreamer-plugins-base1.0-dev
- Install V4L2 Utilities
sudo apt-get install v4l-utils v4l2loopback-dkms
- Run below command to load the patch package and change kernel to v6.2.
cd ar0330_patch_package
sudo ./install.sh
sudo reboot
- To ensure IPU FW is probed and loaded properly, run this command.
sudo dmesg | grep ipu
- Lastly check if AR0330 sensor(s) are detected.
sudo dmesg | grep ev2m_gom1
media-ctl -p
- Go to the ev2m_gom1.xml file and edit the files accordingly for I2C b and I2C c port sensor.
cd /etc/camera/ipu_adl/sensors/
sudo nano ev2m_gom1.xml
EV2M_GOM1 b sensor configuration
EV2M_GOM1 c sensor configuration
- Set environment variables with following commands.
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0330/scripts
source setup_camera_env.sh
- Launch the following command to see
sudo -E gst-launch-1.0 icamerasrc device-name=ev2m_gom1 printfps=true ! video/x-raw,format=UYVY,width=1920,height=1080 ! videoconvert ! xvimagesink
sudo -E gst-launch-1.0 icamerasrc device-name=ev2m_gom1 printfps=true ! video/x-raw,format=UYVY,width=1920,height=1080 ! videoconvert ! xvimagesink icamerasrc device-name=ev2m_gom1-2 printfps=true ! video/x-raw,format=UYVY,width=1920,height=1080 ! videoconvert ! xvimagesink
The images below shows the output for 2 AR0330 camera streams.
Refer to the available use cases and examples below