radxa / kernel

BSP kernel source
Other
134 stars 166 forks source link

rk-6.1-rkr1: capturing video from IMX415 at MIPI/CSI not possible after ISP block, on rk3588s platform #298

Open enok71 opened 3 months ago

enok71 commented 3 months ago

On my rock 5a I can capture video from my IMX415 camera connected to the 4 lane CSI port if I capture data from /dev/video11 which is the raw video stream. But trying to get data from /dev/video[01] (mainpath/selfpath, after ISP) doesn't work. The reason seems to be related to the fact that device node /dev/v4l-subdev4 (rkcif-mipi-lvds2) is not created at boot. There seems to be no connection from rkcif to rkisp. All this worked in 5.10 but doesn't work in 6.1. I suspect it is an issue for all rk3588s platforms.

See also discussion and details here

Revision tested: 27f6561551948be6350c9bbd549c84acb2e559af

Kernel config file, fdt binary tree and complete dmesg output attached.

config.gz fdt.gz dmesg.txt media-ctl-d0-p.txt media-ctl-d1-p.txt

RadxaYuntian commented 3 months ago

We have not officially released any Rockchip 6.1 SDK based image, so at this moment we won't take any support questions about it. We ourselves are still trying to figure this one out.

@Ken-Vamrs please double check if this is an issue on our system.

enok71 commented 3 months ago

I appreciate your efforts. There is a message at boot about dependency cycle. Maybe that is a clue. Let me know if I can help.

[  +0.024271] platform csi2-dphy0: Fixed dependency cycle(s) with /mipi2-csi2
[  +0.000166] platform mipi2-csi2: Fixed dependency cycle(s) with /rkcif-mipi-lvds2
[  +0.000135] platform rkcif-mipi-lvds2-sditf: Fixed dependency cycle(s) with /rkisp0-vir0
ivancheung2019 commented 1 month ago

@enok71 problem is fixed? I also got a problem on official image. the mipi video can show on cheese but is greenish and gain control is not running..

RadxaYuntian commented 1 month ago

@ivancheung2019 this issue is about the upcoming 6.1 kernel. There is no official 6.1 image at the moment.

ivancheung2019 commented 1 month ago

@ivancheung2019 this issue is about the upcoming 6.1 kernel. There is no official 6.1 image at the moment.

but I also facing such problem in B18 Debian KDE and ubuntu KDE pre-built image.. and test cheese.

RadxaYuntian commented 1 month ago

It is still the wrong place to discuss this issue. You can create a forum post and tag @radxa in our forum to get technical support there.

Please also make sure you are using the Debian image (Ubuntu is unsupported) and performed system upgrade before you test the camera.