RV1126 MIPI CSI-2调试24bit RGB888格式输入

RV1126 MIPI CSI-2调试24bit RGB888格式输入,FPGA将DVP输入的1280X800的RGB888,24bit图像数据,转换为MIPI CSI发送给RV1126。RV1126通过MIPI 接收FPGA发送来的图像。通过V4L2抓图保存。

1:RV1126 MIPI初始化。

格式为MEDIA_BUS_FMT_RGB888_1X24,分辨率1280X800。修改DTS,和内核驱动文件。修改后,注册成功。

- entity 17: rockchip-mipi-csi2 (5 pads, 17 links)

type V4L2 subdev subtype Unknown flags 0

device node name /dev/v4l-subdev1

pad0: Sink

[ 44.780200] rockchi [fmt:RGB888_1X24/1280x800 pfield:none

crop.bounds:(0-,0)/1280x800

crop:(0,0)/m1280x800]

<- "rockchip-mipi-dphiy-rx":1 [ENABLED]

2:FPGA程序,修改适配MEDIA_BUS_FMT_RGB888_1X24。

3:联调。抓图

[root@RV1126_RV1109:/]# v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,heigh

t=800,pixelformat=RGB3 \--stream-mmap=3 \--stream-skip=3 \--stream-to=/tmp/cif88

  1. out \--stream-count=1 \--stream-poll

[root@RV1126_RV1109:/tmp]# ls -l

total 3232

drwxr-xr-x 2 avahi avahi 40 Aug 4 09:30 avahi-autoipd

-rw-r--r-- 1 root root 3072000 Aug 4 09:31 cif888.out

-rw-r--r-- 1 root root 66024 Aug 4 09:30 cl_viv_vx_ext.h

drwxr-xr-x 2 root root 60 Aug 4 09:30 dbus

-rw-r--r-- 1 root root 0 Aug 4 09:30 dnsmasq.leases

---------- 1 root root 6 Aug 4 09:30 loglevel

-rw-r--r-- 1 root root 153389 Aug 4 09:31 messages

-rw-r--r-- 1 root root 1349 Aug 4 09:30 mountall.log

drwxr-xr-x 7 root root 180 Aug 4 09:30 nginx

-rw-r--r-- 1 root root 55 Aug 4 09:30 resolv.conf

drwxr-xr-x 2 root root 60 Aug 4 09:30 subsys

drwx------ 2 root root 40 Aug 4 09:30 tmp.e06cHtr2Mn

抓图成功。

<<<[ 97.558413] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.600634] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 97.685103] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.727362] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 97.811841] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.854048] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 97.938526] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.980739] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.065280] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.107590] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.191902] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.234113] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.318589] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.360868] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.445295] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.487487] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

< 23.68 fps, dropped buffers: 14

连续抓图

4:读取图像

adb读取图像,打开显示效果。

RV1126 MIPI CSI-2调试24bit RGB888格式输入_第1张图片
RV1126 MIPI CSI-2调试24bit RGB888格式输入_第2张图片
RV1126 MIPI CSI-2调试24bit RGB888格式输入_第3张图片
RV1126 MIPI CSI-2调试24bit RGB888格式输入_第4张图片

你可能感兴趣的:(RV1126,MIPI,FPGA,RV1126,v4l2抓图,MIPI,FPGA,RGB888)