public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: <sezeroz@ttnet.net.tr>
To: <linux-kernel@vger.kernel.org>
Cc: <marcelo.tosatti@cyclades.com>
Subject: 2.4.28-rc1, more lost patches [9/10]
Date: Wed, 27 Oct 2004 12:48:38 +0300	[thread overview]
Message-ID: <20041027094838.KCUZ6935.fep01.ttnet.net.tr@localhost> (raw)

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]


[9/10] Gerard Sharp: boot-logo with version. From distro kernels.
(nothing serious, just displays the kernel version above
the tux logo).


[-- Attachment #2: versioned_boot_logo.patch --]
[-- Type: application/octet-stream, Size: 2085 bytes --]

from distro kernels

diff -urN 28rc1/drivers/video/fbcon.c 28rc1_aac/drivers/video/fbcon.c
--- 28rc1/drivers/video/fbcon.c	2004-10-24 00:45:59.000000000 +0300
+++ 28rc1_aac/drivers/video/fbcon.c	2004-10-24 00:58:11.000000000 +0300
@@ -46,6 +46,9 @@
  *    o mfb			Monochrome
  *    o vga			VGA characters/attributes
  *
+ *  Gerard Sharp (gsharp@ihug.co.nz) contributed alterations providing a line
+ *  of text above the bootlogo stating the kernel version.
+ *
  *  To do:
  *
  *    - Implement 16 plane mode (iplan2p16)
@@ -58,6 +61,7 @@
 
 #undef FBCONDEBUG
 
+#include <linux/version.h>
 #include <linux/config.h>
 #include <linux/module.h>
 #include <linux/types.h>
@@ -662,7 +666,8 @@
     	/* Need to make room for the logo */
 	int cnt, step, erase_char;
 
-    	logo_lines = (LOGO_H + fontheight(p) - 1) / fontheight(p);
+/* Make logo 1 (text) line taller - for version text */
+    	logo_lines = (LOGO_H + (fontheight(p)*2) - 1) / fontheight(p);
     	q = (unsigned short *)(conp->vc_origin + conp->vc_size_row * old_rows);
     	step = logo_lines * old_cols;
     	for (r = q - logo_lines * old_cols; r < q; r++)
@@ -1554,6 +1559,14 @@
     if (p->dispsw->clear_margins && vt_cons[unit]->vc_mode == KD_TEXT)
 	p->dispsw->clear_margins(conp, p, 0);
     if (logo_shown == -2) {
+/* Display a line above the Boot Logo to state
+   what version of the kernel we are booting */
+	char welcometext[] = "Linux " UTS_RELEASE;
+	unsigned short welcomestring[ sizeof(welcometext) ];
+	int i;
+	for(i = 0; i < sizeof(welcometext); i++)
+	    welcomestring[i] = 0x0700 | welcometext[i];
+	fbcon_putcs( conp, welcomestring, sizeof(welcometext), 0, 0 );
 	logo_shown = fg_console;
 	fbcon_show_logo(); /* This is protected above by initmem_freed */
 	update_region(fg_console,
@@ -2149,7 +2162,10 @@
     /* Return if the frame buffer is not mapped */
     if (!fb)
 	return 0;
-	
+
+    /*  Move Penguin(s) down one line; for version line. */
+    fb += fontheight(p) * line;
+
     /*
      * Set colors if visual is PSEUDOCOLOR and we have enough colors, or for
      * DIRECTCOLOR

                 reply	other threads:[~2004-10-27  9:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041027094838.KCUZ6935.fep01.ttnet.net.tr@localhost \
    --to=sezeroz@ttnet.net.tr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox