ON Semiconductor AR0820 Linux Driver

From RidgeRun Developer Wiki



Problems running the pipelines shown on this page? Please see our GStreamer Debugging guide for help.


ON Semiconductor AR0820 Features

The AR0820AT is a 1/2−inch CMOS digital image sensor with a 3848 H x 2168 V active−pixel array. This advanced automotive sensor captures images in either linear or high dynamic range, with rolling−shutter readout.

AR0820AT is optimized for both low light and challenging high dynamic range scene performance, with a 2.1 µm DR−Pix BSI pixel and on−sensor 140 dB HDR capture capability. The sensor includes advanced functions such as in−pixel binning, windowing, and both video and single frame modes to provide flexible Region of Interest (ROI) or specific resolution in order to enhance performance in extreme low light conditions. The sophisticated sensor fault detection features and embedded data on AR0820AT are designed to enable camera ASIL B compliance. The device is programmable through a simple two−wire serial interface and supports MIPI output interface.

Supported Platforms

  • NVIDIA Jetson Xavier

Features Included in the Driver

Xavier
Feature Details SDK Support
3848x2168@30fps GMSL2, 4 Lanes, RAW12 L4T 32.5.1 / Jetpack 4.5.1

Enabling the Driver

In order to use this driver, you have to patch and compile the kernel source using JetPack:

  • Once you have the source code, apply the following the patches in order to add the changes required for the IMX327 camera at kernel and dtb level.
4.5.1_ar0820.patch
  • Follow the instructions for building the kernel, and then flash the image.

Make sure to enable ar0820 driver support:

make menuconfig
-> Device Drivers                                                                                                                                                                         
   -> Multimedia support (MEDIA_SUPPORT [=y])                                                                                                                                                            
        -> NVIDIA overlay Encoders, decoders, sensors and other helper chips                                                                                                                       
            -> MAX9296 Deserializer I2C IO Expander (I2C_IOEXPANDER_DESER_MAX9296 [=y]) 

Recompile the code and install the image using your preferred method.

Using the Driver

GStreamer Examples

Capture and Display

  • 3840x2160@30fps
gst-launch-1.0 nvarguscamerasrc ! perf ! 'video/x-raw(memory:NVMM), width=(int)3840, height=(int)2160, format=(string)NV12, framerate=(fraction)30/1' ! nvvidconv ! queue ! xvimagesink