# i.MX Camera Software Pack 

*i.MX Camera Software Pack* includes camera drivers, libraries, calibration files, Yocto recipes to enable customers to
use selected off the shelf camera modules out of the box while utilizing the i.MX 8M Plus internal ISP (Image Signal
Processor).

## onsemi_ar0144_sensor - Binaries

This directory contains binaries and calibration files to enable OnSemi AR0144 camera
sensor utilizing ISP on i.MX 8M Plus.

1. Boot up i.MX 8M Plus EVK board running the LF6.6.3-1.0.0 BSP image.
2. Copy contents of this directory onto your i.MX 8M Plus EVK board.
3. Execute the copy_binaries.sh file to copy files to required locations on the i.MX 8M Plus EVK board
4. Reboot the board and enter U-boot
5. set device tree to imx8m-evk-ar0144.dtb

   u-boot => setenv fdtfile imx8mp-evk-ar0144.dtb
   u-boot => saveenv
   u-boot => boot

6. Identify v4l2 capture device id for VIV (platform:viv0)
   
   v4l2-ctl --list-devices

7. Use v4l2src device =</dev/video#> as the identified v4l2 caputre device id

   gst-launch-1.0 -v v4l2src device=/dev/video2 ! "video/x-raw,format=YUY2,width=1280,height=800" ! queue ! waylandsink 


For more information on how to use i.MX Camera Software Pack, please refer to
[i.MX Camera Software Pack App Note](https://www.nxp.com/docs/en/application-note/AN14376.pdf)

## Licensing

This repository is licensed under the GPL-2.0-only License.
