]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Sep 2023 11:04:06 +0000 (12:04 +0100)
commitacd85925cb197b7a31a25b60e8de762e2c3697ef
tree787c54eddeeb8751080c7c69612c5055517957a7
parent25fbe4d1dcfa329f0229eb3ed384b8b84583bd45
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>
scripts/runqemu