Subject: Re: WSCONSOLE in a DEC3000/300
To: Manuel Bouyer <>
From: Ricardo =?iso-8859-1?Q?N=FA=F1ez?= <>
List: port-alpha
Date: 09/04/2000 14:03:40
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


I send you the output of:

1) dmesg.
2) The stderr of 'sh /etc/rc.wscons'. It's displayed in the booting

I send my /etc/ttys and /etc/wscons.conf files.

I finally can type in the console, but I cannot switch. It seems ttyE0
is the device which works.

The system tells me ttyE1 is not configured.

What do you think?

Manuel Bouyer wrote:
> On Fri, Sep 01, 2000 at 05:06:49PM -0400, Ricardo N˙˝ez wrote:
> > Hello,
> >
> > I'm new in NetBSD and I'm trying to configure the WSCONSOLE.
> >
> > Fortunately, the system reboot and worked, but I can use it just through
> > the ethernet network. I can see the messages in the console but it's
> > imposible to write there.
> >
> > I've changed a lot of times /etc/ttys and /etc/wscons.conf. I can't
> > understand how could they be VT100 or VT220 when in the kernel they are
> > SUN terminals, and the serial terminal parameter "std.9600" in the
> > /etc/ttys. I read in one page of the NetBSD docs that there exists the
> > parameter "WSDISPLAY_DEFAULTSCREENS", but it didn't use it in this
> > kernel
> > version.
> Can you post the output of 'dmesg' here, please ?
> --
> Manuel Bouyer, LIP6, Universite Paris VI. 
> --


           Ing. Ricardo N˙˝ez
           Webmaster de la DST
           Universidad Simˇn BolÝvar
Content-Type: text/plain; charset=us-ascii;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

