Skip to content

Latest commit

 

History

History
137 lines (96 loc) · 4.34 KB

File metadata and controls

137 lines (96 loc) · 4.34 KB

MIPI AR0330 Setup Guide

This is setup guide for enabling MIPI AR0330 for Intel® Alder-Lake N processor.

Requirements

Ensure that your system is set up properly.

  1. ADLN Setup: Refer to ADLN Setup tutorial
  2. ADLN BIOS Setup: Refer to BIOS Setup for MIPI AR0330
  3. AR0330 patch package: Download from here

Validated Hardware

How to download and prepare AR0330 patch package

  1. Go to ar0330_patch_package.zip package in github repo.
  2. Click here to access the page directly.
  3. Click the button shown in the red square box.
    how-to-download
  4. The patch package should start downloading shortly. Ensure that the package size is 224MB.
  5. 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 .
  1. Unzip the patch package using the command
sudo apt install unzip
unzip ar0330_patch_package.zip

Go to specific setup directory

This step will redirect user to the current platform setup directory

cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0330

Install Dependencies, Kernel Overlay and Binary

  1. 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
  1. Install V4L2 Utilities
sudo apt-get install v4l-utils v4l2loopback-dkms
  1. Run below command to load the patch package and change kernel to v6.2.
cd ar0330_patch_package
sudo ./install.sh
sudo reboot

Validate AR0330 driver

  1. To ensure IPU FW is probed and loaded properly, run this command.
sudo dmesg | grep ipu

dmesg

  1. Lastly check if AR0330 sensor(s) are detected.
sudo dmesg | grep ev2m_gom1

dmesg

media-ctl -p

detect_sensor

Configuring the .xml file for AR0330 sensor

  1. 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 b-sensor

EV2M_GOM1 c sensor configuration c-sensor

Streaming the camera

  1. Set environment variables with following commands.
cd edge-developer-kit-reference-scripts/platforms/atom/adln/mipi/ar0330/scripts
source setup_camera_env.sh
  1. Launch the following command to see

    Single camera stream

sudo -E gst-launch-1.0 icamerasrc device-name=ev2m_gom1 printfps=true ! video/x-raw,format=UYVY,width=1920,height=1080 ! videoconvert ! xvimagesink

Dual camera stream

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

Stream output

The images below shows the output for 2 AR0330 camera streams.

video_output video_output_log video_output_log_2

Next Steps

Refer to the available use cases and examples below

  1. Intel® Distribution of OpenVINO™ Toolkit
  2. Intel® Edge Software Hub