Hi, I enabled SC500AI sensor in build configuration and created duo 256m sd card image successfully. But When I run sensor_test app I am getting below output repeatedly.
[root@milkv-duo]/mnt/data# sensor_test
[sys_vi_init]-41: MMF Version:7e0cc6a08-musl_riscv64
[SAMPLE_COMM_SNS_ParseIni]-1952: Parse /mnt/data/sensor_cfg.ini
[parse_source_devnum]-1607: devNum = 1
[parse_sensor_name]-1688: sensor = SMS_SC500AI_MIPI_5M_30FPS_10BIT
[parse_sensor_busid]-1716: bus_id = 2
[parse_sensor_i2caddr]-1727: sns_i2c_addr = 30
[parse_sensor_mipidev]-1738: mipi_dev = 0
[parse_sensor_laneid]-1749: Lane_id = 2, 0, 3, 1, 4
[parse_sensor_pnswap]-1760: pn_swap = 0, 0, 0, 0, 0
[SAMPLE_PLAT_SYS_INIT]-72: common pool[0] BlkSize 7188480
Calling sensor PatchRxAttr()
ISP Vipipe(0) Allocate pa(0x8e9d8000) va(0x0x3fd2ee3000) size(291120)
stSnsrMode.u16Width 2880 stSnsrMode.u16Height 1620 25.000000 wdrMode 0 pstSnsObj 0xf43e0
[SAMPLE_COMM_VI_StartMIPI]-483: sensor 0 stDevAttr.devno 0
awbInit ver 6.8@2021500
0 R:1400 B:3100 CT:2850
1 R:1500 B:2500 CT:3900
2 R:2300 B:1600 CT:6500
Golden 1024 1024 1024
WB Quadratic:0
isWdr:0
ViPipe:0,===SC500AI 1620P 30fps 10bit LINE Init OK!===
[SAMPLE_COMM_ISP_Thread]-95: ISP Dev 0 running!
[main]-578: ---Basic------------------------------------------------
[main]-579: 1: dump vi raw frame
[main]-580: 2: dump vi yuv frame
[main]-581: 3: set chn flip/mirror
[main]-582: 4: linear wdr switch
[main]-583: 5: AE debug
[main]-584: 6: sensor dump
[main]-585: 7: sensor proc
[main]-586: 255: exit
[main]-587: input your choice:
Module: [MIPI_RX], Build Time[#1 PREEMPT Mon May 22 02:53:29 CST 2023]
------------Combo DEV ATTR--------------
Devno WorkMode DataType WDRMode LinkId PN Swap SyncMode DataEndian SyncCodeEndian
0 MIPI RAW10 NONE 2, 0, 3, 1, 4 0, 0, 0, 0, 0 N/A N/A N/A
------------MIPI info-------------------
Devno EccErr CrcErr HdrErr WcErr fifofull decode
0 17599 0 0 0 0 raw10
Physical: D0 D1 D2 D3 D4 D5
0 88 0 2 88 0
Digital: D0 D1 D2 D3 CK_HS CK_ULPS CK_STOP CK_ERR Deskew
hs_idle hs_idle hs_hst hs_hst 1 0 0 0 start
[VI BE_Dbg_Info]
VIPreBEDoneSts :0x0 VIPreBEDmaIdleStatus :0x7
[VI Post_Dbg_Info]
VIIspTopStatus :0x3ff
[VI DMA_Dbg_Info]
VIWdma0ErrStatus :0x3000000 VIWdma0IdleStatus :0xffffffff
VIWdma1ErrStatus :0x3000000 VIWdma1IdleStatus :0xffffffff
VIRdmaErrStatus :0x3000000 VIRdmaIdleStatus :0xffffffff
[VI ISP_PIPE_A FE_Dbg_Info]
VIPreFERawDbgSts :0x3ff VIPreFEDbgInfo :0x3f
[VI ISP_PIPE_A]
VIOutImgWidth :2880
VIOutImgHeight :1620
VIInImgWidth :2880
VIInImgHeight :1620
VIDevFPS :2457
VIFPS : 0
VISofCh0Cnt :5414
VIPreFECh0Cnt : 0
VIPreBECh0Cnt : 0
VIPostCnt : 0
VIDropCnt : 0
VIDumpCnt : 0
[VI ISP_PIPE_A Csi_Dbg_Info]
VICsiIntStatus0 :0x3
VICsiIntStatus1 :0x0
VICsiCh0Dbg :0x0
VICsiCh1Dbg :0x0
VICsiOverFlowCnt : 0
VICsiCh0WidthGTCnt : 0
VICsiCh0WidthLSCnt : 0
VICsiCh0HeightGTCnt : 0
VICsiCh0HeightLSCnt : 105
Module: [MIPI_RX], Build Time[#1 PREEMPT Mon May 22 02:53:29 CST 2023]
------------Combo DEV ATTR--------------
Devno WorkMode DataType WDRMode LinkId PN Swap SyncMode DataEndian SyncCodeEndian
0 MIPI RAW10 NONE 2, 0, 3, 1, 4 0, 0, 0, 0, 0 N/A N/A N/A
------------MIPI info-------------------
Devno EccErr CrcErr HdrErr WcErr fifofull decode
0 35880 0 0 0 0 raw10
Physical: D0 D1 D2 D3 D4 D5
20 2 0 80 8 0
Digital: D0 D1 D2 D3 CK_HS CK_ULPS CK_STOP CK_ERR Deskew
hs_idle hs_idle hs_hst hs_hst 1 0 0 0 start
[VI BE_Dbg_Info]
VIPreBEDoneSts :0x0 VIPreBEDmaIdleStatus :0x7
[VI Post_Dbg_Info]
VIIspTopStatus :0x3ff
[VI DMA_Dbg_Info]
VIWdma0ErrStatus :0x3000000 VIWdma0IdleStatus :0xffffffff
VIWdma1ErrStatus :0x3000000 VIWdma1IdleStatus :0xffffffff
VIRdmaErrStatus :0x3000000 VIRdmaIdleStatus :0xffffffff
[VI ISP_PIPE_A FE_Dbg_Info]
VIPreFERawDbgSts :0x3ff VIPreFEDbgInfo :0x3f
[VI ISP_PIPE_A]
VIOutImgWidth :2880
VIOutImgHeight :1620
VIInImgWidth :2880
VIInImgHeight :1620
VIDevFPS :2538
VIFPS : 0
VISofCh0Cnt :8008
VIPreFECh0Cnt : 0
VIPreBECh0Cnt : 0
VIPostCnt : 0
VIDropCnt : 0
VIDumpCnt : 0
[VI ISP_PIPE_A Csi_Dbg_Info]
VICsiIntStatus0 :0x3
VICsiIntStatus1 :0x0
VICsiCh0Dbg :0x0
VICsiCh1Dbg :0x0
VICsiOverFlowCnt : 0
VICsiCh0WidthGTCnt : 0
VICsiCh0WidthLSCnt : 0
VICsiCh0HeightGTCnt : 0
VICsiCh0HeightLSCnt : 160
The EccErr is non zero, which means lane mapping issue, but I checked all possible combinations and same issue.
Am I need to add/enable any extra code/configuration in kernel?