Page 1 of 1

RPi 4 "/dev/dri" folder missing on Ubuntu 20.04

Posted: Sun May 24, 2020 6:29 am
by RichardUK
Making a rod for my own back using Ubuntu 20.04 on RPi but I like it. It's a hobby...... ;)

Anyway, I am running without X on the command line. And I am trying to get some old GLES code running again. After some rooting about in the undergrowth of the internet it seems there are a few things I need. GDM, DRM, Mesa GBM interface. Something like that, they seems to be confused in my head and on the web.

Long and short of it is I found examples but unfortunately the folder /dev/dri is missing.

Is it

A) I need to install something (and if so what)

B) Ubuntu don't support this, you're done for mate. No EGL for you......

ta.

Re: RPi 4 "/dev/dri" folder missing on Ubuntu 20.04

Posted: Sun May 24, 2020 6:32 am
by RichardUK
BTW I installed libgbm-dev and kmscube. Get the error

could not open drm device
failed to initialize legacy DRM

Re: RPi 4 "/dev/dri" folder missing on Ubuntu 20.04

Posted: Sun May 24, 2020 7:26 pm
by RichardUK
Looks like this is a bug that is under investigation. So hopefully an update will fix this for me. The registered bug is "Missing v3d driver disables 3D support on RPi4". This is for Ubuntu to work on. Be nice to see it working. Only just been registered / accepted if I read it right.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1876862

Some more info here.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1880125


If it gets fixed I'll try to report back. At least there is a record here for anyone else searching for a solution.

:)