linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: boot logo size patch
@ 2002-05-17 18:39 Torrey Hoffman
  0 siblings, 0 replies; 4+ messages in thread
From: Torrey Hoffman @ 2002-05-17 18:39 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Rolland Dudemaine, mj, Linux Kernel Development, thoffman

Geert Uytterhoeven wrote:

> > The second patch introduces a C program "tologo" to the scripts 
> > directory.  It converts arbitrary .ppm files to the linux_logo.h 
> > format, but is not 100% done (works correctly for 256 color images
> > but not the 16 color or black & white ones)
> 
> For a program that handles all cases, check out my page:
> 
>     http://home.tvd.be/cr26864/Linux/fbdev/logo.html
> 

Ahh...  excellent!  And finally I can see what the arch-specific logos
actually are.   Do you plan to put something like this into 2.5?

My plan was to prepare a patch for 2.5 after the framebuffer and 
console rewrite (and kbuild 2.5) was done and merged, and then send 
it to you and James...  but maybe you already have your own plans 
for this?

I think it would be great if 2.6 users could easily change the boot 
logo, just by replacing a graphics file before compiling.

Torrey Hoffman

thoffman@arnor.net
torrey.hoffman@myrio.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: boot logo size patch
  2002-05-17  0:27 Torrey Hoffman
@ 2002-05-17 11:11 ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2002-05-17 11:11 UTC (permalink / raw)
  To: Torrey Hoffman; +Cc: Rolland Dudemaine, mj, Linux Kernel Development

On Thu, 16 May 2002, Torrey Hoffman wrote:
> Rolland Dudemaine wrote:
> > For a *long* time, the boot logo has stayed in the kernel at many 
> > places. Recently, it has been cleaned up to reduce the number of 
> > identical logos. 
> 
> [...]
> 
> If you are interested in cleaning up the boot logo, you may want to
> check out the patch set at www.arnor.net/linuxlogo
> 
> That sequence of six patches begins as you have, moving LOGO_H and 
> LOGO_W into the individual logo files where they belong.
> 
> The second patch introduces a C program "tologo" to the scripts 
> directory.  It converts arbitrary .ppm files to the linux_logo.h 
> format, but is not 100% done (works correctly for 256 color images
> but not the 16 color or black & white ones)

For a program that handles all cases, check out my page:

    http://home.tvd.be/cr26864/Linux/fbdev/logo.html

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: boot logo size patch
@ 2002-05-17  0:27 Torrey Hoffman
  2002-05-17 11:11 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Torrey Hoffman @ 2002-05-17  0:27 UTC (permalink / raw)
  To: Rolland Dudemaine, mj, linux-kernel

Rolland Dudemaine wrote:

> For a *long* time, the boot logo has stayed in the kernel at many 
> places. Recently, it has been cleaned up to reduce the number of 
> identical logos. 

[...]

If you are interested in cleaning up the boot logo, you may want to
check out the patch set at www.arnor.net/linuxlogo

That sequence of six patches begins as you have, moving LOGO_H and 
LOGO_W into the individual logo files where they belong.

The second patch introduces a C program "tologo" to the scripts 
directory.  It converts arbitrary .ppm files to the linux_logo.h 
format, but is not 100% done (works correctly for 256 color images
but not the 16 color or black & white ones)

The third patch adds the generic 80x80 pixel penguin logo as 
arch/i386/linux_logo.ppm, but other arch-specific logos are missing.

The forth patch modifies the makefiles to generate linux_logo.h at 
compile time.

The fifth patch removes all 15 (!) now redundant linux_logo.h files,
removing 360K of headers from the kernel source.

The sixth patch is somewhat unrelated, and adds options and controls
for turning off or adjusting the blink rate of the framebuffer cursor.

Obviously, these patches make it trivial to put any graphic you want
in as your boot logo.  Just save your image from the Gimp as 
arch/$(ARCH)/linux_logo.ppm,  and recompile... voila!

I am nominally the maintainer of this set of patches.  I do plan to
forward port it from 2.4.x to 2.5 after James Simmon's big console
rewrite has been merged, as well as updating it for 2.4.19 when 
that comes out.

Comments appreciated...

Torrey Hoffman

thoffman@arnor.net
torrey.hoffman@myrio.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* boot logo size patch
@ 2002-05-16 16:43 Rolland Dudemaine
  0 siblings, 0 replies; 4+ messages in thread
From: Rolland Dudemaine @ 2002-05-16 16:43 UTC (permalink / raw)
  To: mj, linux-kernel

Hello,

For a *long* time, the boot logo has stayed in the kernel at many 
places. Recently, it has been cleaned up to reduce the number of 
identical logos. Along with the logo data, the LINUX_LOGO_COLORS have 
been moved to each linux_logo.h file.
However, the image size still remains in fbcon.c . It's too bad that 
this is not separated in each linux_logo.h file, because that would 
allow easy logo changing... (and having patched it a couple of times, I 
know it IS working with other sizes than 80x80).

What I am proposing in this patch is moving LOGO_H and LOGO_W to each 
linux_logo.h file. Here we go :

diff -urN linux.unpatched/drivers/video/fbcon.c linux/drivers/video/fbcon.c
--- linux.unpatched/drivers/video/fbcon.c    Wed May 15 10:23:15 2002
+++ linux/drivers/video/fbcon.c    Wed May 15 15:09:49 2002
@@ -110,8 +110,6 @@
#  define DPRINTK(fmt, args...)
#endif

-#define LOGO_H            80
-#define LOGO_W            80
#define LOGO_LINE    (LOGO_W/8)

