UVC demo问题

Viewed 100

问题描述


在k230 SDK github的UVC demo的描述中“大核rtt实现摄像头驱动功能,小核linux实现USB驱动功能,通过mapi从大核获取摄像头图像”。

我看了下大核的应用程序sample_sys_init,发现都是大小核MAPI建立多媒体应用通信的函数,请问小核是怎么控制大核实现摄像头驱动的呢?

硬件板卡


canmv k230 v1.1

软件版本


linux+RT-smart

2 Answers

你好,目前我们得RTOS SDK可以支持UVC Host & Device, 可以看看RTOS SDK。

你好,我找了一下,你说的是这个测试用例吗?
https://www.kendryte.com/k230_rtos/zh/main/app_develop_guide/media/uvc.html
代码是这个SDK吗:
https://github.com/kendryte/k230_rtos_sdk

https://github.com/canmv-k230/mpp/tree/canmv_k230/userapps/sample/sample_uvc

https://github.com/canmv-k230/mpp/tree/canmv_k230/userapps/sample/sample_uvc_dev_vicap

是这个sdk.上边这俩分别是做Host和Device的sample.做device需要修改配置,make rtsmart-menuconfig,选择 CHERRY_USB_DEVICE_FUNC_UVC

你好,我想编译上述SDK跑下测试,用的开发板是v1.1,运行的配置脚本用k230_rtos_aihardware_defconfig吗

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 93711 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 69876 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 />