Subject: kern/18388: wsfont support spotty
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kpneal@pobox.com>
List: netbsd-bugs
Date: 09/23/2002 18:31:37
>Number: 18388
>Category: kern
>Synopsis: Not all platforms support /dev/wsfont
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 23 15:32:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Kevin P. Neal
>Release: NetBSD 1.6
>Organization:
--
Kevin P. Neal http://www.pobox.com/~kpn/
"You know, I think I can hear the machine screaming from here... \
'help me! hellpp meeee!'" - Heather Flanagan, 14:52:23 Wed Jun 10 1998
>Environment:
System: NetBSD rune.int.neutralgood.org 1.6 NetBSD 1.6 (RUNE-$Revision: 1.1 $) #7: Sun Sep 22 20:32:24 EDT 2002 kpn@neutralgood.org:/local/kernel/compile/RUNE alpha
>Description:
Not all platforms have support for the wsfont device. At least, not all
platforms have the support enabled.
Consider (in /sys/):
rune# find arch -type f -print | xargs grep wsfont | grep /files | wc -l
29
rune# find arch -type f -print | xargs grep wsfont | grep pseudo-device | cut -d/ -f2 | sort -u | wc -l
6
rune# find arch -type f -print | xargs grep wsfont | grep cdev__oci
arch/arm/arm32/conf.c: cdev__oci_init(NWSFONT,wsfont), /* 86: wsfont pseudo-device */
arch/i386/i386/conf.c: cdev__oci_init(NWSFONT,wsfont), /* 81: wsfont pseudo-device */
arch/prep/prep/conf.c: cdev__oci_init(NWSFONT,wsfont), /* 71: wsfont pseudo-device */
arch/sgimips/sgimips/conf.c: cdev__oci_init(NWSFONT,wsfont), /* 54: wsfont pseudo-device */
rune# find /local/data/anoncvs/main/basesrc/etc/etc.* -name MAKEDEV,v | xargs grep wsfont | cut -d/ -f10 | sort -u
etc.arm32
etc.cats
etc.hp300
etc.i386
etc.mvmeppc
etc.prep
etc.sgimips
etc.shark
etc.x86_64
rune#
>How-To-Repeat:
Upgrade an Alpha running 1.5.3 to 1.6. Reboot. Notice how rc.d/wscons
can no longer load fonts. Get stuck with 80x50 virtual terminals with
only the top half of the font being shown.
rune# wsfontload
wsfontload: open ws-device /dev/wsfont: No such file or directory
Go looking for wsfont in the latest MAKEDEV. Fail. Check the source.
It isn't there.
>Fix:
Someone who knows more about this than me should update the conf.c files
on the appropriate hosts. Then the MAKEDEV files should be updated. Bonus
points for adding the wsfont pseudo-device to something like the GENERIC
or (on the Alpha) ALPHA config files as well.
I'd appreciate it as well if this were pulled into the 1.6.1 branch.
>Release-Note:
>Audit-Trail:
>Unformatted: