У меня есть платформа stm32mp1, и я хочу запустить SDL2 v2.0.10 без X11 только напрямую с KMS / DRM.
У меня есть приложение kmscube, которое работает, поэтому я уверен, что все в порядке.
root@stm32mp1-disco:~# cat /sys/class/drm/card0-DSI-1/enabled
enabled
root@stm32mp1-disco:~# cat /sys/class/drm/card0-DSI-1/status
connected
Но когда я запускаю SDL2 для проверки устройства, он говорит:
Testing video drivers...
x11 not available
wayland not available
KMSDRM not available
SDL_VIDEODRIVER available:
0: x11
1: wayland
2: vivante
3: KMSDRM
SDL_VIDEODRIVER usable :
2: vivante
Журналы от dmesg:
[Apr 6 10:07] [drm:drm_stub_open]
[ +0.000036] [drm:drm_open] pid = 2938, minor = 0
[ +0.000024] [drm:drm_open]
[ +0.000866] [drm:drm_release] open_count = 1
[ +0.000021] [drm:drm_file_free.part.0] pid = 2938, device = 0xe200, open_count = 1
[ +0.000028] [drm:_drm_lease_revoke] revoke leases for 1563766f 0
[ +0.000014] [drm:drm_lease_destroy] drm_lease_destroy 0
[ +0.000010] [drm:drm_master_put] drm_lease_destroy done 0
[ +0.000014] [drm:drm_lastclose]
[ +0.000010] [drm:drm_lastclose] driver lastclose completed
[ +0.000087] [drm:drm_stub_open]
[ +0.000018] [drm:drm_open] pid = 2938, minor = 0
[ +0.000018] [drm:drm_open]
[ +0.000686] [drm:drm_release] open_count = 1
[ +0.000018] [drm:drm_file_free.part.0] pid = 2938, device = 0xe200, open_count = 1
[ +0.000021] [drm:_drm_lease_revoke] revoke leases for 1563766f 0
[ +0.000012] [drm:drm_lease_destroy] drm_lease_destroy 0
[ +0.000010] [drm:drm_master_put] drm_lease_destroy done 0
[ +0.000013] [drm:drm_lastclose]
[ +0.000010] [drm:drm_lastclose] driver lastclose completed