Skip to content

Bookworm support - #8

Open
niklas wants to merge 7 commits into
kubesail:mainfrom
niklas:bookworm
Open

Bookworm support#8
niklas wants to merge 7 commits into
kubesail:mainfrom
niklas:bookworm

Conversation

@niklas

@niklas niklas commented Aug 23, 2026

Copy link
Copy Markdown

Using panel-mipi-dbi-spi overlay we have a framebuffer and can draw to that directly

  • splash image is at the right orientation \o/
  • so no more rotation needed
  • mark deprecated functions
  • re-enable old http handlers
  • start stats after 20s

config.txt on bookworm 6.12.96+rpt-rpi-v8:

dtparam=spi=on
dtoverlay=mipi-dbi-spi,spi0-0,speed=32000000
dtparam=compatible=adafruit_st7789_drm\0panel-mipi-dbi-spi
dtparam=width=240,height=240
dtparam=dc-gpio=25
dtparam=reset-gpio=27
dtparam=backlight-gpio=22
dtparam=write-only,cpha,cpol

get compatible panel firmware:

wget https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/raw/refs/heads/main/mipi/adafruit_st7789_drm.txt
./mipi-dbi-cmd adafruit_st7789_drm.bin adafruit_st7789_drm.txt
sudo cp adafruit_st7789_drm.bin /lib/firmware/

To avoid X11/Xorg to grab the virtual framebuffer device and only use HDMI:

> cat /etc/X11/xorg.conf.d/*.conf
Section "ServerFlags"
        Option "AutoAddGPU" "false"
EndSection
Section "OutputClass"
        Identifier "vc4"
        MatchDriver "vc4"
        Driver "modesetting"
        Option "PrimaryGPU" "true"
EndSection

Section "Device"
        Identifier "HDMI"
        Driver "modesetting"
        Option  "kmsdev" "/dev/dri/by-path/platform-gpu-card"
EndSection

niklas added 7 commits August 22, 2026 20:43
- install statik with install command
- avoid cross compile, run the build container as aarch64
- splash image is at the right orientation \o/
- so no more rotation needed
- mark deprecated functions
- re-enable old http handlers
- start stats after 20s

config.txt on bookworm 6.12.96+rpt-rpi-v8:
--
dtparam=spi=on
dtoverlay=mipi-dbi-spi,spi0-0,speed=32000000
dtparam=compatible=adafruit_st7789_drm\0panel-mipi-dbi-spi
dtparam=width=240,height=240
dtparam=dc-gpio=25
dtparam=reset-gpio=27
dtparam=backlight-gpio=22
dtparam=write-only,cpha,cpol
--

compatible panel firmware:

-
wget https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/raw/refs/heads/main/mipi/adafruit_st7789_drm.txt
./mipi-dbi-cmd adafruit_st7789_drm.bin adafruit_st7789_drm.txt
sudo cp adafruit_st7789_drm.bin /lib/firmware/
-

To avoid X11/Xorg to grab the virtual framebuffer device and only use HDMI:

> cat /etc/X11/xorg.conf.d/*.conf
Section "ServerFlags"
        Option "AutoAddGPU" "false"
EndSection
Section "OutputClass"
        Identifier "vc4"
        MatchDriver "vc4"
        Driver "modesetting"
        Option "PrimaryGPU" "true"
EndSection

Section "Device"
        Identifier "HDMI"
        Driver "modesetting"
        Option  "kmsdev" "/dev/dri/by-path/platform-gpu-card"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant