Subject: Re: Serial console on SS2 under 1.4.1?
To: None <port-sparc@netbsd.org>
From: Kjetil B Thomassen <kjetilbt@thomassen.priv.no>
List: port-sparc
Date: 11/03/1999 10:11:34
I have now managed to get the serial console working.

I have hardwired the DTE in both ends to give it's own hardware
handshaking by hardwiring the CTS to RTS and DTR to DSR. The DCD
line is also hardwired to DSR.

I am using a null-modem cable by connecting RxD to TxD and vice versa.

The terminal I am using is a serial connection from my NCD HMXpro
X-terminal using 8N1.

Initially I had a problem with logging in on this box, but I soon
realized what the problem was. I had set up my box up to use ttya
as *both* a console and a normal terminal. This made it act very
weirdly. Disabling ttya in /etc/ttys solved that problem.

So, now I am successfully using a serial console on this box.

I am normally running 1.4 GENERIC, but I have also tried the
1.4.1 GENERIC_SS2_CONSOLE that jonl@kudra.yubyub.net provided.
Both of them work fine for me.

Since this seems to be related to ROM revision, I can state that
mine is 2.4.1, and a full output from my serial console is given
later on in this email.

Thank you for making this OS work on this box.

Kjetil B.
mailto:kjetil@thomassen.priv.no
http://home.eunet.no/~kjetilbt/

-------------- banner and dmesg output ----------
ok boot
SPARCstation 2, Type 4 Keyboard
ROM Rev. 2.4.1, 64 MB memory installed, Serial #4335945.
Ethernet address 8:0:20:10:ce:e5, Host ID: 55422949.


Rebooting with command:
Boot device: /sbus/esp@0,800000/sd@3,0   File and args:
>> NetBSD/sparc Secondary Boot, Revision 1.8
>> (mrg@sun4690, Mon Jul 19 04:22:51 PDT 1999)
Booting netbsd @ 0x4000
1818624+129504+177260+[99876+117970]=0x24014a
OBP version 2, revision 2.4 (plugin rev 2)
console is ttya
Copyright (c) 1996, 1997, 1998, 1999
    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 (GENERIC) #0: Sun May  9 03:00:22 MEST 1999
    pk@flambard:/usr/src/sys/arch/sparc/compile/GENERIC
real mem = 67014656
avail mem = 62824448
using 128 buffers containing 524288 bytes of memory
bootpath: /sbus0/esp@0,800000/sd@3,0
mainbus0 (root): SUNW,Sun 4/75
cpu0 at mainbus0: cache chip bug; trap page uncached: CY7C601 @ 40 MHz,
TMS390C6
02A FPU
cpu0: 64K byte write-through, 32 bytes/line, hw flush: cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000 ipl 10 delay constant 17
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 ipl 12 softpri 6
zstty0 at zs0 channel 0 (console)
zstty1 at zs0 channel 1
zs1 at mainbus0 ioaddr 0xf0000000 ipl 12 softpri 6
kbd0 at zs1 channel 0
ms0 at zs1 channel 1
audioamd0 at mainbus0 ioaddr 0xf7201000 ipl 13 softpri 4
audio0 at audioamd0: full duplex
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 20 MHz
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 level 3: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
probe(esp0:3:0): async mode
sd0 at scsibus0 targ 3 lun 0: <QUANTUM, FIREBALL SE2.1S, PJ09> SCSI2
0/direct fi
xed
sd0: 2051MB, 7637 cyl, 2 head, 275 sec, 512 bytes/sect x 4201304 sectors
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 08:00:20:10:ce:e5
le0: 8 receive buffers, 2 transmit buffers
cgsix0 at sbus0 slot 3 offset 0x0 level 7: SUNW,501-1672, 1152 x 900, rev
6
cgsix0: attached to /dev/fb
fdc0 at mainbus0 ioaddr 0xf7200000 ipl 11 softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
root on sd0a dumps on sd0b
root file system type: ffs
swapctl: adding /dev/sd0b as swap device at priority 0
Automatic boot in progress: starting file system checks.
/dev/rsd0a: file system is clean; not checking
/dev/rsd0e: file system is clean; not checking
/dev/rsd0f: file system is clean; not checking
/dev/rsd0g: file system is clean; not checking
setting tty flags
starting network
hostname: kbtsparc.oslo.geco-prakla.slb.com
domainname: oslo.geco-prakla.slb.com
configuring network interfaces: le0.
add net default: gateway oslo1-et92
adding interface aliases:
configuring wscons
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
wsconscfg: /dev/ttyEcfg: No such file or directory
starting system logger
checking for core dump...
savecore: no core dump
starting rpc daemons: portmap.
starting nfs daemons:
root: WARNING: /etc/exports not readable;  NFS server not started.
 nfsiod rpc.statd rpc.lockd
root: WARNING: $amd_dir (/amd) not a directory;  amd not started.
.
creating runtime link editor directory cache.
ldconfig: /usr/pkg/lib: No such file or directory
setting securelevel: kern.securelevel: 0 -> 1
checking quotas: done.
building databases...
clearing /tmp
updating motd.
standard daemons: update cron.
starting network daemons: inetd.
starting local daemons:.
Wed Nov  3 01:05:10 PST 1999

NetBSD/sparc (kbtsparc.oslo.geco-prakla.slb.com) (console)

login: kjetilbt
Password:
Last login: Wed Nov  3 01:00:04 1999 on console
Copyright (c) 1996, 1997, 1998, 1999
        The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

NetBSD 1.4 (GENERIC) #0: Sun May  9 03:00:22 MEST 1999

Welcome to NetBSD!