From fbcbc044127cec00b25e9c90848e98384071e57b Mon Sep 17 00:00:00 2001 From: Bastian Wanner Date: Fri, 5 Jan 2024 14:23:03 +0100 Subject: [PATCH] psplash: Add udev rule notify systemd of available fb 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 --- recipes-core/psplash/files/fb.rules | 1 + recipes-core/psplash/psplash_%.bbappend | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 recipes-core/psplash/files/fb.rules diff --git a/recipes-core/psplash/files/fb.rules b/recipes-core/psplash/files/fb.rules new file mode 100644 index 000000000..c336bc36d --- /dev/null +++ b/recipes-core/psplash/files/fb.rules @@ -0,0 +1 @@ +SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd" diff --git a/recipes-core/psplash/psplash_%.bbappend b/recipes-core/psplash/psplash_%.bbappend index 57cade8ff..389bb275f 100644 --- a/recipes-core/psplash/psplash_%.bbappend +++ b/recipes-core/psplash/psplash_%.bbappend @@ -1,11 +1,16 @@ 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 -d ${D}${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/fb.rules ${D}${sysconfdir}/udev/rules.d/ fi }