-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] demo's not working rpi4 kernel 5.10 #1509
Comments
Ouch... Maybe @KernelKinetic could take a look? |
Since |
I have seen this too, when compiling for PLATFORM_DRM and running within a Terminal session on the Pi desktop - seems the app isn't able to set Crtc as it's not Master. Presumably the desktop is already master. Running as sudo makes no difference - I tried patching core.c to call drmSetMaster(3); prior to drmModeSetCrtc() but that didn't fix it. @jamieS95 Set the Pi to boot to Command Line rather than desktop, and re-run the compiled example from there - you'll probably find it runs fine. That's what I'm doing at present until I find a fix. |
@AudioMorphology Oh, yeah, you are right, I also found the same issue... actually EDIT: As a side note, previous |
@raysan5 https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi //native without windowing system (use from command line) |
@jamieS95 Actually, About Does it work with the proposed solutions? |
booting to cli solved issue. thank you |
So. I've just installed freshely on my Raspberry PI 2B an Raspberry OS Lite + openbox + xfce4-panel. And I did try to compile sources successfuly. Trying to compile examples and I have got #3487 (comment) error. When I tried raylib 3 years ago, it didn't work with RPI 2B (I still have the same one :D), but now it does. So I want to ask:
Thank you. |
Hi! RaspberryPi drivers have changed a lot in the last few years. Glad to know it works as expected with latest update. About your questions:
I'm afraid I don't know, I never used openbox. It should be tested.
Yes,
The Wiki is open to everyone for editing, feel free to add that info on Raspberry Pi section. |
However, as I can see on the dependencies page on the wiki (https://github.com/raysan5/raylib/wiki/raylib-dependencies) , it requires X11 in the DESKTOP configuration and that already contradicts what I tried with OS LITE + OPENBOX.. |
Succeess. |
demo's not working rpi4 kernel 5.10 with newest mesa from the repo and kms enabled
INFO: Initializing raylib 3.5
INFO: DISPLAY: No graphic card set, trying card1
INFO: DISPLAY: Selected DRM connector mode 800x600 (800x600p@60)
INFO: DISPLAY: Upscaling required: Screen size (800x450) smaller than display size (800x600)
INFO: DISPLAY: Device initialized successfully
INFO: > Display size: 800 x 600
INFO: > Render size: 800 x 600
INFO: > Screen size: 800 x 450
INFO: > Viewport offsets: 0, 150
INFO: GL: OpenGL device information:
INFO: > Vendor: Broadcom
INFO: > Renderer: V3D 4.2
INFO: > Version: OpenGL ES 3.1 Mesa 21.0.0-devel (git-9ef2c44ce6)
INFO: > GLSL: OpenGL ES GLSL ES 3.10
INFO: GL: Supported extensions count: 88
INFO: GL: VAO extension detected, VAO functions initialized successfully
INFO: GL: NPOT textures extension detected, full NPOT textures supported
INFO: GL: DXT compressed textures supported
INFO: GL: ETC1 compressed textures supported
INFO: TEXTURE: [ID 1] Texture created successfully (1x1 - 1 mipmaps)
INFO: TEXTURE: [ID 1] Default texture loaded successfully
INFO: SHADER: [ID 1] Compiled successfully
INFO: SHADER: [ID 2] Compiled successfully
INFO: SHADER: [ID 3] Program loaded successfully
INFO: SHADER: [ID 3] Default shader loaded successfully
INFO: RLGL: Internal vertex buffers initialized successfully in RAM (CPU)
INFO: RLGL: Render batch vertex buffers loaded successfully
INFO: RLGL: Default state initialized successfully
INFO: TEXTURE: [ID 2] Texture created successfully (128x128 - 1 mipmaps)
INFO: FONT: Default font loaded successfully
INFO: RPI: Opening input device: /dev/input/event2 (mouse )
INFO: RPI: Opening input device: /dev/input/event0 (keyboard )
WARNING: RPI: Failed to open Gamepad device, no gamepad available
WARNING: RPI: Failed to change keyboard mode (SSH keyboard?)
INFO: TIMER: Target time per frame: 16.667 milliseconds
ERROR: DISPLAY: drmModeSetCrtc() failed with result: -13
The text was updated successfully, but these errors were encountered: