]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
runqemu: check permissions of available render nodes as well as their presence
authorAlexander Kanavin <alex.kanavin@gmail.com>
Thu, 7 Sep 2023 10:50:33 +0000 (12:50 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 13 Oct 2023 02:23:08 +0000 (16:23 -1000)
commit12ae43abbc4e7d6184198a912487ace3a4e66e50
tree01804c68117ae48430f0a6f52696d4975a4d5411
parent273aed0462728508506a4c65d367d583a86a54c3
runqemu: check permissions of available render nodes as well as their presence

qemu itself is not helpful when render nodes exist, but can't be opened:

qemu-system-x86_64: egl: render node init failed

To fix this, users likely need to

 * modprobe vgem (presence when physical graphic card is absent or has a driver without
support for render nodes, such as many older cards found in server machines)

 * add their user to "render" group to write to /dev/dri/renderD* (permissions)

With this change runqemu should print hints for the above as appropriate from probing the nodes.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit acd85925cb197b7a31a25b60e8de762e2c3697ef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/runqemu