Thank you Armbian guys for providing and supporting a working 5.10 image for the Rock Pi 4C board.
Has anyone been successful in configuring and using a matched CSI camera with a 5.x kernel for this board? If so, can you share the required conf steps here?
Radxa's website (https://wiki.radxa.com/Rockpi4/MIPI_Camera) claims that their provided Debian image supports both RPi ov5647 and RPi imx219 based cameras so that confirms hardware compatibility but so far I haven't been able to capture images/video with neither on Armbian when attached to a Rock Pi 4C.
$ ls -l /dev/video*
crw-rw---- 1 root video 81, 0 Apr 3 07:30 /dev/video0
crw-rw---- 1 root video 81, 1 Apr 3 07:30 /dev/video1
crw-rw---- 1 root video 81, 2 Apr 3 07:30 /dev/video2
crw-rw---- 1 root video 81, 3 Apr 3 07:30 /dev/video3
exist,
v4l2-compliance and v4l2-ctl --list-formats-ext work and provide good output.
However, capturing the actual photo doesn't work:
$ fswebcam -d /dev/video0 -r 2048x1536 --jpeg 95 test.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Unable to query input 0.
VIDIOC_ENUMINPUT: Inappropriate ioctl for device
I had enabled ov5647 manually in /etc/modules
$ lsmod | grep ov
ov5647 20480 0
v4l2_fwnode 28672 1 ov5647
governor_performance 16384 0
videodev 299008 8 rockchip_vdec,v4l2_fwnode,ov5647,videobuf2_v4l2,hantro_vpu,rockchip_rga,videobuf2_common,v4l2_mem2mem
mc 61440 7 rockchip_vdec,videodev,ov5647,videobuf2_v4l2,hantro_vpu,videobuf2_common,v4l2_mem2mem
But still no joy, one gets the dreaded VIDIOC_ENUMINPUT error.
What else am I missing? I’ve seen references to disabling twi2 but I’m unable to find where to make this change in 5.10 if that's indeed the cause.