Add a Custom boot animation

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,

Your approach to setting a custom Plymouth theme in your Yocto build appears to be on the right track. Let’s review your steps and ensure everything is correctly configured:

  1. Theme Files: Your video.plymouth and video.script files seem properly set up to define a custom video boot animation. Double-check that all paths and filenames are consistent with your build environment.

  2. Yocto Recipe (plymouth_%.bbappend): Your recipe correctly includes the theme files and specifies their installation paths. Ensure the do_install:append function places the files in the correct directory structure within the root filesystem.

  3. Setting the Default Theme:

    • The PREFERRED_THEME variable is not typically used for Plymouth themes. Instead, your use of ROOTFS_POSTPROCESS_COMMAND is appropriate. The set_plymouth_theme function should effectively set your theme and rebuild the initrd.
  4. Verification:

    • After building the image, confirm that the theme files are in the expected directory on the target device.
    • Check the Plymouth configuration file (usually /etc/plymouth/plymouthd.conf) on the target to ensure it points to your custom theme.
    • Verify that the initrd is rebuilt with the new theme settings. You can manually inspect the initrd contents if necessary.

By following these steps, your custom theme should be set as the default. If you encounter any issues, ensure that the plymouth-set-default-theme command is executed correctly during the build process.

Best regards,
Toradex AI Assistant

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

Smooth display transition.