Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPSS 硬件加速测试 Failed on LicheeNano Board #134

Open
szpapas2020 opened this issue Aug 3, 2024 · 1 comment
Open

VPSS 硬件加速测试 Failed on LicheeNano Board #134

szpapas2020 opened this issue Aug 3, 2024 · 1 comment

Comments

@szpapas2020
Copy link

这里是输出结果,

------------Combo DEV ATTR--------------
Devno WorkMode DataType WDRMode LinkId PN Swap SyncMode DataEndian SyncCodeEndian
0 MIPI RAW10 NONE 2, 1, 0,-1,-1 0, 0, 0, 0, 0 N/A N/A N/A

LinkID 指向的是2,1,0

实际GC4653的MIPI是 4,3,2-1-1 不知道是不是这个原因。

# cat sensor_cfg.ini
[source]

;type = SOURCE_USER_FE

dev_num = 1

; section for sensor

[sensor]

; sensor name
name = GCORE_GC4653_MIPI_4M_30FPS_10BIT

bus_id = 4

sns_i2c_addr = 29

mipi_dev = 0

lane_id = 4, 3, 2, -1, -1

pn_swap = 0, 0, 0, 0, 0

mclk_en = 1

mclk = 1

# export LD_LIBRARY_PATH=/mnt/system/usr/lib/:$LD_LIBRARY_PATH
# ./opencv-mobile-test
opencv-mobile MIPI CSI camera with cvi
opencv-mobile HW JPG decoder with cvi
ISP Vipipe(0) Allocate pa(0x8c8cc000) va(0x0x3fd1d5f000) size(291424)
awbInit ver 6.9@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,===GC4653 1440P 30fps 10bit LINEAR Init OK!===
binName = /mnt/cfg/param/cvi_sdr_bin
********************************************************************************
cvi_bin_isp message
gerritId:      97347          commitId:      fc6ce647
md5:           d6db2297ddfd44e8252c1f3f888f47b2
sensorNum      1
sensorName0    4653

PQBIN message
gerritId:
              commitId:      fc6ce647
md5:           d6db2297ddfd44e8252c1f3f888f47b2
sensorNum      1
sensorName0    4653

author:        lxowalle       desc:          gc4653 30fps
createTime:    2024-03-26 13:41:34version:
tool Version:       v3.0.5.48           mode:
********************************************************************************
320 x 240

Module: [MIPI_RX], Build Time[#7 PREEMPT Sat Aug 3 00:06:17 CST 2024]

------------Combo DEV ATTR--------------
   Devno  WorkMode  DataType   WDRMode         LinkId        PN Swap  SyncMode  DataEndian  SyncCodeEndian
       0      MIPI     RAW10      NONE  2, 1, 0,-1,-1  0, 0, 0, 0, 0       N/A         N/A             N/A

------------MIPI info-------------------
 Devno EccErr CrcErr HdrErr WcErr fifofull   decode
     0      0      0      0     0        0  unknown
  Physical:       D0       D1       D2       D3       D4       D5
                   0        0        0        0        0        0
   Digital:       D0       D1       D2       D3    CK_HS  CK_ULPS  CK_STOP   CK_ERR   Deskew
             hs_idle  hs_idle  hs_idle  hs_idle        1        0        0        0     idle
VI_SDK_IOC_S_CTRL - vi_sdk_get_chn_frame NG, Operation not permitted
CVI_VI_GetChnFrame failed c00e8040
[VI BE_Dbg_Info]
VIPreBEDoneSts          :0x0            VIPreBEDmaIdleStatus    :0x0
[VI Post_Dbg_Info]
VIIspTopStatus          :0x0
[VI DMA_Dbg_Info]
VIWdma0ErrStatus        :0x0    VIWdma0IdleStatus       :0x0
VIWdma1ErrStatus        :0x0    VIWdma1IdleStatus       :0x0
VIRdmaErrStatus         :0x0    VIRdmaIdleStatus        :0x0
[VI ISP_PIPE_A FE_Dbg_Info]
VIPreFERawDbgSts        :0x0            VIPreFEDbgInfo          :0x0
[VI ISP_PIPE_A]
VIOutImgWidth           :2560
VIOutImgHeight          :1440
VIInImgWidth            :2560
VIInImgHeight           :1440
VIDevFPS                :   0
VIFPS                   :   0
VISofCh0Cnt             :   0
VIPreFECh0Cnt           :   0
VIPreBECh0Cnt           :   0
VIPostCnt               :   0
VIDropCnt               :   0
VIDumpCnt               :   0
[VI ISP_PIPE_A Csi_Dbg_Info]
VICsiIntStatus0         :0x0
VICsiIntStatus1         :0x0
VICsiCh0Dbg             :0x0
VICsiCh1Dbg             :0x0
VICsiOverFlowCnt        :   0
VICsiCh0WidthGTCnt      :   0
VICsiCh0WidthLSCnt      :   0
VICsiCh0HeightGTCnt     :   0
VICsiCh0HeightLSCnt     :   0

Module: [MIPI_RX], Build Time[#7 PREEMPT Sat Aug 3 00:06:17 CST 2024]

------------Combo DEV ATTR--------------
   Devno  WorkMode  DataType   WDRMode         LinkId        PN Swap  SyncMode  DataEndian  SyncCodeEndian
       0      MIPI     RAW10      NONE  2, 1, 0,-1,-1  0, 0, 0, 0, 0       N/A         N/A             N/A

------------MIPI info-------------------
 Devno EccErr CrcErr HdrErr WcErr fifofull   decode
     0      0      0      0     0        0  unknown
  Physical:       D0       D1       D2       D3       D4       D5
                   0        0        0        0        0        0
   Digital:       D0       D1       D2       D3    CK_HS  CK_ULPS  CK_STOP   CK_ERR   Deskew
             hs_idle  hs_idle  hs_idle  hs_idle        1        0        0        0     idle
VI_SDK_IOC_S_CTRL - vi_sdk_get_chn_frame NG, Operation not permitted
CVI_VI_GetChnFrame failed c00e8040
[VI BE_Dbg_Info]
VIPreBEDoneSts          :0x0            VIPreBEDmaIdleStatus    :0x0
[VI Post_Dbg_Info]
VIIspTopStatus          :0x0
[VI DMA_Dbg_Info]
VIWdma0ErrStatus        :0x0    VIWdma0IdleStatus       :0x0
VIWdma1ErrStatus        :0x0    VIWdma1IdleStatus       :0x0
VIRdmaErrStatus         :0x0    VIRdmaIdleStatus        :0x0
[VI ISP_PIPE_A FE_Dbg_Info]
VIPreFERawDbgSts        :0x0            VIPreFEDbgInfo          :0x0
[VI ISP_PIPE_A]
VIOutImgWidth           :2560
VIOutImgHeight          :1440
VIInImgWidth            :2560
VIInImgHeight           :1440
VIDevFPS                :   0
VIFPS                   :   0
VISofCh0Cnt             :   0
VIPreFECh0Cnt           :   0
VIPreBECh0Cnt           :   0
VIPostCnt               :   0
VIDropCnt               :   0
VIDumpCnt               :   0
[VI ISP_PIPE_A Csi_Dbg_Info]
VICsiIntStatus0         :0x0
VICsiIntStatus1         :0x0
VICsiCh0Dbg             :0x0
VICsiCh1Dbg             :0x0
VICsiOverFlowCnt        :   0
VICsiCh0WidthGTCnt      :   0
VICsiCh0WidthLSCnt      :   0
VICsiCh0HeightGTCnt     :   0
VICsiCh0HeightLSCnt     :   0

@szpapas2020
Copy link
Author

image
LicheRV Nano 70405的硬件是2,1,0, 新版的70415和70418用的是 4,3,2. 能不能修改成从sensor_cfg.ini 文件中读取

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant