agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
522 stars 408 forks source link

psplash issues with systemd #1313

Open leon-anavi opened 5 months ago

leon-anavi commented 5 months ago

Hi,

I noticed that psplash doesn't work as expected when using it with systemd despite the fix for race condition with /dev/fb0:

Apr 30 11:04:09 raspberrypi4-64 systemd[1]: sys-devices-platform-gpu-graphics-fb0.device: Job sys-devices-platform-gpu-graphics-fb0.device/start timed out.
Apr 30 11:04:09 raspberrypi4-64 systemd[1]: Timed out waiting for device /sys/devices/platform/gpu/graphics/fb0.
Apr 30 11:04:09 raspberrypi4-64 systemd[1]: sys-devices-platform-gpu-graphics-fb0.device: Job sys-devices-platform-gpu-graphics-fb0.device/start failed with result 'timeout'.

Steps to reproduce the issue:

  1. Include psplash: IMAGE_INSTALL:append = " psplash"
  2. Use systemd: INIT_MANAGER = "systemd"

Describe the results you received:

No splash screen. Systemd service psplash-start dependency failed:

Apr 30 11:04:09 raspberrypi4-64 systemd[1]: sys-devices-platform-gpu-graphics-fb0.device: Job sys-devices-platform-gpu-graphics-fb0.device/start timed out.
Apr 30 11:04:09 raspberrypi4-64 systemd[1]: Timed out waiting for device /sys/devices/platform/gpu/graphics/fb0.
Apr 30 11:04:09 raspberrypi4-64 systemd[1]: sys-devices-platform-gpu-graphics-fb0.device: Job sys-devices-platform-gpu-graphics-fb0.device/start failed with result 'timeout'.

Describe the results you expected:

psplash-start.service to be OK and to display the splash screen while booting the system

Additional information you deem important (e.g. issue happens only occasionally):

Additional details (revisions used, host distro, etc.):

Tested with core-image-base from branches master and kirkstone on Raspberry Pi 4 (machine raspberrypi4-64).

farias-automac commented 4 months ago

Same

BuriKizilkaya commented 2 months ago

Have you found a solution?

gitgonewithwind commented 2 months ago

@BuriKizilkaya please try my solution: https://github.com/agherzan/meta-raspberrypi/issues/1330#issuecomment-2142679662

BuriKizilkaya commented 2 months ago

@gitgonewithwind

I found this PR. I add a new bbappend file for the udev rules and then the boot screen appears.

If I connect the raspi with a HDMI screen and I boot up the device, then the progressbar is already 100%. Have you noticed this issue also?

gitgonewithwind commented 2 months ago

@BuriKizilkaya is already 100%. No this issue for mine. I do not use systemv

BuriKizilkaya commented 2 months ago

@gitgonewithwind what is 100%?