rtsmart os启动找不到/dev/video

Viewed 76

问题描述


我想要运行sample_uvc_dev_vicap测试用例,但报错找不到上述设备,启动log如下:
U-Boot SPL 2022.10-00007-g7164d1b3 (Oct 27 2025 - 08:08:43 +0000)
00000000: PMU Major Msg: End of CA training
00000000: PMU Major Msg: End of initialization
00000000: PMU Major Msg: End of read enable training
00000000: PMU Major Msg: End of fine write leveling
00000000: PMU Major Msg: End of read dq deskew training
00000000: PMU Major Msg: End of MPR read delay center optimization
00000000: PMU Major Msg: End of Write leveling coarse delay
00000000: PMU Major Msg: End of write delay center optimization
00000000: PMU Major Msg: End of read delay center optimization
00000000: PMU Major Msg: End of max read latency training
00000000: PMU Major Msg: Firmware run has completed
load image 306245 bytes, time 92726 us, speed 3000 KB/s

U-Boot 2022.10-00007-g7164d1b3 (Oct 27 2025 - 08:08:43 +0000)

CPU: rv64imafdcvsu
Model: kendryte k230 canmv
DRAM: 512 MiB
Core: 26 devices, 13 uclasses, devicetree: separate
MMC: mmc0@91580000: 0, mmc1@91581000: 1
Loading Environment from MMC... OK
In: serial@91400000
Out: serial@91400000
Err: serial@91400000
Net: No ethernet found.
Hit any key to stop autoboot: 0
load image 1664714 bytes, time 69915 us, speed 23000 KB/s
Jump to big hart

OpenSBI v1.2.2
heap: [0x004f6380 - 0x024f6380], size 32768 KB
page: [0x024f6388 - 0x0fffec00], size 224290 KB
lwIP-2.1.2 initialized!
[E/drv_touch] touch probe failed.
[I/SDIO] SD card capacity 30627840 KB.
found part[0], begin: 52428800, size: 10.0MB
found part[1], begin: 62914560, size: 500.0MB
found part[2], begin: 1073741824, size: 28.213GB
[I/sal.skt] Socket Abstraction Layer initialize success.
find sensor(ov5647_csi0) on csi0
Can't find sensor on csi1
Can't find sensor on csi2
vicap_mcm_init
#############SDK VERSION######################################
SDK : v0.5-20251028-204055-kevin-P920-3fa7ad3
nncase: 2.9.0
##############################################################
msh />/sdcard/micropython: command not found.
usb disconnect

msh />ls
Directory /:
bin
sdcard
data
udisk
dev
proc
etc
tmp
msh />ls /dev/video
No such directory

硬件板卡


canmv k230 v1.1

软件版本


CanMV_K230_V1P0_P1_rtsmart_local_nncase_v2.9.0.img.gz

2 Answers

image.png
你好,需要执行make rtsmart-menuconfig,到这个路径,旋转UVC这个function才可以。

你好,修复好这个问题后,运行这个测试程序,UVC通信的电脑上呈像却显示黑色,有微微泛白,泛白处能隐约看到摄像头照射到的物体,这是什么问题呢?

用Micropython的镜像测试一下摄像头,检查是否摄像头成像有问题。

检查了一下,没有问题

上图是正常的,下图是不正常的
图片.png
图片.png

看一下micropython的效果。

没有用micropython测试,用的linux+rtos做的测试,就是有手的那张图片

调试发现从vicap中提取出来的帧vicap_frame.v_frame.stride[1]是0,是不是YUV的UV信息没有保存,导致生成的图像不对呢?
uart打印的信息:
DBG: vicap_frame: pixel_format=31, plane0_phys=0x1298c000, stride0=1920, plane1_phys=0x12b87000, stride1=0, width=1920, height=1080