Project

General

Profile

Using psplash

The psplash application can be used to load a boot image to the screen while the kernel is booting.

In order to change the boot logo, you need to recompile psplash after preparing your boot logo.

For your first time, please try a small simple picture (e.g. a 100x100 square) to test your process. Then, you can change it to your actual image. Please make sure your image is no larger than the size of your screen.

First, make sure the GDK pixbuf2 library is installed:

$ sudo dnf install gdk-pixbuf2-devel

for Fedora or
$ apt-get install libgdk-pixbuf2.0-dev

for Ubuntu.

Then, download the psplash source code and setup your environment:

$ git clone https://git.yoctoproject.org/psplash
$ cd psplash
$ source /opt/criticallink/mitysom-335x_2020-08-20/environment-setup-cortexa8t2hf-neon-criticallink-linux-gnueabi 

Note: Your environment setup path may differ based on the MDK version you installed.

Use the ./make-image-header.sh script included in the source code to create a new header file with your new image:

./make-image-header.sh <path_to_image_file> POKY

Note: Just use POKY for the last option. You can use a jpeg file for the image file.

The make-image-header.sh command will generate the header file with the image contents (<your_logo_filename>-img.h).

Open the psplash.c file and replace this line:

#include "psplash-poky-img.h" 

with
#include "<your_logo_filename>-img.h" 

For example, if your image file name is foo.jpeg, then the include line would look like:
#include "foo.jpeg-img.h" 

After saving the modified psplash.c, build psplash:

$ autoreconf  -i
$ ./configure --host=arm-criticallink-linux-gnueabi-
$ make 

Replace the psplash file in your target root filesystem with the new psplash binary created by the make command.

Go to top
Add picture from clipboard (Maximum size: 1 GB)