Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 1995 04:43:31 -0500 (EST)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/866: pcvt causes console lockups
Message-ID:  <199512040943.EAA00357@hub.org>
Resent-Message-ID: <199512040950.BAA14692@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         866
>Category:       kern
>Synopsis:       pcvt causes system console to lock up
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec  4 01:50:02 PST 1995
>Last-Modified:
>Originator:     Marc G. Fournier
>Organization:
Knowledge, Information and Communications, Inc
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:


	The kernel is current up to patches to /usr/src/sys, as
of December 3rd.

----[ dmesg ]----

FreeBSD 2.2-CURRENT #1: Sun Dec  3 17:02:55 EST 1995
    scrappy@hub.org:/usr/src/sys/compile/hub
CPU: i386DX (386-class CPU)
real memory  = 8650752 (8448K bytes)
avail memory = 7180288 (7012K bytes)
Probing for devices on the ISA bus:
vt0 at 0x60-0x6f irq 1 on motherboard
vt0: tvga 9000, 80/132 col, color, 8 scr, mf2-kbd, [R3.20-b24]
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 not found at 0x2f8
lpt0 not found at 0xffffffff
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 765
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <Maxtor 7345 AT>
wd0: 329MB (675450 sectors), 790 cyls, 15 heads, 57 S/T, 512 B/S
aha0 at 0x330-0x333 irq 11 drq 5 on isa
aha0 waiting for scsi devices to settle
(aha0:0:0): "QUANTUM LPS340S 020B" type 0 fixed SCSI 2
sd0(aha0:0:0): Direct-Access 327MB (670506 512 byte sectors)
(aha0:6:0): "CONNER CFA540S 13B0" type 0 fixed SCSI 2
sd1(aha0:6:0): Direct-Access 515MB (1056708 512 byte sectors)
npx0 on motherboard
npx0: 387 emulator

----[ /usr/src/sys/i386/conf/hub ]------


#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	GENERIC,v 1.45.2.3 1995/06/05 21:50:41 jkh Exp
#

machine		"i386"
cpu		"I386_CPU"
ident		hub
maxusers	10

#options		DODUMP
options		JREMOD
options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		"SCSI_DELAY=15"		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console

config		kernel	root on wd0 

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

controller	isa0
#controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

#controller	ncr0
controller	ahc0

controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr

controller	scbus0

device		sd0

device		st0

device		cd0	#Only need one of these, the code dynamically grows

# syscons is the default console driver, resembling an SCO console
#device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
options		"PCVT_FREEBSD=210"	# pcvt running on FreeBSD 2.1
options 	PCVT_SCREENSAVER
options		PCVT_PRETTYSCRNS
#options		"PCVT_NSCREENS=7"
#options		XSERVER			# include code for XFree86

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
#device de0

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16


>Description:

	After recompiling the kernel to enable the screen saver in
PCVT, I rebooted the machine with the following /etc/rc.i386 file:


#!/bin/sh -
#
#	rc.i386,v 1.9 1995/05/26 18:06:52 rgrimes Exp
#	Do i386 specific processing
#

echo -n 'enabling FreeBSD/i386 options:'
echo -n ' pcvt'

if [ -s /usr/share/misc/pcvtfonts/vt220l.808 -a \
     -s /usr/share/misc/pcvtfonts/vt220h.808 ] ; then
        loadfont -c 6 -f /usr/share/misc/pcvtfonts/vt220l.808
        loadfont -c 7 -f /usr/share/misc/pcvtfonts/vt220h.808
        for vty in /dev/ttyv* ; do
                scon -d $vty -s 50 -t 300 -1
                cursor -d $vty -s0 -e16
        done
fi
scon -c 1

echo '.'

----

	I had enabled both the -t 300 and -1 at the time, since 
I wanted to use my console in 132col mode.

	After rebooting with those settings, my console would not
switch to either 132col mode, or the 50line mode that I'm using
currently.  It reverted to 24/25x80 mode.

	When I attempted to edit /etc/rc.i386 to disable -1, to
see if that might be what was preventing the -s 50 from working
properly, the console locked up.  Whether it was just the keyboard,
or both keyboard/monitor, I do not know.

	After booting into single user mode, and disabling -1,
I once more rebooted the machine, to the same results...25x80,
and the console locking when I tried to disable the only other
"new" thing...-t 300.  

	for the second time, I had to boot into single user mode
to fix /etc/rc.i386, but am unable to enable either the screen saver
or 132col mode.

>How-To-Repeat:

	enable -t 300 for the screen saver 

>Fix:
	
	

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512040943.EAA00357>