Plymouth with BSP 7.0.0

root@verdin-imx8mp-15335644:~# tdx-info

Software summary

Bootloader: U-Boot
Kernel version: 6.6.23-7.0.0-devel-g905d86e4202a #1 SMP PREEMPT Wed Sep 25 11:25:16 UTC 2024
Kernel command line: root=PARTUUID=b9ba28e5-02 ro rootwait console=tty1 console=ttymxc2
Distro name: NAME=“TDX Wayland with XWayland”
Distro version: VERSION_ID=7.0.0-devel-20241219010323-build.0
Hostname: verdin-imx8mp-15335644

Hardware info

HW model: Toradex Verdin iMX8M Plus on Verdin Development Board
Toradex version: 0063 V1.1B
Serial number: 15335644
Processor arch: aarch64

I am attempting to migrate to BSP 7.0.0 and need to add my Plymouth splash screen. I have followed the directions on:

Unfortunately, I am receiving the following error:
ERROR: plymouth-24.004.60-r0 do_compile: ExecutionError(‘/home/sutter/oe-core/build/tmp/work/armv8a-mx8mp-tdx-linux/plymouth/24.004.60/temp/run.do_compile.11740’, 1, None, None)

Is this a known issue?

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It seems you’re encountering a compilation error while trying to add a custom Plymouth splash screen on BSP 7.0.0 for your Verdin iMX8M Plus. While this specific error isn’t widely recognized as a known issue, there are several steps you can take to troubleshoot and resolve it:

  1. Check the Error Logs: Examine the detailed logs generated during the compilation process. These logs can provide specific insights into what might be causing the error.

  2. Verify Dependencies: Ensure that all necessary dependencies for Plymouth are installed in your build environment. Missing dependencies can often lead to compilation failures.

  3. Configuration Settings: Double-check your configuration settings in the Yocto build environment. Ensure that any modifications made for Plymouth are correctly applied and compatible with BSP 7.0.0.

  4. Yocto Build Environment: Confirm that your Yocto build environment is set up correctly for BSP 7.0.0. Issues can sometimes arise from misconfigurations or outdated components in the build setup.

  5. Consult Documentation: Revisit the specific instructions for adding a splash screen in the context of BSP 7.0.0. There might be version-specific steps or considerations that need to be addressed.

By following these steps, you should be able to identify and resolve the issue causing the compilation error. If the problem persists, consider reviewing any recent changes made to the build environment or configurations that might have introduced the error.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Verdin iMX8M Plus - Splashscreen.

Hey @Sutter99,

There has been some issues with splash screens that have been fixed with 7.1.0 nightly pre-release. Are you able to try this?

-Eric

Hi @eric.tx,

I had been using 7.1.0 but had to revert to 7.0.0 because my MIPI-CS camera would not function with 7.1.0. This was described in the thread below:

Would it be possible for me to patch the changes into 7.0.0?

Thank you

Hi @eric.tx,

I built 7.1.0-devel-20250107175416+build.0 and added Plymouth. Unfortunately, it produces the error in the attached log.

ERROR plymouth-24.004.60-r0 do_comp.txt (117.0 KB)

Hey @Sutter99,

Currently have a build trying with 7.1.0 and some of the errors are the same as your link [see below]. There have been some known issues with Plymouth and Torizon that were corrected with 7.1.0, but not on the BSP only side. I will see if my team can share with me any more information.


| ../plymouth-24.004.60/src/plugins/splash/script/script-object.c: In function 'script_obj_as_string':
| ../plymouth-24.004.60/src/plugins/splash/script/script-object.c:314:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
|   314 |                 asprintf (&reply, "%g", string_obj->data.number);
|       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../plymouth-24.004.60/src/plugins/splash/script/script-object.c:319:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
|   319 |         asprintf (&reply, "#(0x%p)", obj);
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../plymouth-24.004.60/src/plugins/splash/script/script-object.c: In function 'script_obj_plus':
| ../plymouth-24.004.60/src/plugins/splash/script/script-object.c:531:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
|   531 |                         asprintf (&newstring, "%s%s", string_a, string_b);

Hey @Sutter99,

I’m testing the build now, but there may be some corrections in the bbappend file required.
Spacing changes in the PACKAGECONFIG and the removal of --with-udev

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += " \
    file://torizonlogo-white.png \
    file://spinner.plymouth \
"

PACKAGECONFIG = " pango drm "

EXTRA_OECONF += "--with-runtimedir=/run"

do_install:append () {
    install -m 0644 ${WORKDIR}/torizonlogo-white.png ${D}${datadir}/plymouth/themes/spinner/watermark.png
    install -m 0644 ${WORKDIR}/spinner.plymouth ${D}${datadir}/plymouth/themes/spinner/spinner.plymouth
}

-Eric

Hi @eric.tx,

The error is still present with the bbappend you provided with 7.1.0-devel-20250107175416+build.0.

Hey @Sutter99,

Some corrections.

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += " \
    file://torizonlogo-white.png \
    file://spinner.plymouth \
"

EXTRA_OECONF += "--with-runtimedir=/run"

do_install:append () {
    install -m 0644 ${WORKDIR}/torizonlogo-white.png ${D}${datadir}/plymouth/themes/spinner/watermark.png
    install -m 0644 ${WORKDIR}/spinner.plymouth ${D}${datadir}/plymouth/themes/spinner/spinner.plymouth
}

removal of the package config requirement, and this causes the need to add
meta-initramfs to the bblayers.conf file.

This allows me to build successfully.

-Eric

Hi @eric.tx,

Thank you! That worked on 7.1.0-devel-20250107175416+build.0. I will need to test it on 7.0.0 next.

Hi @eric.tx,

With your changes Plymouth now functions in 7.0.0 as well.

Thank you!

1 Like