cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
yannik-akka
Visitor
Visitor
202 Views
Registered: ‎09-04-2019

V4L2 issue, /dev/vid0 not available

Hi,

I built a custom hardware platform in Vivado 2020.2, using the HDMI 1.4/2.0 ReceiverSubsystem (with Evaluation License, if that makes any difference). To build Petalinux I'm using Petalinux tools 2020.2
Now I tried to set up a GStreamer pipeline in Petalinux, but something is wrong with the V4l2 drivers it seems to me. /dev/vid0 is not available. Here are the steps I took:

In petalinux-config -c rootfs I added packagegroup-petalinux-gstreamer and packagegroup-petalinux-v4lutils.

Question: do I need to add anything else?

In the Petalinux project folder I added the following lines to project-spec/meta-user/recipes-kernel/linux-xlnx/bsp.cfg

CONFIG_XILINX_FRMBUF=y
CONFIG_VIDEO_XILINX=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_V4L2_SUBDEV_API=y
CONFIG_OF=y

That's how I interpreted the "Kernel Configuration" sections in

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841767/Xilinx+V4L2+driver
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841884/Xilinx+V4L2+hdmirx+driver
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842236/Video+Framebuffer+Write
Questions:

  • Did I add them to the correct file?
  • Is there anything wrong with these lines?
  • Do I need to add anything else or remove something?

I also read multiple times, that there might be issues in the automatically generated device tree, but I really don't know how it is supposed to look like, so I attached an Image of my Hardware-Design and the device tree file generated in components/plnx_workspace/device-tree/device-tree/pl.dtsi (had to change the name to pl.txt to upload it)
Questions:

  • Do I need to change anything in the device tree?
  • Changes to the device tree are made in project-spec/meta-user/recipes-bsp/device-tree/files, correct?

Thank you in advance for your help

Yannik

0 Kudos
1 Reply
watari
Teacher
Teacher
100 Views
Registered: ‎06-16-2013

Hi @yannik-akka 

 

Did you make sure whether it has a capability to capture video stream on your media graph ?

Also, did you set proper parameter on media graph ?

 

I'm probably sure that there is not capability with current setting on your media graph.

 

Would you make sure it ?

 

Best regards,

0 Kudos