瑞莎 8M 219 摄像头
瑞莎 Dragon Q6A 的板载 MIPI CSI 接口可用于连接瑞莎 8M 219 摄像头,实现图像采集功能。

接口规格
摄像头接口
瑞莎 8M 219 摄像头接口规格如下:
- 接口类型:15-Pin 1.0 mm 间距 SMD 卧式 FPC 接口
- 连接方式:翻盖式,下接触
主板 MIPI CSI 接口
瑞莎 Dragon Q6A 的主板 MIPI CSI 接口规格如下:
- 接口类型:15-Pin 1.0 mm 间距 SMD 卧式 FPC 接口
- 连接方式:翻盖式,下接触
摄像头排线
使用 15-Pin 1.0 mm 间距转 15-Pin 1.0mm 间距异面 FPC 排线
硬件连接
将 FPC 排线的 15-Pin 金属接触点末端插入摄像头接口,将 FPC 排线的 15-Pin 金属接触点末端插入主板 MIPI CSI 接口。
- 确保排线两侧边缘与插座边缘平齐,无歪斜或部分裸露的触点
- 确认排线无折痕、无松动,且锁扣处闭合状态
软件使能
使用瑞莎系统自带的 Rsetup 工具使能瑞莎 8M 219 摄像头。
- 选中选项 : 对应选项会高亮显示
- 确认选择 : 按
Enter - 取消选择 : 按
ESC - 切换选项 : 按
Up、Down、Left、Right控制 - 多选界面 : 按
Space选择,按Enter确认选择;选择对应功能后,对应选项框会出现一个*,表示该选项已启用
在终端命令行运行 rsetup 命令启动 Rsetup 工具:
rsetup
在 Rsetup 工具中依次进入 Overlays -> Manage overlays。
- 通过方向键找到 [ ] Enable Radxa Camera 8M 219 选项
- 按空格出现 [*] Enable Radxa Camera 8M 219 说明已选中该功能
- 按
Enter确认并保存设置,使能摄像头。 - 重启系统,使配置生效。
若主板有多个 MIPI CSI 接口,Rsetup 可能会显示 [ ] Enable Radxa Camera 8M 219 on CAM * 选项,选择对应 MIPI CSI 接口的选项即可。
使用摄像头
使用 GStreamer 或 libcamera 的 qcam 工具预览或录制摄像头画面。以下预览命令请在系统桌面终端中运行。
系统更新
进入 Rsetup -> System -> System Update 更新系统。
使用 GStreamer
安装依赖
sudo apt install -y \
gstreamer1.0-tools \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad
预览摄像头
gst-launch-1.0 libcamerasrc ! video/x-raw,width=1920,height=1080,framerate=30/1 ! queue ! videoconvert ! queue ! autovideosink
录制视频
软件编码(x264enc)— 1080p:
gst-launch-1.0 -e libcamerasrc \
! videoconvert ! video/x-raw,format=I420,width=1920,height=1080,framerate=30/1 \
! x264enc bitrate=8000 speed-preset=fast \
! mp4mux ! filesink location=/tmp/camera-x264.mp4
硬件编码 H264(Venus)— 1080p:
gst-launch-1.0 -e libcamerasrc \
! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 \
! v4l2h264enc ! h264parse ! mp4mux \
! filesink location=/tmp/camera-h264.mp4
硬件编码 H265(Venus)— 1080p:
gst-launch-1.0 -e libcamerasrc \
! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 \
! v4l2h265enc ! h265parse ! mp4mux \
! filesink location=/tmp/camera-h265.mp4
使用 libcamera
安装依赖
sudo apt install -y libcamera-tools gstreamer1.0-libcamera libcamera-ipa
预览摄像头
qcam --stream pixelformat=YUYV,width=1920,height=1080
排查指南
检查摄像头是否被识别
使用以下命令检查摄像头是否被系统识别:
sudo dmesg | grep imx
若终端输出以下信息,说明摄像头被正常识别:
[ 5.949209] imx219 18-0010: supply VANA not found, using dummy regulator
[ 5.951349] imx219 18-0010: supply VDIG not found, using dummy regulator
[ 5.951506] imx219 18-0010: supply VDDL not found, using dummy regulator
若终端输出以下信息,说明摄像头未被系统识别,需要检查摄像头排线是否安装到位:
[ 5.949209] imx219 18-0010: supply VANA not found, using dummy regulator
[ 5.951349] imx219 18-0010: supply VDIG not found, using dummy regulator
[ 5.951506] imx219 18-0010: supply VDDL not found, using dummy regulator
[ 5.958515] imx219 18-0010: Error reading reg 0x0000: -6
[ 5.958522] imx219 18-0010: error -ENXIO: failed to read chip id 219