struct display fb_display[MAX_NR_CONSOLES];
diff -urN linux.unpatched/include/asm-m68k/linux_logo.h 
linux/include/asm-m68k/linux_logo.h
--- linux.unpatched/include/asm-m68k/linux_logo.h    Tue Jun 12 17:39:50 
2001
+++ linux/include/asm-m68k/linux_logo.h    Wed May 15 15:13:16 2002
@@ -30,6 +30,9 @@

#define LINUX_LOGO_COLORS    185

+#define LOGO_H            80
+#define LOGO_W            80
+
#ifdef INCLUDE_LINUX_LOGO_DATA

unsigned char linux_logo_red[] __initdata = {
diff -urN linux.unpatched/include/asm-mips64/linux_logo.h 
linux/include/asm-mips64/linux_logo.h
--- linux.unpatched/include/asm-mips64/linux_logo.h    Sun Sep  9 
17:43:02 2001
+++ linux/include/asm-mips64/linux_logo.h    Wed May 15 15:09:49 2002
@@ -27,6 +27,9 @@

#define LINUX_LOGO_COLORS    187

+#define LOGO_H            80
+#define LOGO_W            80
+
#ifdef INCLUDE_LINUX_LOGO_DATA

unsigned char linux_logo_red[] __initdata = {
diff -urN linux.unpatched/include/asm-ppc/linux_logo.h 
linux/include/asm-ppc/linux_logo.h
--- linux.unpatched/include/asm-ppc/linux_logo.h    Tue Jun 12 02:15:27 
2001
+++ linux/include/asm-ppc/linux_logo.h    Wed May 15 15:09:49 2002
@@ -19,9 +19,6 @@

#define linux_logo_banner "Linux/PPC version " UTS_RELEASE

-#define LINUX_LOGO_HEIGHT    80
-#define LINUX_LOGO_WIDTH    80
-
#include <linux/linux_logo.h>

#endif /* __KERNEL__ */
diff -urN linux.unpatched/include/asm-ppc64/linux_logo.h 
linux/include/asm-ppc64/linux_logo.h
--- linux.unpatched/include/asm-ppc64/linux_logo.h    Tue May  7 
11:30:04 2002
+++ linux/include/asm-ppc64/linux_logo.h    Wed May 15 15:09:49 2002
@@ -20,7 +20,4 @@

#define linux_logo_banner "Linux/PPC-64 version " UTS_RELEASE

-#define LINUX_LOGO_HEIGHT    80
-#define LINUX_LOGO_WIDTH    80
-
#include <linux/linux_logo.h>
diff -urN linux.unpatched/include/asm-sh/linux_logo.h 
linux/include/asm-sh/linux_logo.h
--- linux.unpatched/include/asm-sh/linux_logo.h    Sat Sep  8 19:29:09 2001
+++ linux/include/asm-sh/linux_logo.h    Wed May 15 15:09:49 2002
@@ -30,6 +30,9 @@

#define LINUX_LOGO_COLORS       160

+#define LOGO_H            80
+#define LOGO_W            80
+
#ifdef INCLUDE_LINUX_LOGO_DATA

unsigned char linux_logo_red[] __initdata = {
diff -urN linux.unpatched/include/asm-sparc/linux_logo.h 
linux/include/asm-sparc/linux_logo.h
--- linux.unpatched/include/asm-sparc/linux_logo.h    Tue Jun 12 
18:08:46 2001
+++ linux/include/asm-sparc/linux_logo.h    Wed May 15 15:09:49 2002
@@ -28,6 +28,9 @@

#define LINUX_LOGO_COLORS    221

+#define LOGO_H            80
+#define LOGO_W            80
+
#ifdef INCLUDE_LINUX_LOGO_DATA

unsigned char linux_logo_red[] __initdata = {
diff -urN linux.unpatched/include/asm-sparc64/linux_logo.h 
linux/include/asm-sparc64/linux_logo.h
--- linux.unpatched/include/asm-sparc64/linux_logo.h    Tue Jun 12 
18:08:46 2001
+++ linux/include/asm-sparc64/linux_logo.h    Wed May 15 15:09:49 2002
@@ -28,6 +28,9 @@

#define LINUX_LOGO_COLORS    221

+#define LOGO_H            80
+#define LOGO_W            80
+
#ifdef INCLUDE_LINUX_LOGO_DATA

unsigned char linux_logo_red[] __initdata = {
diff -urN linux.unpatched/include/linux/linux_logo.h 
linux/include/linux/linux_logo.h
--- linux.unpatched/include/linux/linux_logo.h    Wed May 15 15:40:58 2002
+++ linux/include/linux/linux_logo.h    Wed May 15 15:12:25 2002
@@ -20,6 +20,9 @@

#ifndef __HAVE_ARCH_LINUX_LOGO
#define LINUX_LOGO_COLORS    187
+
+#define LOGO_H            80
+#define LOGO_W            80
#endif

#ifdef INCLUDE_LINUX_LOGO_DATA

As you can see, this also removes LINUX_LOGO_HEIGHT and LINUX_LOGO_WIDTH 
from ppc config.

Hope this has come to the right man, and will be the beginning to my 
small contribution to the linux kernel...

Best regards,
Rolland Dudemaine


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-17 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-17 18:39 boot logo size patch Torrey Hoffman
  -- strict thread matches above, loose matches on Subject: below --
2002-05-17  0:27 Torrey Hoffman
2002-05-17 11:11 ` Geert Uytterhoeven
2002-05-16 16:43 Rolland Dudemaine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).