agherzan / meta-raspberrypi

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

overwrite splash screen #786

Closed bernardoaraujor closed 3 years ago

bernardoaraujor commented 3 years ago

Description

I'm trying to overwrite the RPi splash screen. Followed the instructions from https://stackoverflow.com/a/63732589 no success.

Steps to reproduce the issue:

  1. psplash_%.bbappend:
    FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
    SPLASH_IMAGES_append = " file://foo-img.png;outsuffix=bar"
    ALTERNATIVE_PRIORITY_psplash-bar[psplash] = "200"
  2. conf/local.conf:
    PACKAGE_INSTALL_append = " psplash-bar"

Describe the results you received: Still shows Raspberry Pi logo on splash screen.

Describe the results you expected: Custom image on splash screen.

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

holagvk commented 3 years ago

I am under dunfell as well, and the following works for me:

append recipe:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SPLASH_IMAGES_seesv = "file://psplash-seesv-img.h;outsuffix=seesv"

image recipe:

SPLASH = "psplash-seesv"
IMAGE_FEATURES += splash

Note: seesv is my own BBFILE_COLLECTIONS with BBFILE_PRIORITY_seesv = "30"

agherzan commented 3 years ago

Thanks, @gvkalra . @bernardoaraujor , good to close?

bernardoaraujor commented 3 years ago

thanks @gvkalra your solution only differs from mine with regards to BBFILE_PRIORITY. I set mine to 30 like yours and I still see the RPi logo during boot.

bernardoaraujor commented 3 years ago

actually my bad! I was doing SPLASH_IMAGES_append instead of SPLASH_IMAGES_bar. works fine now.

sorry @agherzan thanks again @gvkalra

closing.

agherzan commented 3 years ago

That's absolutely fine. Glad it's sorted.

sedsedus commented 2 years ago

Hey If somebody still has the same problem, I've found another solution (the only one that has worked for me). For me, none of the above nor the proposals found elsewhere wouldn't work (I'm also on the dunfell branch). Btw. I noticed that the SPLASH issue is fixed upstream (https://github.com/agherzan/meta-raspberrypi/commit/d4d1441bd217f1a3dc353a6c20eadceb819c8e37), but not on the dunfell branch.

The solution is simply to keep the new splash screen image under the same name as it is in meta-raspberrypi layer. It doesn't even have to be precompiled (by ./make-image-header.sh). As it's done automatically and takes precedence over the meta-raspberrypi splash image file. The file structure in my custom layer:

recipes-core/psplash/psplash_%.bbappend
recipes-core/psplash/files/psplash-raspberrypi.png

psplash_%.bbappend:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SPLASH_IMAGES_rpi = "file://psplash-raspberrypi.png;outsuffix=raspberrypi"

local.conf:

IMAGE_FEATURES += "splash"