hello
I use Linux 5.10.72,and yocto hardknott
When I loaded ov8865.ko imx8-media-dev.ko, generating a /dev/media0 device node instead of /dev/video*, I wasn't sure if it would work on 5.10.
root@imx8qxpc0mek:~# v4l2-ctl --list-devices
mxc-jpeg decoder (platform:58400000.jpegdec):
/dev/video0
mxc-jpeg decoder (platform:58450000.jpegenc):
/dev/video1
FSL Capture Media Device (platform:mxc-md):
/dev/media0
I use gst-launch-1.0 v4l2src device=/dev/media0! The autovideosink test prompted an error.
root@imx8qxpc0mek:~# gst-launch-1.0 v4l2src device=/dev/media0 ! autovideosink
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Error getting capabilities for device '/dev/media0': It isn't a v4l2 driver. Check if it is a v4l1 driver.
Additional debug info:
../git/sys/v4l2/v4l2_calls.c(91): gst_v4l2_get_capabilities (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Inappropriate ioctl for device
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
LOG
root@imx8qxpc0mek:~# insmod imx8-media-dev.ko
[ 750.857712] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 750.934246] mx8-img-md: Registered sensor subdevice: ov8865 17-0036 (1)
[ 751.024418] mx8-img-md: created link [ov8865 17-0036] => [mxc-mipi-csi2.0]
[ 751.031342] mxc-md bus@58000000:camera: mxc_md_create_links
DTS
Can you please indicate if I have a mistake where I am doing it, or if there is a relevant manual in version 5.10, please refer to the following?