Subject: IP20 (Indigo) support in-tree
To: None <port-sgimips@netbsd.org>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sgimips
Date: 12/31/2003 09:14:32
All,

I've just committed the final bits for Indigo (IP20) support.  Both NFS
root and local root go multi-user.  Boot log is appended.

There are two outstanding issues: clock calibration is incorrect (minor, r4400
on ip22 also has this problem) and the native zs console driver is
problematic (mitigated by forcing ARCS console on IP20).

Thanks and kudos to Steve Rumble, who wrote the initial support, patiently
answered all of my ignorant questions, and pointed out my errors during the
QA cycle.
 
-- Chris
	GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5  938E 023E EEFB FEB9 DE7F)


Cannot connect to keyboard -- check the cable.
Cannot open keyboard() for input
Cannot connect to keyboard -- check the cable.
Cannot open keyboard() for input


System Maintenance Menu

1) Start System
2) Install System Software
3) Run Diagnostics
4) Recover System
5) Enter Command Monitor

Option? 5
Command Monitor.  Type "exit" to return to the menu.
>> hinv
                   System: IP20
                Processor: R4000 50 Mhz, with FPU
     Primary I-cache size: 8 Kbytes
     Primary D-cache size: 8 Kbytes
     Secondary cache size: 1024 Kbytes
              Memory size: 96 Mbytes
                SCSI Disk: scsi(0)disk(2)
>> boot -f bootp()blackjack
Setting $netaddr to A.B.C.D (from server W.X.Y.Z)
Obtaining blackjack from server W.X.Y.Z
2983744+0+296540 entry: 0x88069000
[ Kernel symbol table missing! ]
Timer calibration, got 500000 cycles (500000, 500000, 500000)
CPU clock speed = 100.00MHz
Don't know how to configure SC on this platform.
Using ARCS for console I/O.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    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.6ZG (GENERIC32_IP2x) #0: Wed Dec 31 09:01:26 JST 2003
	wileyc@izu:/usr/builder/stable/sys/arch/sgimips/compile/GENERIC32_IP2x
98304 KB memory, 86644 KB free, 768 KB for ARCS, 5016 KB in 1254 buffers
mainbus0 (root): SGI-IP20 [SGI, 69069502], 1 processor
cpu0 at mainbus0: MIPS R4000 CPU (0x422) Rev. 2.2 with MIPS R4010 FPC Rev. 0.0
cpu0: 8KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 8KB/16B direct-mapped write-back L1 Data cache
cpu0: 1024KB/128B direct-mapped write-back L2 Unified cache
imc0 at mainbus0 addr 0x1fa00000
imc0: Revision 1
gio0 at imc0
unknown product 0x04 revision 0x00 at gio0 slot 2 addr 0x1f000000 not configured
hpc0 at gio0 addr 0x1fb80000: SGI HPC1.5
zsc0 at hpc0 offset 0xd10
zstty0 at zsc0 channel 1
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x100: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:06:95:02
wdsc0 at hpc0 offset 0x11f: WD33C93B SCSI, rev=0, target 0
scsibus0 at wdsc0: 8 targets, 8 luns per target
dpclock0 at hpc0 offset 0xe00
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 2 lun 0: <SGI, SEAGATE ST31230N, 0112> disk fixed
sd0: 1010 MB, 3992 cyl, 5 head, 103 sec, 512 bytes/sect x 2070235 sectors
sd0: sync (200.00ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
Enter pathname of shell or RETURN for /bin/sh: 
We recommend creating a non-root account and using su(1) for root access.
No entry for terminal type "dumb";
using dumb terminal settings.
# exit
Tue Dec 30 23:53:11 GMT 2003
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
/dev/rsd0d: file system is clean; not checking
/dev/rsd0e: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: blackjack
IPv6 mode: host
Configuring network interfaces: sq0.
add net default: gateway A.B.C.254
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
savecore: /netbsd: kvm_nlist: bad namelist
Dec 31 08:53:27 blackjack savecore: /netbsd: kvm_nlist: bad namelist
savecore: /netbsd: _dumpdev not in namelist
Dec 31 08:53:27 blackjack savecore: /netbsd: _dumpdev not in namelist
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting local daemons:.
Updating motd.
Starting ntpd.
Starting sshd.
Starting inetd.
Starting cron.
Wed Dec 31 08:53:46 JST 2003

NetBSD/sgimips (blackjack) (console)

login: root
Password:
Last login: Wed Dec 31 08:39:25 2003 on console
Dec 31 08:54:14 blackjack login: ROOT LOGIN (root) ON console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
        The NetBSD Foundation, Inc.  All rights reserved.
Dec 31 08:54:14 blackjack login: ROOT LOGIN (root) ON console
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

NetBSD 1.6ZG (GENERIC32_IP2x) #0: Wed Dec 31 09:01:26 JST 2003

Welcome to NetBSD!

Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
blackjack# ifconfig -a
sq0: flags=8263<UP,BROADCAST,NOTRAILERS,RUNNING,ALLMULTI,MULTICAST> mtu 1500
        address: 08:00:69:06:95:02
        inet A.B.C.D netmask 0xffffff00 broadcast A.B.C.255
        inet6 fe80::a00:69ff:fe06:9502%sq0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33196
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
strip0: flags=0 mtu 1100
strip1: flags=0 mtu 1100
blackjack# ps aux
USER PID %CPU %MEM  VSZ  RSS TT STAT STARTED    TIME COMMAND
root 300  1.9  1.7  528 1716 ?? Ss    8:53AM 0:04.82 /usr/sbin/sshd 
root 338  1.9  1.0  300  956 ?? Ss    8:53AM 0:01.15 -csh 
root   0  0.0  2.6    0 2600 ?? DKs   8:52AM 0:00.01 [swapper]
root   1  0.0  0.8   72  808 ?? Ss    8:52AM 0:00.13 init -s 
root   2  0.0  2.6    0 2600 ?? DK    8:52AM 0:00.00 [scsibus0]
root   3  0.0  2.6    0 2600 ?? DK    8:52AM 0:00.00 [lfs_writer]
root   4  0.0  2.6    0 2600 ?? DK    8:52AM 0:00.01 [pagedaemon]
root   5  0.0  2.6    0 2600 ?? DK    8:52AM 0:00.84 [reaper]
root   6  0.0  2.6    0 2600 ?? DK    8:52AM 0:00.14 [ioflush]
root   7  0.0  2.6    0 2600 ?? DK    8:52AM 0:00.04 [aiodoned]
root 119  0.0  2.6    0 2600 ?? SK    8:53AM 0:00.00 [nfsio]
root 124  0.0  0.8  184  796 ?? Ss    8:53AM 0:00.57 /usr/sbin/syslogd -P /var/
root 152  0.0  2.6    0 2600 ?? SK    8:53AM 0:00.00 [nfsio]
root 158  0.0  2.6    0 2600 ?? SK    8:53AM 0:00.00 [nfsio]
root 170  0.0  2.6    0 2600 ?? SK    8:53AM 0:00.00 [nfsio]
ntpd 249  0.0  4.0 1316 3912 ?? Ss    8:53AM 0:00.60 /usr/sbin/ntpd -u ntpd:ntp
root 337  0.0  0.8  240  820 ?? Ss    8:53AM 0:00.13 /usr/sbin/cron 
root 342  0.0  0.8   72  788 ?? Ss    8:53AM 0:00.04 /usr/sbin/inetd -l 
root 366  0.0  0.6   88  624 ?? R+    8:54AM 0:00.04 ps aux 
blackjack#