KMSDRM with SDL2 kernel 6.6 scarthgap
Hello,
I was able to make the SDL2 library works with KMSDRM with kernel 5.15 Kirkston but with kernel 6.6 Scarthgap it doesn't work. I also configured the kmsdrm to work in the .bbappend file since I am using Yocto. I can see from the log.configure that the kmsdrm is on but the application which was working with 5.15 is still not able to run with 6.6. However, KMSCube is working means KMSDRM is working from the kernel point of view. The messages that I got when debug are below:
INFO: video driver in use is: (null)
INFO: video driver 0: wayland
INFO: video driver 1: KMSDRM
INFO: video driver 2: (null)
INFO: video driver 3: (null)
INFO: Failed to initialize SDL: No available video device
Even if I specify the driver to be kmdrm I see the following
INFO: video driver in use is: (null)
INFO: video driver 0: wayland
INFO: video driver 1: KMSDRM
INFO: video driver 2: (null)
INFO: video driver 3: (null)
INFO: Failed to initialize SDL: kmsdrm not available
I don't know why it is still unavailable?
from the "log.do_configure" of Yocto I can see this:
-- SDL_KMSDRM (Wanted: ON): ON
-- SDL_KMSDRM_SHARED (Wanted: ON): ON
in the build folder of "libsdl2" I can see also this in the "CMakeCache.txt" file:
//Use KMS DRM video driver
SDL_KMSDRM:BOOL=ON
//Dynamically load KMS DRM support
SDL_KMSDRM_SHARED:BOOL=ON
I edited the bbappend by adding those two lines to switch the offscreen off and to make sure that the KMSDRM is working
EXTRA_OECMAKE += " \
-DSDL_VIVANTE=OFF \
-DSDL_OPENGL=OFF \
-DSDL_KMSDRM=ON \
-DSDL_OFFSCREEN=OFF \
"
What else can I do? any suggestions?
Thanks in advance
