bootscreen/splashscreen with systemd

Moderators: Oren.R, Eran.M, fradensky

Jascha.K
Posts: 10
Joined: Tue Oct 04, 2016 7:01 am

bootscreen/splashscreen with systemd

Postby Jascha.K » Wed Nov 09, 2016 2:33 pm

I want to setup a splashscreen while booting that is compatible with systemd. Do you have any advice for the best solaution? I don't need fancy animation stuff but want to show our company logo and not the penguin. ;-) Thank you in advance.
Last edited by Jascha.K on Fri Nov 11, 2016 9:17 am, edited 1 time in total.

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: bootscreen/splashscreen with systemd

Postby Eran.M » Thu Nov 10, 2016 7:45 pm

This logo is part of the kernel image - systemd has nothing to do with it.
See here how to obtain and manually build the kernel source code, and here how to build your customized kernel with Yocto.


Create your logo in a .png format (logo.png), and make the following additions in the kernel source tree:

$ sudo apt-get install netpbm
$ pngtopnm logo.png | ppmquant 224 | pnmnoraw > drivers/video/logo/logo_variscite_clut224.ppm

diff --git a/drivers/video/logo/Kconfig b/drivers/video/logo/Kconfig
index 0037104..bb4aae5 100644
--- a/drivers/video/logo/Kconfig
+++ b/drivers/video/logo/Kconfig
@@ -27,6 +27,10 @@ config LOGO_LINUX_CLUT224
bool "Standard 224-color Linux logo"
default y

+config LOGO_VARISCITE_CLUT224
+ bool "224-color Variscite Linux logo"
+ default y
+
config LOGO_BLACKFIN_VGA16
bool "16-colour Blackfin Processor Linux logo"
depends on BLACKFIN
diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile
index 3b43781..5747ba8 100644
--- a/drivers/video/logo/Makefile
+++ b/drivers/video/logo/Makefile
@@ -4,6 +4,7 @@ obj-$(CONFIG_LOGO) += logo.o
obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
+obj-$(CONFIG_LOGO_VARISCITE_CLUT224) += logo_variscite_clut224.o
obj-$(CONFIG_LOGO_BLACKFIN_CLUT224) += logo_blackfin_clut224.o
obj-$(CONFIG_LOGO_BLACKFIN_VGA16) += logo_blackfin_vga16.o
obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
diff --git a/drivers/video/logo/logo.c b/drivers/video/logo/logo.c
index 10fbfd8..8dabdf5 100644
--- a/drivers/video/logo/logo.c
+++ b/drivers/video/logo/logo.c
@@ -78,6 +78,10 @@ const struct linux_logo * __init_refok fb_find_logo(int depth)
/* Generic Linux logo */
logo = &logo_linux_clut224;
#endif
+#ifdef CONFIG_LOGO_VARISCITE_CLUT224
+ /* Variscite Linux logo */
+ logo = &logo_variscite_clut224;
+#endif
#ifdef CONFIG_LOGO_BLACKFIN_CLUT224
/* Blackfin Linux logo */
logo = &logo_blackfin_clut224;
diff --git a/include/linux/linux_logo.h b/include/linux/linux_logo.h
index ca5bd91..f33c003 100644
--- a/include/linux/linux_logo.h
+++ b/include/linux/linux_logo.h
@@ -35,6 +35,7 @@ struct linux_logo {
extern const struct linux_logo logo_linux_mono;
extern const struct linux_logo logo_linux_vga16;
extern const struct linux_logo logo_linux_clut224;
+extern const struct linux_logo logo_variscite_clut224;
extern const struct linux_logo logo_blackfin_vga16;
extern const struct linux_logo logo_blackfin_clut224;
extern const struct linux_logo logo_dec_clut224;


Regards,
Eran

Jascha.K
Posts: 10
Joined: Tue Oct 04, 2016 7:01 am

Re: bootscreen/splashscreen with systemd [ANSWERED]

Postby Jascha.K » Fri Nov 11, 2016 9:17 am

Thanks, I know that it is possible to change the penguin, but I mean an animated spalshscreen with plymouth or dietsplash. The older variscite fido distribution had an animated splashcreen. This is what I want to achieve.

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: bootscreen/splashscreen with systemd

Postby Eran.M » Fri Nov 11, 2016 9:43 am

I don't understand.
You specifically wrote you want to change the penguin to your company logo and that you don't want animation.
Secondly, I don't know what animated splash in Fido you are referring to.
Are you referring to psplash (the one with the Variscite and Yocto logos, and the progress bar animation)? If so, we still have it in Jethro and even more customized.

Jascha.K
Posts: 10
Joined: Tue Oct 04, 2016 7:01 am

Re: bootscreen/splashscreen with systemd

Postby Jascha.K » Fri Nov 11, 2016 9:51 am

Ok, my mistake. I don't want FANCY animation stuff, a simple progress bar would be perfectly fine. But psplash doesn't work together with systemd (or with the framebuffer image?). If I activate systemd and build the build_fb core-image-minimal, I just see the penguin, not the Variscite animation. I want to build core-image-minimal with systemd and my company logo with a simple progress bar. That would be perfect :) Thank you in advance.


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 2 guests

cron