1976
- 收藏
- 点赞
- 分享
- 举报
IMX290+3516cv300适配问题
小弟最近在做IMX290+3516cv300的适配,始终无法出图,请各位大神指点。
目标板的sensor是走的spi,海思默认的imx290是i2c。
修改了网上能找到的spi驱动后,/proc/umap/hi_mipi总算有了输出如下:
cat /proc/umap/hi_mipi
Module: [MIPI], Build Time: [Dec 7 2018, 15:19:50]
-----Combo DEV ATTR-----------------------------------------------------------------
Devno WorkMode RawDataType LinkIdx LaneCount LaneId PhyData
0 LVDS RAW12 0 4 0, 1, 2, 3 0x8080808
-----Mipi Crop Info-----------------------------------------------------------------
Devno bEnCrop ImgX ImgY ImgW ImgH
0 0 0 0 0 0
-----lvds detect info----------------------------------------------------
Devno WDR_Frame width height
0 LEF 1920 1110
0 SEF1 0 0
0 SEF2 0 0
0 SEF3 0 0
-----fsm timeout and escape info---------------------------------------------
link clkTOutCnt d0TOutCnt d1TOutCnt d2TOutCnt d3TOutCnt clkEscCnt d0EscCnt d1EscCnt d2EscCnt d3EscCnt
0 0 0 0 0 0 0 0 0 0 0
-----LVDS/SUBLVDS/HISPI phy and lane state info--------------------------------------
Devno StatErr Link0WErr Link0RErr Link0HSynErr Link0VSynErr
0 0 0 0 0 0
Devno Lane0Err Lane1Err Lane2Err Lane3Err
0 0 0 0 0
-----ALING Err info--------------------------------------
Devno FIFO_FullErr Lane0Err Lane1Err Lane2Err Lane3Err
0 0 0 0 0 0
但是vi的输出很奇怪,有发送帧,但是帧率奇低。日志如下:
cat /proc/umap/vi
[VIU] Version: [Hi3516CV300_MPP_V1.0.3.0 B020 Release], Build Time: [Nov 26 2017, 12:44:21]
-----MODULE PARAM---------------------------------------------------------------
detect_err_frame drop_err_frame stop_int_level yuv_skip delay_line
10 0 0 0 16
-----VI-VPSS ONLINE STATE-------------------------------------------------------
OnlineState
offline
-----VI MODULE STATE------------------------------------------------------------
ModuleState
Started
-----VI PORT SIZE---------------------------------------------------------------
Dev WIDTH HEIGHT
0 1920 1110
-----VI DEV ATTR1---------------------------------------------------------------
Dev IntfM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2
0 LVDS 1Mux fff00000 0 P -1 -1 -1
-----VI DEV ATTR2---------------------------------------------------------------
AD3 Seq DPath DType DRev CapX CapY CapW CapH BasW BasH Comp HReph VReph
-1 N/A ISP RGB N 0 0 1920 1080 0 0 N NONE NONE
-----VI HIGH DEV ATTR 1---------------------------------------------------------
Dev InputM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2
-----VI HIGH DEV ATTR 2---------------------------------------------------------
AD3 Seq CombM CompM ClkM Fix FldP DPath DType DRev
-----VI HIGH DEV ATTR 3---------------------------------------------------------
CapX CapY CapW CapH BasW BasH Comp HReph VReph
-----VI PHYCHN ATTR 1-----------------------------------------------------------
PhyChn CapX CapY CapW CapH DstW DstH CapSel Mirror Flip
0 0 0 1920 1080 1920 1080 both N N
-----VI PHYCHN ATTR 2-----------------------------------------------------------
IntEn PixFom SrcRat DstRat Comp
Y SP420 30 30 N
-----VI PHYCHN STATUS 1---------------------------------------------------------
PhyChn Dev IntCnt VbFail LosInt TopLos BotLos BufCnt IntT
0 0 30 0 1 0 1 2 316
-----VI PHYCHN STATUS 2---------------------------------------------------------
SendT Field Stride MaxIntT IntGapT MaxGapT LIntCnt ThrCnt AutoDis
0 frm 1920 417 30850019 30850043 0 0 0
-----VI PHYCHN STATUS 3---------------------------------------------------------
CasAutD TmgErr ccErrN IntRat
0 0 0 1
-----VI LDC ATTR----------------------------------------------------------------
PhyChn ViewType Ratio minRatio COffX COffY Enable
0 All 0 0 0 0 N
-----VI FLASH ATTR--------------------------------------------------------------
Dev Mode StartTime DuraTime InterVal CapIdx Enable FlashedNum
0 Once 0 0 0 0 N 0
-----VI CSC ATTR----------------------------------------------------------------
Dev Type HueVal ContrVal LumaVal StatuVal TVMode
0 709 50 50 50 50 N
-----VI DCI ATTR----------------------------------------------------------------
Dev Enable BlackGain ContrGain LightGain ManBlendEn BlendRatio BlackStretchEn
0 Y 32 32 32 NA NA NA
-----VI DIS ATTR----------------------------------------------------------------
Dev Enable
0 N
-----VI VC NUMBER---------------------------------------------------------------
Dev Linear DES0 DES1 DES2
0 1 0 0 0
-----VI WDR ATTR----------------------------------------------------------------
Dev Mode BufNum DstW DstH PoolId VcNum DesNum State Comp
0 NONE 0 1920 1080 -1 0 0 Init N
-----VI WDR DES STATUS----------------------------------------------------------
Dev Idx IntGap IntCnt CcErrCnt
-----VI WDR SRC STATUS----------------------------------------------------------
Dev Idx IntGap IntCnt CcErrCnt
-----VI WDR COMBINE STATUS------------------------------------------------------
Dev IntGap IntCnt CcErrCnt
0 0 0 0
-----VI EXTCHN ATTR 1-----------------------------------------------------------
ExtChn BindChn CropEn CropX CropY CropW CropH DstW DstH PixFom
-----VI EXTCHN ATTR 2-----------------------------------------------------------
SrcRat DstRat Depth Comp
-----VI CHN STATUS--------------------------------------------------------------
ViChn bEnUsrP FrmTime FrmRate SendCnt SwLost Rotate Depth
0 N 30850018 1/10 29 0 NONE 0
-----VI CHN CALL VGS STATUS 1---------------------------------------------------
ViChn UsrBgnNOk UsrCancel UsrEndOk UsrCbOk
-----VI CHN CALL VGS STATUS 2---------------------------------------------------
ViChn CovBgnNOk CovCancel CovEndOk CovCbOk
-----VI CHN CALL VGS STATUS 3---------------------------------------------------
ViChn OsdBgnNOk OsdCancel OsdEndOk OsdCbOk
-----VI CHN CALL VGS STATUS 4---------------------------------------------------
ViChn ScaleNOk SclCancel SclEndOk SclCbOk
-----VI CHN CALL VGS STATUS 5---------------------------------------------------
ViChn RotateNOk RotCancel RotEndOk RotCbOk
-----VI CHN CALL VGS STATUS 6---------------------------------------------------
ViChn LDCNOk LDCCancel LDCEndOk LDCCbOk
-----VI CHN CALL VGS STATUS 7---------------------------------------------------
ViChn OnlineNOk OnlCancel OnlEndOk OnlCbOk
-----VI CHN CALL FISHEYE STATUS 8-----------------------------------------------
ViChn PMFNOk PMFCancel PMFEndOk PMFCbOk
目标板的sensor是走的spi,海思默认的imx290是i2c。
修改了网上能找到的spi驱动后,/proc/umap/hi_mipi总算有了输出如下:
cat /proc/umap/hi_mipi
Module: [MIPI], Build Time: [Dec 7 2018, 15:19:50]
-----Combo DEV ATTR-----------------------------------------------------------------
Devno WorkMode RawDataType LinkIdx LaneCount LaneId PhyData
0 LVDS RAW12 0 4 0, 1, 2, 3 0x8080808
-----Mipi Crop Info-----------------------------------------------------------------
Devno bEnCrop ImgX ImgY ImgW ImgH
0 0 0 0 0 0
-----lvds detect info----------------------------------------------------
Devno WDR_Frame width height
0 LEF 1920 1110
0 SEF1 0 0
0 SEF2 0 0
0 SEF3 0 0
-----fsm timeout and escape info---------------------------------------------
link clkTOutCnt d0TOutCnt d1TOutCnt d2TOutCnt d3TOutCnt clkEscCnt d0EscCnt d1EscCnt d2EscCnt d3EscCnt
0 0 0 0 0 0 0 0 0 0 0
-----LVDS/SUBLVDS/HISPI phy and lane state info--------------------------------------
Devno StatErr Link0WErr Link0RErr Link0HSynErr Link0VSynErr
0 0 0 0 0 0
Devno Lane0Err Lane1Err Lane2Err Lane3Err
0 0 0 0 0
-----ALING Err info--------------------------------------
Devno FIFO_FullErr Lane0Err Lane1Err Lane2Err Lane3Err
0 0 0 0 0 0
但是vi的输出很奇怪,有发送帧,但是帧率奇低。日志如下:
cat /proc/umap/vi
[VIU] Version: [Hi3516CV300_MPP_V1.0.3.0 B020 Release], Build Time: [Nov 26 2017, 12:44:21]
-----MODULE PARAM---------------------------------------------------------------
detect_err_frame drop_err_frame stop_int_level yuv_skip delay_line
10 0 0 0 16
-----VI-VPSS ONLINE STATE-------------------------------------------------------
OnlineState
offline
-----VI MODULE STATE------------------------------------------------------------
ModuleState
Started
-----VI PORT SIZE---------------------------------------------------------------
Dev WIDTH HEIGHT
0 1920 1110
-----VI DEV ATTR1---------------------------------------------------------------
Dev IntfM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2
0 LVDS 1Mux fff00000 0 P -1 -1 -1
-----VI DEV ATTR2---------------------------------------------------------------
AD3 Seq DPath DType DRev CapX CapY CapW CapH BasW BasH Comp HReph VReph
-1 N/A ISP RGB N 0 0 1920 1080 0 0 N NONE NONE
-----VI HIGH DEV ATTR 1---------------------------------------------------------
Dev InputM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2
-----VI HIGH DEV ATTR 2---------------------------------------------------------
AD3 Seq CombM CompM ClkM Fix FldP DPath DType DRev
-----VI HIGH DEV ATTR 3---------------------------------------------------------
CapX CapY CapW CapH BasW BasH Comp HReph VReph
-----VI PHYCHN ATTR 1-----------------------------------------------------------
PhyChn CapX CapY CapW CapH DstW DstH CapSel Mirror Flip
0 0 0 1920 1080 1920 1080 both N N
-----VI PHYCHN ATTR 2-----------------------------------------------------------
IntEn PixFom SrcRat DstRat Comp
Y SP420 30 30 N
-----VI PHYCHN STATUS 1---------------------------------------------------------
PhyChn Dev IntCnt VbFail LosInt TopLos BotLos BufCnt IntT
0 0 30 0 1 0 1 2 316
-----VI PHYCHN STATUS 2---------------------------------------------------------
SendT Field Stride MaxIntT IntGapT MaxGapT LIntCnt ThrCnt AutoDis
0 frm 1920 417 30850019 30850043 0 0 0
-----VI PHYCHN STATUS 3---------------------------------------------------------
CasAutD TmgErr ccErrN IntRat
0 0 0 1
-----VI LDC ATTR----------------------------------------------------------------
PhyChn ViewType Ratio minRatio COffX COffY Enable
0 All 0 0 0 0 N
-----VI FLASH ATTR--------------------------------------------------------------
Dev Mode StartTime DuraTime InterVal CapIdx Enable FlashedNum
0 Once 0 0 0 0 N 0
-----VI CSC ATTR----------------------------------------------------------------
Dev Type HueVal ContrVal LumaVal StatuVal TVMode
0 709 50 50 50 50 N
-----VI DCI ATTR----------------------------------------------------------------
Dev Enable BlackGain ContrGain LightGain ManBlendEn BlendRatio BlackStretchEn
0 Y 32 32 32 NA NA NA
-----VI DIS ATTR----------------------------------------------------------------
Dev Enable
0 N
-----VI VC NUMBER---------------------------------------------------------------
Dev Linear DES0 DES1 DES2
0 1 0 0 0
-----VI WDR ATTR----------------------------------------------------------------
Dev Mode BufNum DstW DstH PoolId VcNum DesNum State Comp
0 NONE 0 1920 1080 -1 0 0 Init N
-----VI WDR DES STATUS----------------------------------------------------------
Dev Idx IntGap IntCnt CcErrCnt
-----VI WDR SRC STATUS----------------------------------------------------------
Dev Idx IntGap IntCnt CcErrCnt
-----VI WDR COMBINE STATUS------------------------------------------------------
Dev IntGap IntCnt CcErrCnt
0 0 0 0
-----VI EXTCHN ATTR 1-----------------------------------------------------------
ExtChn BindChn CropEn CropX CropY CropW CropH DstW DstH PixFom
-----VI EXTCHN ATTR 2-----------------------------------------------------------
SrcRat DstRat Depth Comp
-----VI CHN STATUS--------------------------------------------------------------
ViChn bEnUsrP FrmTime FrmRate SendCnt SwLost Rotate Depth
0 N 30850018 1/10 29 0 NONE 0
-----VI CHN CALL VGS STATUS 1---------------------------------------------------
ViChn UsrBgnNOk UsrCancel UsrEndOk UsrCbOk
-----VI CHN CALL VGS STATUS 2---------------------------------------------------
ViChn CovBgnNOk CovCancel CovEndOk CovCbOk
-----VI CHN CALL VGS STATUS 3---------------------------------------------------
ViChn OsdBgnNOk OsdCancel OsdEndOk OsdCbOk
-----VI CHN CALL VGS STATUS 4---------------------------------------------------
ViChn ScaleNOk SclCancel SclEndOk SclCbOk
-----VI CHN CALL VGS STATUS 5---------------------------------------------------
ViChn RotateNOk RotCancel RotEndOk RotCbOk
-----VI CHN CALL VGS STATUS 6---------------------------------------------------
ViChn LDCNOk LDCCancel LDCEndOk LDCCbOk
-----VI CHN CALL VGS STATUS 7---------------------------------------------------
ViChn OnlineNOk OnlCancel OnlEndOk OnlCbOk
-----VI CHN CALL FISHEYE STATUS 8-----------------------------------------------
ViChn PMFNOk PMFCancel PMFEndOk PMFCbOk
我来回答
回答0个
时间排序
认可量排序
暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-11-05 10:52:17
-
2018-01-13 14:42:14
-
2020-06-01 14:34:52
-
2019-02-13 17:17:56
-
2020-11-11 17:28:26
-
2020-11-22 14:29:43
-
2020-11-11 17:40:25
-
2020-05-06 11:18:30
-
2017-08-12 00:55:46
-
2017-08-14 22:35:48
-
2021-02-02 17:50:48
-
2021-06-08 10:19:52
-
2016-02-24 10:36:49
-
2018-12-27 15:52:20
-
2017-12-22 09:06:37
-
2017-02-22 09:53:32
-
2018-07-04 14:14:47
-
2018-04-16 10:38:53
-
2018-04-01 20:40:34
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认