Hi,
I’m trying to get a custom splash animation via a Reference Image with Yocto Project/OpenEmbedded.
So I used repo to start and bitbake to build my image.
I added a custom layer that I can see loaded during my build.
This layer has the future purpose of displaying an animation in the form of a series of images.
For the moment I am just trying to validate the operation by displaying an image only (without the basic spinner etc.)
But I only have a black screen at boot and after my card starts well and works well but I don’t see my custom plymouth theme at any time.
Here are my files, do you have any idea where this might come from?
meta-custom-splash/conf/layer.conf :
# We have a conf version, mandatory
LCONF_VERSION = “7”
# We have a conf and classes directory, add to BBPATH
BBPATH .= “:${LAYERDIR}”
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-\*/\*/\*.bbappend \\ ${LAYERDIR}/recipes-\*/\*.bb \\ ${LAYERDIR}/recipes-\*/\*.bbappend \\ "
meta-custom-splash/recipes-core/plymouth/plymouth_%.bbappend :
FILESEXTRAPATHS:prepend := “${THISDIR}/files:”
SRC_URI += "
file://custom.plymouth
file://custom.script
file://frame01.png
file://frame02.png
file://plymouthd.defaults \
"PACKAGECONFIG = “pango drm”
EXTRA_OECONF += “–with-udev --with-runtimedir=/run”
do_install:append () {
install -m 0644 ${WORKDIR}/plymouthd.defaults ${D}${datadir}/plymouth/plymouthd.defaults
install -d ${D}${datadir}/plymouth/themes/custom
install -m 0644 ${WORKDIR}/custom.plymouth ${D}${datadir}/plymouth/themes/custom/custom.plymouth
install -m 0644 ${WORKDIR}/custom.script ${D}${datadir}/plymouth/themes/custom/custom.script
install -m 0644 ${WORKDIR}/frame01.png ${D}${datadir}/plymouth/themes/custom/frame01
install -m 0644 ${WORKDIR}/frame02.png ${D}${datadir}/plymouth/themes/custom/frame02
}FILES:${PN}:append := "
${datadir}/plymouth/themes/custom
${datadir}/plymouth/themes/custom/frame01.png
${datadir}/plymouth/themes/custom/frame02.png
${datadir}/plymouth/themes/custom/custom.script
${datadir}/plymouth/plymouthd.defaults
"
meta-custom-splash/recipes-core/plymouth/files/plymouthd.defaults:
[Daemon]
Theme=custom
ShowDelay=0
DeviceTimeout=8
meta-custom-splash/recipes-core/plymouth/files/custom.plymouth :
[Plymouth Theme]
Name=Custom Boot Splash
Description=Animated splash for Verdin iMX8MP
ModuleName=script[script]
ImageDir=/usr/share/plymouth/themes/custom
ScriptFile=/usr/share/plymouth/themes/custom/custom.script
meta-custom-splash/recipes-core/plymouth/files/custom.script :
image = Image(“frame01.png”);
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;sprite = Sprite(image);
sprite.SetX(pos_x);
sprite.SetY(pos_y);fun refresh_callback () {
sprite.SetOpacity(1);
spr.SetZ(15);
}Plymouth.SetRefreshFunction (refresh_callback);
***build-torizon/conf/local.conf :
this code line has been added :
CORE_IMAGE_EXTRA_INSTALL += “plymouth”
And of course I have theses two images
meta-custom-splash/recipes-core/plymouth/files/frame01.png and
***meta-custom-splash/recipes-core/plymouth/files/frame02.png
Once the image is built and deployed on my device, I can clearly see my folder with my different files in /usr/share/plymouth/
If you have any ideas or explanations, I’m interested.
Thanks you
Simon