Skip to content

Commit

Permalink
psplash: Add udev rule notify systemd of available fb
Browse files Browse the repository at this point in the history
When using psplash in combination with systemd the splash screen is not
shown. The dependency to sys-devices-platform-gpu-graphics-fb0.device
will terminate psplash-start.service because systemd is not aware of the
framebuffer device node.
See https://lists.yoctoproject.org/g/yocto/topic/91286438#57156

Adding a udev rule to notify systemd
  • Loading branch information
Kiwi4Inovex committed Jan 30, 2024
1 parent 9c901bf commit 2b0742f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions recipes-core/psplash/files/fb.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd"
6 changes: 5 additions & 1 deletion recipes-core/psplash/psplash_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SPLASH_IMAGES:rpi = "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi"

SRC_URI:append:rpi = " file://framebuf.conf"
SRC_URI:append:rpi = " \
file://framebuf.conf \
file://fb.rules \
"

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
install -Dm 0644 ${WORKDIR}/fb.rules ${D}${sysconfdir}/udev/rules.d/
fi
}

Expand Down

0 comments on commit 2b0742f

Please sign in to comment.