I can’t switch radxa camera 4K (imx415) to 1080p resolution on my rock5a. More precisely: it switches to 1080p, but video capture doesn’t works. There is a lot of errors in kernel log:
rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, size:0x21e0780,0x0,0x0,0x0, cnt 1
rkisp0-vir0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
I’ve switched to 1080p resolution with this command:
media-ctl -d 0 --set-v4l2 '"m00_b_imx415 3-001a":0[fmt:SGBRG10_1X10/1920x1080@1000/60000]'
and restartd rkaiq_3A service. From kernel log I can verify the sensor switched successfully:
imx415 3-001a: imx415_find_best_fit: cur_best_fit(1)
imx415 3-001a: set fmt: cur_mode: 1920x1080, hdr: 0, bpp: 10
imx415 3-001a: set vblank 0x492 vts 2250
imx415 3-001a: imx415_set_fmt: mode->mipi_freq_idx(1)
as well as media subsystem:
...
- entity 58: rockchip-csi2-dphy0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:SGBRG10_1X10/1920x1080@10000/600000 field:none
crop.bounds:(0,0)/1920x1080]
<- "m00_b_imx415 3-001a":0 [ENABLED]
pad1: Source
-> "rockchip-mipi-csi2":0 [ENABLED]
- entity 63: m00_b_imx415 3-001a (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:SGBRG10_1X10/1920x1080@10000/600000 field:none
crop.bounds:(0,0)/1920x1080]
-> "rockchip-csi2-dphy0":0 [ENABLED]
- entity 1: rkisp-isp-subdev (4 pads, 10 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
[fmt:SGBRG10_1X10/1920x1080 field:none
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
<- "rkisp_rawrd0_m":0 []
<- "rkisp_rawrd2_s":0 []
<- "rkisp_rawrd1_l":0 []
<- "rkcif-mipi-lvds2":0 [ENABLED]
pad1: Sink
<- "rkisp-input-params":0 [ENABLED]
pad2: Source
[fmt:YUYV8_2X8/1920x1080 field:none colorspace:smpte170m quantization:full-range
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
-> "rkisp_mainpath":0 [ENABLED]
-> "rkisp_selfpath":0 [ENABLED]
-> "rkisp_fbcpath":0 [ENABLED]
-> "rkisp_iqtool":0 [ENABLED]
pad3: Source
-> "rkisp-statistics":0 [ENABLED]
- entity 6: rkisp_mainpath (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video11
pad0: Sink
<- "rkisp-isp-subdev":2 [ENABLED]
...
- entity 60: rkcif-mipi-lvds2 (1 pad, 1 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev4
pad0: Source
[fmt:SGBRG10_1X10/1920x1080@10000/600000 field:none]
-> "rkisp-isp-subdev":0 [ENABLED]
In 4K resolution capture works fine.
My system is:
- rock-5a_bookworm_kde_b3
- Linux rock-5a 6.1.43-20-rk2312 #3e26818dc