NetBSD Problem Report #46574
From www@NetBSD.org Sun Jun 10 11:05:36 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 4F88C63B89C
for <gnats-bugs@gnats.NetBSD.org>; Sun, 10 Jun 2012 11:05:36 +0000 (UTC)
Message-Id: <20120610110535.1E3D463B882@www.NetBSD.org>
Date: Sun, 10 Jun 2012 11:05:35 +0000 (UTC)
From: nathanialsloss@yahoo.com.au
Reply-To: nathanialsloss@yahoo.com.au
To: gnats-bugs@NetBSD.org
Subject: wsfb/genfb: single user boot sets the wrong colour palette if SPLASHSCREEN
X-Send-Pr-Version: www-1.0
>Number: 46574
>Category: kern
>Synopsis: wsfb/genfb: single user boot sets the wrong colour palette if SPLASHSCREEN
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: nat
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 10 11:10:00 +0000 2012
>Closed-Date:
>Last-Modified: Sun Nov 15 02:28:10 +0000 2026
>Originator: Nat Sloss
>Release: NetBSD Current 6.99.7
>Organization:
>Environment:
NetBSD beast 6.99.7 NetBSD 6.99.7 (LOCKDEBUG) #81: Sun Jun 10 19:35:53 EST 2012 build@beast:/usr/src/sys/arch/i386/compile/obj/LOCKDEBUG i386
>Description:
If you're using a kernel with the SPLASHSCREEN option and you boot with an 8 bit colour depth vesa screen and single user the kernel messages change to blue when genfb attaches.
This is because wsfb/genfb.c sets the colour palette if there is a splashscreen or not (This is only relevant at 8 bit colour depth).
I tried testing if not DISABLESPLASH before restoring the palette in genfb.c to no avail as other parts of the code must be using the colour palette settings.
>How-To-Repeat:
On a kernel compiled with the SPLASHSCREEN option type the following at the boot prompt:
vesa 640x480x8
boot -s
Then you will notice about half way through the booting process the kernel messages change to blue (as soon as genfb attaches).
>Fix:
Just one of many solutions is to initialise the colour palette and redraw the screen if DISABLESPLASH is set:
Index: sys/dev/wsfb/genfb.c
===================================================================
RCS file: /cvsroot/src/sys/dev/wsfb/genfb.c,v
retrieving revision 1.48
diff -u -r1.48 genfb.c
--- sys/dev/wsfb/genfb.c 12 Apr 2012 22:36:15 -0000 1.48
+++ sys/dev/wsfb/genfb.c 10 Jun 2012 10:45:37 -0000
@@ -314,6 +314,9 @@
genfb_init_palette(sc);
vcons_replay_msgbuf(&sc->sc_console_screen);
}
+ } else {
+ genfb_init_palette(sc);
+ vcons_replay_msgbuf(&sc->sc_console_screen);
}
#else
genfb_init_palette(sc);
Note: This patch is my own work which I submit under the NetBSD license.
Regards,
Nat.
>Release-Note:
>Audit-Trail:
From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/46574: wsfb/genfb: single user boot sets the wrong colour palette if SPLASHSCREEN
Date: Sun, 10 Jun 2012 21:16:40 +1000
Hi.
I forgot to ask could NetBSD 6 be pulled up?
Regards,
Nat.
Responsible-Changed-From-To: kern-bug-people->nat
Responsible-Changed-By: nat@NetBSD.org
Responsible-Changed-When: Sat, 14 Nov 2026 14:44:44 +0000
Responsible-Changed-Why:
Take.
From: "Nathanial Sloss" <nat@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46574 CVS commit: src/sys/dev/wsfb
Date: Sat, 14 Nov 2026 14:49:49 +0000
Module Name: src
Committed By: nat
Date: Sat Nov 14 14:49:49 UTC 2026
Modified Files:
src/sys/dev/wsfb: genfb.c
Log Message:
Save and restore color palette at 8bpp.
Patch and testing by Ray Tran.
Addresses PR/60696.
Addresses PR/40643.
Should address PR/46574 also.
To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/dev/wsfb/genfb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: nat@NetBSD.org
State-Changed-When: Sat, 14 Nov 2026 15:08:55 +0000
State-Changed-Why:
This should be fixed now...closing.
State-Changed-From-To: closed->open
State-Changed-By: nat@NetBSD.org
State-Changed-When: Sun, 15 Nov 2026 02:28:10 +0000
State-Changed-Why:
Re-opening the previous commit did not fix the issue.
More than likely the patch from this PR should be committed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.