Skip to content

Commit

Permalink
psplash: Make psplash wait for the framebuffer to be ready
Browse files Browse the repository at this point in the history
Especially with systemd its seen that psplash-start service starts
before /dev/fb0 is created by kernel which results in

[FAILED] Failed to start Start psplash boot splash screen.

this is quite frequent race now with kernel 6.1

Add device dependency on sys-devices-platform-gpu-graphics-fb0.device
via a unit file drop-in

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Leon Anavi <[email protected]>
  • Loading branch information
kraj authored and agherzan committed Jan 9, 2024
1 parent c40c6e2 commit 8bad47e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes-core/psplash/files/framebuf.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Unit]
Requires=sys-devices-platform-gpu-graphics-fb0.device
After=sys-devices-platform-gpu-graphics-fb0.device

10 changes: 10 additions & 0 deletions recipes-core/psplash/psplash_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SPLASH_IMAGES:rpi = "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi"

SRC_URI:append:rpi = " file://framebuf.conf"

do_install:append:rpi() {
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
install -Dm 0644 ${WORKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf
fi
}

FILES:${PN}:append:rpi = " ${systemd_system_unitdir}/psplash-start.service.d"

0 comments on commit 8bad47e

Please sign in to comment.