How to test raw camera sensor for imx8m mini

cancel
Showing results for 
Search instead for 
Did you mean: 

How to test raw camera sensor for imx8m mini

814 Views
Contributor III

Hello community
I am developing drivers for raw8 camera sensor based on ov5647_mipi.c using for board imx8m mini EVK.
I have identified the camera and confirmed the pixel format is BA81 as the log below. I tried many gstreamer commands to save the .raw file but all failed.

***************************************************************

root@imx8mmevk:~# insmod gc2053_camera_mipi_113.ko
[ 395.316860] gc2053_mipi 2-0037: 2-0037 supply DOVDD not found, using dummy regulator
[ 395.324696] gc2053_mipi 2-0037: 2-0037 supply DVDD not found, using dummy regulator
[ 395.332457] gc2053_mipi 2-0037: 2-0037 supply AVDD not found, using dummy regulator
[ 396.288841] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: gc2053_mipi 2-0037
[ 396.297214] camera gc2053_mipi is found
root@imx8mmevk:~# v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'BA81'
Name : 8-bit Bayer BGBG/GRGR
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 2592x1944
Interval: Discrete 0.067s (15.000 fps)

root@imx8mmevk:~#

***************************************************************
Let me ask which gstreamer command is used to check the raw camera sensor for imx8? How to know the camera works well?
Thank so much.

0 Kudos
1 Reply

140 Views
NXP TechSupport
NXP TechSupport

Hi タイ チャン

nxp linux bsp supports MIPI CSI camera (part number: MINISASTOCSI)

for camera capture one can use following command:
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! waylandsink

Unfortunately currently there is no documentation for adding support for new camera, may be useful to check:

mxc_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

https://boundarydevices.com/yocto-release-for-i-mx-8mm/ 

DART-MX8M CSI - Variscite Wiki 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos