Hello,
I am currently working with a Milk-V Duo system and facing an issue when running the opencv-mobile-test from the second test example (opencv-mobile | Milk-V). The test fails with the error message:
Cannot open ‘/dev/cvi-vo’: 2, No such file or directory.
Here is the full log output from the test:
opencv-mobile MIPI CSI camera with cvi
opencv-mobile HW JPG decoder with cvi
ISP Vipipe(0) Allocate pa(0x830a3000) va(0x0x3fecd36000) size(291016)
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,===GC2083 1080P 30fps 10bit LINE Init OK!===
binName = /mnt/cfg/param/cvi_sdr_bin
cvi_bin_isp message
gerritId: 36403 commitId: c69c5863e
md5: cab880835a2ad5184de5ed7762404b84
sensorNum 1
sensorName0 2083
PQBIN message
gerritId: 80171 commitId: 5c9d8fc5d
md5: ba5a510e093ad42db6788e6c2d13169e
sensorNum 3
sensorName0 2053
author: wanqiang.he desc: 思博慧CV1812H_GC2083_RGB_mode_V1.0.0
createTime: 2023-08-04 16:48:08version: V1.1
tool Version: v3.0.5.24 mode:
sensorName(0) mismatch, mwSns:2083 != pqBinSns:2053
Cannot open ‘/dev/cvi-vo’: 2, No such file or directory
320 x 240
0 R:1165 B:3087 CT:2688
1 R:1464 B:2327 CT:3937
2 R:1974 B:1613 CT:7225
Golden 1464 1024 2327
ISP Vipipe(0) Free pa(0x830a3000) va(0x0x3fecd36000)
gc2083_standby
Trace/breakpoint trap
I am unable to locate the cvi-vo device in /dev/, and the module does not appear to be loaded.
I have checked the system logs, and the following entries appear during the boot process:
[ 114.768043] cvi_img_device_run:437(): img(1) grp(0) start
[ 114.780050] cvi_vip_job_finish:844(): img(1) grp(0) finish
[ 115.782132] cvi_img_device_run:437(): img(1) grp(0) start
[ 115.794160] cvi_vip_job_finish:844(): img(1) grp(0) finish
[ 116.795779] cvi_img_device_run:437(): img(1) grp(0) start
[ 116.807791] cvi_vip_job_finish:844(): img(1) grp(0) finish
[ 117.809439] cvi_img_device_run:437(): img(1) grp(0) start
[ 117.821440] cvi_vip_job_finish:844(): img(1) grp(0) finish
[ 118.823540] cvi_img_device_run:437(): img(1) grp(0) start
[ 118.835555] cvi_vip_job_finish:844(): img(1) grp(0) finish
I tried checking if the module is loaded with the following command:
lsmod | grep cvi
And this was the output:
cvi_vc_driver 879138 0 [permanent]
cv180x_jpeg 25220 1 cvi_vc_driver,[permanent]
cv180x_vcodec 28451 2 cvi_vc_driver,cv180x_jpeg,[permanent]
cvi_mipi_rx 54306 0 [permanent]
cv180x_base 96472 7 cvi_vc_driver,cv180x_rgn,cv180x_dwa,cv180x_vpss,cv180x_vi,snsr_i2c,cvi_mipi_rx,[permanent]
cv180x_sys 64161 6 cvi_vc_driver,cv180x_rgn,cv180x_dwa,cv180x_vpss,cv180x_vi,cv180x_base,[permanent]
However, the cvi-vo module doesn’t appear in the list. The output includes several cvi-related devices, but no cvi-vo.
Any help on how to load or compile the missing cvi-vo module, or suggestions on what might be wrong with the current setup, would be greatly appreciated.