How to display a centered Linux boot logo with DEL5.6 or DEL5.7

Kernel config option for a centered boot logo is available since DEL5.8.
To add this feature to Digi Embedded Linux 5.6 (DEL5.6) or DEL5.7 please save patch below as "centeredlogo.patch"
and apply the patch. For DEL5.6:

# cd /usr/local/DigiEL-5.6/kernel/linux-2.6.31/
# patch -p0 < centeredlogo.patch


For DEL5.7:

# cd /usr/local/DigiEL-5.7/kernel/linux-2.6.35/
# patch -p0 < centeredlogo.patch


Open your project kernel config and search for "logo", select the "centered boot logo" option and build/install your project.

In order to use a custom boot logo (for DEL5.6 and DEL5.7), just add your custom logo to:
$(WORKSPACE)/$(PROJECT)/build/kernel/drivers/video/logo/logo_linux_clut224.ppm
In DEL5.8 there is a kernel option to do custom boot logo (see ESP instructions).

--- drivers/video/logo/Kconfig 2010-03-15 20:32:52.000000000 +0100
+++ Kconfig 2012-06-18 17:00:22.880841700 +0200
@@ -15,6 +15,11 @@
  depends on FB=y
  default y if SPU_BASE
 
+config FB_LOGO_CENTERED
+ bool "Show the logo centered in the screen"
+ depends on FB=y
+ default y if LOGO_CUSTOM_CLUT224
+
 config LOGO_LINUX_MONO
  bool "Standard black and white Linux logo"
  default y
--- drivers/video/fbmem.c 2010-07-14 15:29:45.000000000 +0200
+++ fbmem.c 2012-06-18 16:57:27.994354800 +0200
@@ -480,6 +480,12 @@
    fb_rotate_logo(info, logo_rotate, &image, rotate);
  }
 
+#ifdef CONFIG_FB_LOGO_CENTERED
+ /* Center the logo in the screen */
+ image.dx = (info->var.xres - image.width) / 2;
+ image.dy = (info->var.yres - image.height) / 2;
+#endif
+
  fb_do_show_logo(info, &image, rotate, n);
 
  kfree(palette);
Last updated: Jun 21, 2019

Recently Viewed

No recently viewed articles

Did you find this article helpful?