no DRI card's dev file in rpi-5.4.y

Open
#3,567 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, linux

Research direction

Start with conf/machine/raspberrypi3.conf and the reported VC4DTBO setting, then reproduce the Linux 5.4.29-v7 behavior using kmscube. Compare the image with and without vc4-fkms-v3d; done means /dev/dri/card0 is present and kmscube initializes its EGL surface successfully.

Written by the indexing model from the issue text.

Description

Hi,
In meta-raspberrypi we forcely switched linux-raspberrypi version to 5.4 from 4.19.

In generated image, under /dev directory there is no /dri/card0 device file. Also while try to launch "kmscube" we got below error,

Error:
drmGetDevice2 failed: No such file or directory
could not open drm device
failed to initialize legacy DRM

Later we added VC4DTBO ?= "vc4-fkms-v3d" in conf/machine/raspberrypi3.conf file.

Now /dri/card0 is created in our image. But while try to launch "kmscube" we got,

Error:
Using display 0xbf81f8 with EGL version 1.4
failed to create egl surface
failed to initialize EGL

Note:
Platform : Raspberrypi3
Kernel version : Linux raspberrypi3 5.4.29-v7

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.