[ preserving 182448 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4.2 (VERSION_1_2) #0: Fri Sep  1 17:16:10 VET 2000
DEC 3000 - M300LX, 125MHz
8192 byte page size, 1 processor.
real mem = 268435456 (2097152 reserved for PROM, 266338304 used by NetBSD)
avail mem = 231464960
using 3251 buffers containing 26632192 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21064-1 (pass 3)
tcasic0 at mainbus0
tc0 at tcasic0: 12.5 MHz clock
sfb0 at tc0 slot 4 offset 0x2000000: 1280 x 1024, 8bpp
wsdisplay0 at sfb0: console (std, sun emulation)
ioasic0 at tc0 slot 3 offset 0x0: slow mode
le0 at ioasic0 offset 0xc0000: address 08:00:2b:bf:94:f9
le0: 32 receive buffers, 8 transmit buffers
zsc0 at ioasic0 offset 0x100000
zsms0 at zsc0 channel 0
wsmouse0 at zsms0
zstty0 at zsc0 channel 1
zsc1 at ioasic0 offset 0x180000
zskbd0 at zsc1 channel 0
wskbd0 at zskbd0
zstty1 at zsc1 channel 1
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
AMD79c30 at ioasic0 offset 0x240000 not configured
tcds0 at tc0 slot 2 offset 0x0: TurboChannel Dual SCSI (baseboard)
asc0 at tcds0 chip 0: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
probe(asc0:0:0): max sync rate 5.00Mb/s
sd0 at scsibus0 targ 0 lun 0: <DEC, RZ26L    (C) DEC, 440C> SCSI2 0/direct fixed
sd0: 1001MB, 3117 cyl, 8 head, 82 sec, 512 bytes/sect x 2050860 sectors
probe(asc0:1:0): max sync rate 5.00Mb/s
sd1 at scsibus0 targ 1 lun 0: <DEC, RZ26L    (C) DEC, 442D> SCSI2 0/direct fixed
sd1: 1001MB, 3117 cyl, 8 head, 82 sec, 512 bytes/sect x 2050860 sectors
probe(asc0:5:0): max sync rate 5.00Mb/s
sd2 at scsibus0 targ 5 lun 0: <SEAGATE, ST423451W, 0013> SCSI2 0/direct fixed
sd2: 22130MB, 6876 cyl, 28 head, 235 sec, 512 bytes/sect x 45322644 sectors
probe(asc0:6:0): max sync rate 5.00Mb/s
sd3 at scsibus0 targ 6 lun 0: <SEAGATE, ST423451W, 0013> SCSI2 0/direct fixed
sd3: 22130MB, 6876 cyl, 28 head, 235 sec, 512 bytes/sect x 45322644 sectors
wscons: wskbd0 glued to wsdisplay0
root on sd2a dumps on sd2b
root file system type: ffs

Content-Type: text/plain; charset=us-ascii;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

wsconscfg: WSDISPLAYIO_ADDSCREEN: Cannot allocate memory
wsconscfg: WSDISPLAYIO_ADDSCREEN: Cannot allocate memory

Content-Type: text/plain; charset=us-ascii;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

#	$NetBSD: ttys,v 1999/04/29 14:30:41 perry Exp $
# name	getty				type	status		comments

# In normal operation, getty on 'console' pseudo-device is disabled, and is
# enabled for the correct 'real' device (e.g. one of the serial ports).

# console pseudo-device
console	"/usr/libexec/getty std.9600"	vt220 off secure

# Workstation console (framebuffer) ttys
ttyE0	"/usr/libexec/getty std.9600"	vt220 on secure
ttyE1	"/usr/libexec/getty std.9600"	vt220 on secure

# DEC 3000 Z8530 ("scc") serial ports
ttyB0	"/usr/libexec/getty std.9600"	unknown off secure
ttyB1	"/usr/libexec/getty std.9600"	unknown off secure

# AlphaStation NS16550 ("com") serial ports
ttyC0	"/usr/libexec/getty std.9600"	unknown off secure
ttyC1	"/usr/libexec/getty std.9600"	unknown off secure

# pseudo-ttys
ttyp0	none				network
ttyp1	none				network
ttyp2	none				network
ttyp3	none				network
ttyp4	none				network
ttyp5	none				network
ttyp6	none				network
ttyp7	none				network
ttyp8	none				network
ttyp9	none				network
ttypa	none				network
ttypb	none				network
ttypc	none				network
ttypd	none				network
ttype	none				network
ttypf	none				network
ttyq0	none				network
ttyq1	none				network
ttyq2	none				network
ttyq3	none				network
ttyq4	none				network
ttyq5	none				network
ttyq6	none				network
ttyq7	none				network
ttyq8	none				network
ttyq9	none				network
ttyqa	none				network
ttyqb	none				network
ttyqc	none				network
ttyqd	none				network
ttyqe	none				network
ttyqf	none				network

Content-Type: text/plain; charset=us-ascii;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

#	$NetBSD: wscons.conf,v 2000/01/15 16:34:00 he Exp $
# workstation console configuration

# fonts to load
#	name	width	height	enc	file
#font	ibm	-	8	ibm	/usr/share/pcvt/fonts/vt220l.808

# Note: "pcvt" encoded fonts are only useful with the "*bf" screen types
#  of the "vga" driver. The kernel must be compiled with the option
#  "WSCONS_SUPPORT_PCVTFONTS" turned on. See vga(4).
#font	pcvt	-	-	pcvt	/usr/share/pcvt/fonts/vt220h.816
#font	pcvt	-	8	pcvt	/usr/share/pcvt/fonts/vt220h.808

# screens to create
#	idx	screen	emul
# Screen 0 is already configured as console in most cases.
#  Uncomment if a serial console is used.
#screen	0	-	vt100
screen	1	-	vt220
screen	2	-	-
#screen	3	-	vt100
#screen	4	-	-
#screen	4	80x25bf	vt100
#screen	5	80x50	vt100

Content-Type: text/plain; charset=us-ascii;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

# $NetBSD: Version 1.1 del kernel DEC3000/300 2000/09/01
# Soporte de consola wscons.
# Generic Alpha kernel.  Enough to get booted, etc., but not much more.

include	"arch/alpha/conf/std.alpha"

maxusers 32

# CPU Support
options 	DEC_3000_300	# Pelican etc:	3000/300*

# Standard system options
options 	KTRACE			# System call tracing support

# Diagnostic/debugging support options
options 	DIAGNOSTIC		# Cheap kernel consistency checks
options 	DDB			# kernel debugger

# File systems
file-system	FFS		# Fast file system
file-system	MFS		# Memory-based file system
file-system	CD9660		# ISO-9660 CD-ROM FS (w/RockRidge extensions)
#file-system	MSDOSFS		# MS-DOS-compatible file system
file-system	NFS		# Sun NFS-compatible file system client
#file-system	KERNFS
#file-system	PROCFS

# File system options
options 	NFSSERVER	# Sun NFS-compatible file system server
#options 	FFS_EI		# FFS Endian Independant support

# Networking options
options 	INET		# Internet protocol suite

# 4.3BSD compatibility.  Should be optional, but necessary for now.
options 	COMPAT_43

# Binary compatibility with previous versions of NetBSD.
#options 	COMPAT_09
options 	COMPAT_10
options 	COMPAT_11
options 	COMPAT_12
options 	COMPAT_13

# OSF/1 binary compatibility
options 	COMPAT_OSF1

# System V-like message queues
options 	SYSVMSG

# System V-like semaphores
options 	SYSVSEM

# System V-like shared memory
options 	SYSVSHM
#options 	SHMMAXPGS=1024		# 1024 pages is the default

# Loadable Kernel Modules
options 	LKM

# Misc. options
#options 	EISAVERBOSE		# recognize "unknown" EISA devices
#options 	PCIVERBOSE		# recognize "unknown" PCI devices
options 	SCSIVERBOSE		# Verbose SCSI errors
options 	TCVERBOSE		# recognize "unknown" TC devices
options 	UCONSOLE		# users can use TIOCCONS (for xconsole)

# The Alpha console firmware network boots using the BOOTP
# protocol, so we ask the NFS code to use BOOTP/DHCP as well,
# in case we have NFS root.
options 	NFS_BOOT_DHCP		# superset of BOOTP

# WS console uses SUN or VT100 terminal emulation
#options 	WSEMUL_VT100
options 	WSEMUL_SUN

config		netbsd	root on ? type ?
#config		netbsd	root on sd0 type ffs
#config		netbsd	root on ? type nfs

mainbus0 at	root
cpu*	at	mainbus0

# TurboChannel host bus adapter support
tcasic*	at	mainbus0

# TurboChannel bus support
tc*	at	tcasic?

# TurboChannel devices
# Conf. original
#ioasic*	at	tc? slot ? offset ?
#mcclock* at	ioasic? offset ?
#le*	at	ioasic? offset ?
#scc0	at	ioasic? offset ?
#scc1	at	ioasic? offset ?
#tcds*	at	tc? slot ? offset ?
#asc*	at	tcds? chip ?

ioasic* at      tc? slot ? offset ?
mcclock* at     ioasic? offset ?
le*     at      ioasic? offset ?
zsc0    at      ioasic? offset 0x100000
zsc1    at      ioasic? offset 0x180000
tcds*   at      tc? slot ? offset ?
asc*    at      tcds? chip ?
cfb*    at      tc? slot ? offset ?
sfb*    at      tc? slot ? offset ?
le*     at      tc? slot ? offset ?
#fta*    at      tc? slot ? offset ?             # DEC DEFTA FDDI cards

options         NEW_SCC_DRIVER
zstty*  at      zsc? channel 1                  # serial ports on B channels
zskbd0  at      zsc1 channel 0                  # keyboard port on A channels
zsms0   at      zsc0 channel 0                  # mouse port on A channels

# SCSI bus support
scsibus* at	asc?

# SCSI devices
cd*	at	scsibus? target ? lun ?		# SCSI CD-ROM drives
sd*	at	scsibus? target ? lun ?		# SCSI disk drives
st*	at	scsibus? target ? lun ?		# SCSI tape drives

# Workstation Console attachments
wsdisplay*	at	cfb?
wsdisplay*	at	sfb?
wskbd*		at	zskbd?
wsmouse*	at	zsms?

pseudo-device	bpfilter	16
pseudo-device	ccd		4
#pseudo-device	raid		4		# RAIDframe disk driver
pseudo-device	ipfilter	1
pseudo-device	loop		1
pseudo-device	md		1
pseudo-device	ppp		4
pseudo-device	pty		64
pseudo-device	sl		4
pseudo-device	vnd		4
#pseudo-device	gre		2	# generic L3 over IP tunnel

# UTC -4. Caracas
options RTC_OFFSET=-240