Repository navigation
Show the menu on firmware 1.4.0.8: DRM/KMS when there is no /dev/fb0 (#6) - #7
Merged
Merged
Conversation
…xcm#6) The 1.4.0.8 kernel has no fbdev emulation, so /dev/fb0 is missing and the menu stayed black. sampleboot-ui now drives the first connected display on /dev/dri/card* as the stock app does (dumb buffers, SETCRTC, page flips, falling back to DIRTYFB and SETCRTC), with plain ioctls so the binary stays static. New options --dri and --rotate (ROTATE in sampleboot.conf). Tested in QEMU with virtio-gpu and no fbdev (320x240 and 240x320 modes), and on a real MPC Sample with 1.4.0.8 (st7796s, SPI, 320x240): menu visible, Melodee and the stock firmware start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D78F61A4wEXbh7JCtjbxTt
This was referenced Nov 29, 2026
pxcm
pushed a commit
that referenced
this pull request
Dec 1, 2026
Stock firmware, Melodee 0.10.4 and Rhythmer OS 0.3.0 start from SampleBoot's menu on a real MPC Sample with 1.4.0.8, with the DRM/KMS display of #6/#7. Note how Rhythmer OS goes on the card under SampleBoot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D78F61A4wEXbh7JCtjbxTt
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6.
Cause. On a real MPC Sample with 1.4.0.8 there is no
/dev/fb0: the kernel has no fbdev emulation, and the SPI panel is only reachable through DRM (/dev/dri/card0). The Virtual MPC Sample's kernel hasCONFIG_DRM_FBDEV_EMULATION=y, which is why 1.0.4 worked in the emulator. The stock app itself draws with KMS dumb buffers,SETCRTCand page flips.Change.
sampleboot-uistill tries/dev/fb0first (1.3.0.12 unchanged). Without it, it drives the first connected display on/dev/dri/card0..7the same way: two XRGB8888 dumb buffers,SETCRTC, then a page flip per frame, falling back toDIRTYFB, thenSETCRTC. Plain kernel ioctls, no libdrm, so the binary stays static. The log names the DRM driver, connector and mode. New options--driand--rotate auto|0|90|180|270(ROTATEinsampleboot.conf, defaultauto: a 240×320 mode is turned a quarter).Tested
kms: /dev/dri/card0 (st7796s), connector 34 (SPI), CRTC 37, mode 320x240, no errors. Menu visible, Melodee and the stock firmware start from it. SampQOL still doesn't run on 1.4 (no app after 60 s, SampleBoot starts the stock app), as the README says.Known limit. When
sampleboot-uiexits, its framebuffers are removed, so the screen is black between "Starting …" and the next system.🤖 Generated with Claude Code
https://claude.ai/code/session_01D78F61A4wEXbh7JCtjbxTt