- - entity 63: m00_b_imx415 7-001a (1 pad, 1 link)
- type V4L2 subdev subtype Sensor flags 0
- device node name /dev/v4l-subdev2
- pad0: Source
- [fmt:SGBRG10_1X10/3864x2192@10000/600000 field:none
- crop.bounds:(12,16)/3840x2160]
- -> "rockchip-csi2-dphy0":0 [ENABLED]
复制代码- root@rk3588-buildroot:/tmp# grep '' /sys/class/video4linux/video*/name | grep mainpath
- /sys/class/video4linux/video11/name:rkisp_mainpath
复制代码- root@rk3588-buildroot:/tmp# <span style="background-color: rgb(255, 255, 255);">v4l2-ctl -d /dev/video11 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-to=/tmp/IMX415_4K60fps.nv12 --stream-count=1 --stream-skip=120 --stream-poll</span>
- [ 1131.309046] stream_cif_mipi_id0: s_power 1, entity use_count 1
- [ 1131.341794] rkisp_hw fdcb0000.rkisp: set isp clk = 702000000Hz
- [ 1131.344902] rkcif-mipi-lvds2: stream[0] start streaming
- [ 1131.345015] rockchip-mipi-csi2 mipi2-csi2: stream on, src_sd: 00000000147e1a9c, sd_name:rockchip-csi2-dphy0
- [ 1131.345025] rockchip-mipi-csi2 mipi2-csi2: stream ON
- [ 1131.345058] rockchip-csi2-dphy0: dphy0, data_rate_mbps 1782
- [ 1131.345101] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0, ret 0
- [ 1131.345113] imx415 7-001a: s_stream: 1. 3864x2192, hdr: 0, bpp: 10
- [ 1131.345122] imx415 7-001a: write reg array error
- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 60.00 fps
- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 60.00 fps
- [ 1133.507682] rkcif-mipi-lvds2: stream[0] start stopping, total mode 0x2, cur 0x2
- [ 1133.524410] rockchip-mipi-csi2 mipi2-csi2: stream off, src_sd: 00000000147e1a9c, sd_name:rockchip-csi2-dphy0
- [ 1133.524504] rockchip-mipi-csi2 mipi2-csi2: stream OFF
- [ 1133.524545] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream_stop stream stop, dphy0
- [ 1133.524577] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:0, dphy0, ret 0
- [ 1133.524747] imx415 7-001a: s_stream: 0. 3864x2192, hdr: 0, bpp: 10
- [ 1133.525510] rkcif-mipi-lvds2: stream[0] stopping finished, dma_en 0x0
- [ 1133.561557] stream_cif_mipi_id0: s_power 0, entity use_count 0
- root@rk3588-buildroot:/#
复制代码kylan 发表于 2025-2-26 10:33
博主您好,请问驱动中的.exp_def .hts_def .vts_def是如何计算得到的,有点没明白 ...
troy 发表于 2025-2-26 15:19
exp_def:是默认的曝光值,初始化的时候会设置给sensor。只要在范围内都行,一般我们都是设置一个较小的 ...
murdoc 发表于 2025-3-15 15:28
请问大佬,1 cam-tb-setup.h cam-sleep-wakeup.h 的具体实现是? 2 代码中涉及到的, cam_sw_regulator_ ...
qilinyung 发表于 2025-4-17 22:38
楼主 3568的sdk的imx415驱动是v0.1.6版本 源码里也没有cam-tb-setup.h cam-sleep-wakeup.h这两个头文件 如 ...
joyyy 发表于 2025-8-6 10:44
感谢大佬,驱动移植后,成功在RK3588的imx415相机出图4K@60fps和1080P@60fps了,还想请教一点:
现在单相机 ...

liting 发表于 2025-9-19 11:48
linux 6.1 内核编译报错很多错误
- {
- .bus_fmt = MEDIA_BUS_FMT_SGBRG10_1X10,
- .width = 3864,
- .height = 2192,
- .max_fps = {
- .numerator = 10000,
- .denominator = 600000,
- },
- .exp_def = 0x08ca - 0x08,
- .hts_def = 0x0226 * IMX415_4LANES * 4,
- .vts_def = 0x08ca,
- .global_reg_list = NULL,
- .reg_list = imx415_linear_10bit_3864x2192_1782M_regs,
- .hdr_mode = NO_HDR,
- .mipi_freq_idx = 3,
- .bpp = 10,
- .vc[PAD0] = 0,
- .xvclk = IMX415_XVCLK_FREQ_37M,
- },
- {
- .bus_fmt = MEDIA_BUS_FMT_SGBRG12_1X12,
- .width = 1920,
- .height = 1080,
- .max_fps = {
- .numerator = 10000,
- .denominator = 600000,
- },
- .exp_def = 0x0d3e - 0x08,
- .hts_def = 0x016d * IMX415_4LANES * 2,
- .vts_def = 0x0d3e,
- .global_reg_list = NULL,
- .reg_list = imx415_linear_12bit_1920x1080_1485M_regs,
- .hdr_mode = NO_HDR,
- .mipi_freq_idx = 2,
- .bpp = 12,
- .vc[PAD0] = 0,
- .xvclk = IMX415_XVCLK_FREQ_37M,
- },
复制代码- Got message #298265 from element "fpsdisplaysink0" (property-notify): GstMessagePropertyNotify, property-name=(string)last-message, property-value=(string)"rendered:\ 288319\,\ dropped:\ 0\,\ current:\ 57.98\,\ average:\ 57.89";
- /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 288319, dropped: 0, current: 57.98, average: 57.89
复制代码595400 发表于 2026-7-15 15:28
奇怪了,我在rk3576上测试怎么只有57.89,少两帧啊,哪位知道怎么修改,指点一下
...
595400 发表于 2026-7-15 17:34
我好像郁闷了,我这个rk3576, 如果我把代码的vts啥的修改修改,能达到60fps,但是内核报错:rkcif-mipi-lv ...
- Interrupt Cnt:535897 ErrCnt:0
- Input rkcif-mipi-lvds Format:SGBRG10_1X10 Size:3840x2160@60fps Offset(0,0) Inp:0x100
- Isp online frame:199372 state:working time:14ms v-blank:1362us div:1 extend:128
- Output rkisp_ldcpath Format:NV12 Size:3840x2160 Dcrop(0,0|3840x2160) (frame:199371 rate:16ms delay:15ms frameloss:1 bufcnt:2)
复制代码595400 发表于 2026-7-22 17:12
搞定了,修改VMX 和HMAX寄存器的值,同时修改exp_def , hts_def , vts_def, 让vblank有1500us的时间。 ...
| 欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |