How to change the default U-Boot splash screen (Yocto BSP imx-6.12.20-2.0.0)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the default U-Boot splash screen (Yocto BSP imx-6.12.20-2.0.0)

910 Views
binil
Contributor II

I am using the Yocto BSP imx-6.12.20-2.0.0. In the current build, U-Boot displays the default 4-penguin splash image at boot time.

Could you please let me know from where this default U-Boot image is being picked?
Also, how can I replace this image with a custom splash screen as part of the Yocto build?

Any guidance on which source files or Yocto recipes need to be modified would be greatly appreciated.

Tags (1)
0 Kudos
Reply
9 Replies

838 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @binil 

Replacing logo need to modify kernel source code, logo file is .ppm file here. You can refer this guide.

https://github.com/nxp-imx/linux-imx/tree/lf-6.12.y/drivers/video/logo

For yocto layer, please refer yocto guide to create a custom layer.

https://docs.yoctoproject.org/next/dev-manual/layers.html

Best Regards,
Zhiming

0 Kudos
Reply

805 Views
binil
Contributor II
@Zhiming_Liu
still see logo_linux_clut224.ppm showing the original penguin image.

I’m trying to replace the default penguin boot logo shown at kernel boot on my Yocto image.

Following the instructions from https://variwiki.com/index.php/Yocto_Linux_logo
, I created a linux-imx_%.bbappend file under:
>meta-freescale/recipes-kernel/linux/

Inside that bbappend, I added my custom logo.ppm and placed the image under a files directory alongside the bbappend.

Then I rebuilt the kernel and image:
$bitbake -c cleanall linux-imx
$bitbake linux-imx
$bitbake imx-image-full

However, even after rebuilding, the penguin logo is still displayed at boot. I checked inside the build at:
>kernel-source/drivers/video/logo/

Note: Before building, I manually deleted logo_linux_clut224.ppm from drivers/video/logo/ hoping it would be replaced — but it still comes back and the logo doesn’t change.
0 Kudos
Reply

760 Views
binil
Contributor II

@Zhiming_Liu

Thanks, I can able to change the default log,

but like 4 penguin image, it shows my custom image as 4 tiles

can we shows it as single image as 1920x1080

0 Kudos
Reply

772 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Your kernel doesn't contain this commit: https://github.com/varigit/linux-2.6-imx/commit/1a3d71c1c38b058daa0d29140a9cff747e5a7f51, so it will not use logo.ppm.

 

You can rename logo.ppm to logo_linux_clut224.ppm, this will replace original logo_linux_clut224.ppm

Best Regards,
Zhiming

0 Kudos
Reply

709 Views
binil
Contributor II

@Zhiming_Liu

Thanks, I can able to change the default log,

but like 4 penguin image, it shows my custom image as 4 tiles

can we shows it as single image as 1920x1080

0 Kudos
Reply

636 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

607 Views
binil
Contributor II

@Zhiming_Liu 

In the commit it only mention about to show "logo_linux_clut224.ppm", 
but my requirement is to show the logo_linux_clut224.ppm as single image instead of 4 tiles in full screen (1920 x1080)

0 Kudos
Reply

519 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,


There is no ready-made patch for your application, but need you to modify the source code referring the previous commit.


Best Regards,
Zhiming

0 Kudos
Reply

871 Views
binil
Contributor II

 I found the line "sources/meta-openembedded/meta-oe/recipes-kernel/linux/linux.inc"

if [ -e ${UNPACKDIR}/logo_linux_clut224.ppm ]; then
install -m 0644 ${UNPACKDIR}/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm

I think the "logo_linux_clut224.ppm " showing the default penguin image,

If so, can you please help me to modify it with my "logo_linux_clut224.ppm" file

0 Kudos
Reply