I'm making a yocto image which I'm booting from a usb stick using syslinux. There's a lot of boot output that I'd like to hide. From reading the yocto docs it looks like adding a splash screen should hide this. I have added splash to the IMAGE_FEATURES, but the splash screen doesn't appear, and the syslinux boot output is still visible. Any idea what I may be doing wrong? Other suggestions on how to hide that boot output also welcome.
yocto splash screen not appearing
6.7k views Asked by snazzybucket At
2
There are 2 answers
0
On
On some platforms like the Amlogic S905 SOC the OSD layer has a default transparency because it is intended to overlay a video. What is used for example in STB boxes. So you may have to set the transparency for each pixel
From 01cf2069631609b6a9a17fe087cf96925f9ac546 Mon Sep 17 00:00:00 2001
From: Christian Ege <[email protected]>
Date: Sat, 20 Aug 2016 10:37:53 +0200
Subject: [PATCH] Manage transparency to each 32 bit pixel in RGB888
Otherwise we'll have a black screen instead of a boot splash
Signed-off-by: Christian Ege <[email protected]>
---
psplash-fb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/psplash-fb.c b/psplash-fb.c
index 38cd6a4..6ca8006 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
@@ -308,7 +308,7 @@ psplash_fb_plot_pixel (PSplashFB *fb,
break;
case 32:
*(volatile uint32_t *) (fb->data + off)
- = (red << 16) | (green << 8) | (blue);
+ = (0xFF << 24) | (red << 16) | (green << 8) | (blue);
break;
case 16:
--
2.7.4
For more details check the following github issue.
To add splash screen into the image, in your
local.conf, addIMAGE_INSTALL_append = " psplash"The psplash recipe is in
/poky/meta/recipes-core/psplash.Another option is to create
core-image-full-cmdlinewhich will have psplash in it.Edit: If you want to modify the psplash screen,
git clone git://git.yoctoproject.org/psplashhave a
.pngimage of yours with the same screen dimensiongo to the psplash directory and find
make-image-header.sh$./make-image-heaer.sh <your-image>.png POKY_IMGNote that I used
POKY_IMGis because I want to replace the newly created psplash files inpoky/meta/recipes-core/psplash/files/psplash-poky-img.hThere is also another psplash in
poky/meta-yocto/recipes-core/psplash. This one ispsplash_git.bbappendwhich will override the one in/poky/meta/recipes-core/psplash.In
psplash_git.bbappend, after you have added yourmy-splash-img.hto the file directory, you could addSPLASH_IMAGES = "file://my-splash-img.h;outsuffic=default"for it to choose your splash image.To change color of the background, bar, etc. you will need to go to
${WORKDIR}/psplash/git/psplash-colors.h. The color is in hex. After you have done, create a patch file to use it for next time compile.