zephyr: [native_sim] Zephyr 4.1 breaks GPIO_EMUL_SDL and INPUT_SDL_TOUCH
Describe the bug
I’ve got this application that runs natively on the NXP FRDM-MCXN947 but also has a native/posix/64 target. https://github.com/NXPHoverGames/Doom-MCX When upgrading from Zephyr 4.0.0 to Zephyr 4.1.0 the input (GPIO SDL emulation and SDL touch) for native/posix/64 is not working anymore.
To Reproduce
# initialize for the example-application (main branch)
west init -m https://github.com/nxphovergames/doom-mcx --mr main doom-mcx-workspace
# update Zephyr modules
cd doom-mcx-workspace
west update
cd doom-mcx
west build -p always -b native_sim/native/64
./build/zephyr/zephyr.exe
When modifying west.yml to point to Zephyr v4.0.0 8469084dfae85f854555f0607f2c838dad097235
Then input is working again
Impact No SDL input on native_sim
Environment (please complete the following information):
- OS: (Ubuntu 22.04 under wsl2)
- Toolchain (Zephyr sdk 0.17.0)
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 28 (27 by maintainers)
@fabiobaltieri No lvgl involved here, to my understanding.
Is it on LVGL or on the zephyr threads? Not sure this changes anything in native_sim but the input thread has a very low priority by default, maybe try
Hmm. That sucks.
I think the proper fix would be to finally tackle #71410.
Kinda hard to do tbh, overall a simple fb with input sample is missing unfortunately.
Btw I’ve narrowed it down to the line causing it. https://github.com/zephyrproject-rtos/zephyr/blob/02d562e9b846b9d4ee18d0e9dfe81b79f2384688/drivers/display/display_sdl_bottom.c#L56 Uncommenting this gives me input again.
EDIT2: @faxe1008 if you could share the cmake output showcasing the GCC version that would help me fixing the compile error you’re having.
Huh? I didn’t change anything regarding the input, at least not that I know of…
Very weird.
I’m sadly very limited on time right now, would someone else mind dissecting that change in more detail to see which line exactly broke it?