I have installed kodi-rbp4 on my RaspberryPi 4, enabled the service and started it, but it is not starting.
On boot, or each time I try manually starting the service, this error is printed 3 times on the screen:
$this->bbcode_second_pass_code('', 'ERROR: Unable to start the GUI. Exiting').
I have tried manually starting kodi in standalone mode with the following command, with the same result:
$this->bbcode_second_pass_code('', '$ WINDOWING=gbm kodi --standalone --debug')
The crash log shows among other info, the following:
$this->bbcode_second_pass_code('', '2019-09-07 18:59:16.952 T:2977251344 ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
2019-09-07 18:59:16.952 T:2977251344 DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
2019-09-07 18:59:16.954 T:2977251344 ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
2019-09-07 18:59:16.954 T:2977251344 DEBUG: CDRMUtils::DestroyDrm - failed to drop drm master: Bad file descriptor
2019-09-07 18:59:16.956 T:2977251344 ERROR: CWinSystemGbm::InitWindowSystem - failed to initialize off screen DRM
2019-09-07 18:59:16.956 T:2977251344 FATAL: CApplication::Create: Unable to init windowing system
2019-09-07 18:59:16.956 T:2977251344 NOTICE: Stopping player
2019-09-07 18:59:16.956 T:2977251344 NOTICE: Storing total System Uptime')
Why it is not starting? I have installed neither X nor pulseaudio, but they are not required to use it as standalone with GBM, as far as I know. Maybe there is some kind of problem with the DRM layer?