V853 适配IMX386摄像头 ISP配置
-
v853通过4lane完成了连接IMX386摄像头,也配置了ISP600,isp编译也没报错,opencv也编译成功了,但是isp因为没有对应配置导致出错
错误如下cannot find imx386_mipi_1920_1080_30_0_0 isp config, use gc2053_mipi_1920_1080_20_0_0
opencv_camear运行如下
root@TinaLinux:/# opencv_camera
[ 4433.308007] [imx386_mipi]PWR_ON!_4Lane
[ 4433.322478] [imx386_mipi]sensor_init, version 0301
[ 4433.328554] [imx386_mipi]camera raw sensor 0x386
Successfully opened video device[ 4433.335764] [VIN_ERR]video0 has already stream off
.
[ 4433.344530] [imx386_mipi]sensor_init, version 0301
[ 4433.350472] [imx386_mipi]camera raw sensor 0x386
[ISP]video device name is vin_video0
cutils:D/AWIspApi: F:awIspGetIspId, L:48, video0 --> isp1[ISP]open isp device[1] success!
[ISP_WARN]VIDIOC_VIN_GET_SENSOR_OTP_INFO return error:Invalid argument
[ISP]otp disabled, msc use 1024
[ISP]get isp_ctx from /mnt/isp1_1920_1080_30_0_ctx_sav[ 4433.383946] [imx386_mipi]sensor_s_stream on = 1, 1920*1080 fps: 30 code: 300f
ed.bin success!!!
[ISP_WARN]cannot find imx386_mipi_1920_1080_30_0_0 isp config, use gc2053_mipi_1920_1080_20_0_0 -> [gc2053_mipi_default_ini_v853]
[ISP]create isp1 server thread!
[ 4433.408060] [imx386_mipi]sensor_reg_init
[ 4433.735844] [VIN_ERR]scaler0 frame lost!!!
[ 4433.889966] [VIN_ERR]scaler0 frame lost!!!
[ 4434.044091] [VIN_ERR]scaler0 frame lost!!!
[ 4434.198218] [VIN_ERR]scaler0 frame lost!!!
[ 4434.352344] [VIN_ERR]scaler0 frame lost!!!
[ 4434.506471] [VIN_ERR]scaler0 frame lost!!!
[ 4434.660595] [VIN_ERR]scaler0 frame lost!!!
[ 4434.814721] [VIN_ERR]scaler0 frame lost!!!
[ 4434.968847] [VIN_ERR]scaler0 frame lost!!!
[ 4435.122974] [VIN_ERR]scaler0 frame lost!!!
^CGot signal 2, exiting ...
[ 4435.277102] [VIN_ERR]scaler0 frame lost!!!
[ 4435.384082] [VIN_WARN]Video0 over 2s no frame received!!!
[ 4435.431224] [VIN_ERR]scaler0 frame lost!!!
[ 4435.585351] [VIN_ERR]scaler0 frame lost!!!
[ 4435.739476] [VIN_ERR]scaler0 frame lost!!!
[ 4435.893602] [VIN_ERR]scaler0 frame lost!!!
[ 4436.047730] [VIN_ERR]scaler0 frame lost!!!
[ 4436.201855] [VIN_ERR]scaler0 frame lost!!!
[ 4436.355982] [VIN_ERR]scaler0 frame lost!!!CameraDemo可以拍摄图片,但是只能保存为raw格式不能通过isp输出bmp 如下
root@TinaLinux:/# camerademo
[CAMERA][ 4473.142810] [imx386_mipi]sensor_init, version 0301
******************************[ 4473.151471] [imx386_mipi]camera raw sensor 0x386
**
[CAMERA] *
[CAMERA] this is camera test. [ 4473.168685] [imx386_mipi]sensor_s_stream on = 1, 19201080 fps: 30 code: 300f
*
[CAMERA] *
[CAMERA]************************************
[CAMERA]************************************[ 4473.192759] [imx386_mipi]sensor_reg_init
[CAMERA] open /dev/video0!
[CAMERA]**********************************************************
[CAMERA]**********************************************************
[CAMERA] The path to data saving is /tmp.
[CAMERA] The number of captured photos is 5.
[CAMERA] save bmp format
[CAMERA]**********************************************************
[CAMERA] Using format parameters RGGB10.
[CAMERA] camera pixelformat: RGGB10
[CAMERA] Resolution size : 1920 * 1080
[CAMERA] The photo save path is /tmp.
[CAMERA] The number of photos taken is 5.
begin ion_alloc_open
pid: 1208, g_alloc_context = 0x39950
[CAMERA] Camera capture framerate is 30/1
[CAMERA] VIDIOC_S_FMT succeed
[CAMERA] fmt.type = 9
[CAMERA] fmt.fmt.pix_mp.width = 1920
[CAMERA] fmt.fmt.pix_mp.height = 1080
[CAMERA] fmt.fmt.pix_mp.pixelformat = RGGB10
[CAMERA] fmt.fmt.pix_mp.field = 1
[CAMERA] camera.nplanes = 1
[CAMERA] stream on succeed
[CAMERA] camera0 capture num is [0]
[CAMERA_PROMPT] the time interval from the start to the first frame is 138 ms
[CAMERA] camera0 capture num is [1]
[CAMERA] camera0 capture num is [2]
[CAMERA] camera0 capture num is [3]
[CAMERA] camera0 capture num is [4]
[CAMERA] Capture thread finish[ 4473.629398] [imx386_mipi]sensor_s_stream on = 0, 1920*1080 fps: 30 code: 300f[CAMERA] close /dev/video0
ion_alloc_close
pid: 1208, release g_alloc_context = 0x39950源码中openwrt/package/allwinner/vision/libAWIspAPI/src/isp600/isp_cfg/SENSOR-H/内只有gc2053和gc4663两个配置
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号