diff options
author | Rose Hellsing <rose@pinkro.se> | 2025-09-08 12:30:58 +0200 |
---|---|---|
committer | Rose Hellsing <rose@pinkro.se> | 2025-09-08 12:30:58 +0200 |
commit | f1e24d45fa3aff49741c69eeca384108a386b8bf (patch) | |
tree | d63a10a03b09d8df61bee67b485d9bc6a81bcf2b | |
download | logo-patches-main.tar.gz logo-patches-main.tar.bz2 |
-rw-r--r-- | README.md | 15 | ||||
-rw-r--r-- | v6.12/0001-logo-Add-option-for-custom-boot-logo-generic.patch | 69 |
2 files changed, 84 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f6b09b6 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Linux Logo Patches +This repository contains patches to add support for custom splash logos in the boot screen. + +To apply the patches download the one for the relevant kernel version and apply it with `git am` or whatever method is most convenient. + +An image that the kernel accepts can be generated like this: +``` +magick logo.png logo.ppm +ppmquant 224 logo.ppm > logo_224.ppm +pnmnoraw splash_224.ppm > logo_ascii_224.ppm +``` + +Then simply copy `logo_ascii_224.ppm` to `drivers/video/logo/logo_custom_clut224.ppm` + +Don't forget to set `LOGO_CUSTOM=y` in the kernel configuration diff --git a/v6.12/0001-logo-Add-option-for-custom-boot-logo-generic.patch b/v6.12/0001-logo-Add-option-for-custom-boot-logo-generic.patch new file mode 100644 index 0000000..8264daf --- /dev/null +++ b/v6.12/0001-logo-Add-option-for-custom-boot-logo-generic.patch @@ -0,0 +1,69 @@ +From 030df084f51bf2c8f512e15d531835079d22c709 Mon Sep 17 00:00:00 2001 +From: Rose Hellsing <rose@pinkro.se> +Date: Mon, 8 Sep 2025 10:44:56 +0200 +Subject: [PATCH] logo: Add option for custom boot logo + +--- + drivers/video/logo/Kconfig | 4 ++++ + drivers/video/logo/Makefile | 1 + + drivers/video/logo/logo.c | 4 ++++ + include/linux/linux_logo.h | 1 + + 4 files changed, 10 insertions(+) + +diff --git a/drivers/video/logo/Kconfig b/drivers/video/logo/Kconfig +index ce6bb7535..e673f72f3 100644 +--- a/drivers/video/logo/Kconfig ++++ b/drivers/video/logo/Kconfig +@@ -30,6 +30,10 @@ config LOGO_LINUX_CLUT224 + bool "Standard 224-color Linux logo" + default y + ++config LOGO_CUSTOM ++ bool "Custom logo" ++ default y ++ + config LOGO_DEC_CLUT224 + bool "224-color Digital Equipment Corporation Linux logo" + depends on MACH_DECSTATION || ALPHA +diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile +index 895c60b84..ec31c150e 100644 +--- a/drivers/video/logo/Makefile ++++ b/drivers/video/logo/Makefile +@@ -2,6 +2,7 @@ + # Makefile for the Linux logos + + obj-$(CONFIG_LOGO) += logo.o ++obj-$(CONFIG_LOGO_CUSTOM) += logo_custom_clut224.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 +diff --git a/drivers/video/logo/logo.c b/drivers/video/logo/logo.c +index 141f15a9a..ee2d13f4e 100644 +--- a/drivers/video/logo/logo.c ++++ b/drivers/video/logo/logo.c +@@ -75,6 +75,10 @@ const struct linux_logo * __ref fb_find_logo(int depth) + /* Generic Linux logo */ + logo = &logo_linux_clut224; + #endif ++#ifdef CONFIG_LOGO_CUSTOM ++ /* Custom Logo */ ++ logo = &logo_custom_clut224; ++#endif + #ifdef CONFIG_LOGO_DEC_CLUT224 + /* DEC Linux logo on MIPS/MIPS64 or ALPHA */ + logo = &logo_dec_clut224; +diff --git a/include/linux/linux_logo.h b/include/linux/linux_logo.h +index e37699b7e..70c7ff1c8 100644 +--- a/include/linux/linux_logo.h ++++ b/include/linux/linux_logo.h +@@ -33,6 +33,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_custom_clut224; + extern const struct linux_logo logo_dec_clut224; + extern const struct linux_logo logo_mac_clut224; + extern const struct linux_logo logo_parisc_clut224; +-- +2.49.1 + |