Subject: kern/18388: wsfont support spotty
To: None <>
From: None <>
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
>Originator:     Kevin P. Neal
>Release:        NetBSD 1.6
Kevin P. Neal                      

"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
System: NetBSD 1.6 NetBSD 1.6 (RUNE-$Revision: 1.1 $) #7: Sun Sep 22 20:32:24 EDT 2002 alpha


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
rune# find arch -type f -print | xargs grep wsfont | grep pseudo-device | cut -d/ -f2 | sort -u | wc -l
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


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. 


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.