Subject: Now available -- NetBSD/sgimips release images and CD
To: None <port-sgimips@netbsd.org>
From: sgimips NetBSD list <sgimips@mrynet.com>
List: port-sgimips
Date: 12/18/2001 18:49:21
After many days work, and recent many hours of frustration with
the sysinst installation tool, I am providing another NetBSD/sgimips
release snapshot with bootable CD image, as well as netboot and
ram-filesystem kernel bootp capabilities.

The location of this latest release is on ftp.mrynet.com at
	/pub/NetBSD/NetBSD-1.5.2-sgimips/INDY/snapshot-20011218

As before, an updated file with installation notes and caveats is 
located at
	/pub/NetBSD/NetBSD-1.5.2-sgimips/INDY.INSTALLATION.txt

I have included a copy of this file below for perusal.

Note that this is still not an official release.  I have managed to
get 95% of the release and bootable image generations automated now
so further release snapshots shouldn't take very long (a day versus
a week).

Please consider this release snapshot for testing if you have
an INDY or other similar platform available.  I have no machines
other than the INDY R4400 and INDY R5000 available, so difficulties
on the Challenge S or I2 machines would be of interest to me.

Thanks,
-scott
**************************************************************
/pub/NetBSD/NetBSD-1.5.2-sgimips/INDY.INSTALLATION.txt:
**************************************************************


Last updated: December 18, 2001
Notes about the 20011218 distribution:
o       Due to badness in the CVS tree, libgcc_p.a is not built
o       A screen display of the distribution packages that should 
        be installed with this release is exhibited at the bottom
        of this document under APPENDIX A.
o       With the L2 cache disabled on the R5000 INDY (details towards
        the bottom of this document) the R4400 is noticeably faster
        than the R5000, but not significantly.

Scott G. Taylor -- sgimips @ mrynet . com (remove the spaces :)
        (wouldn't it be neat if the SPAM harvesters picked up
         and used the following? hostmaster@ftc.gov :)

NetBSD/sgimips *TEST* Installation Images and Procedures

PLEASE NOTE -- THIS DISTRIBUTION APPLIES TO INDY ONLY
This distribution has been tested on the INDY R4400 and R5000
machines with between 32MB and 128MB of memory.

I haven't yet attempted work on the O2 yet, and I have no
other machines available.

 All paths are relative to 
        ftp.mrynet.com:/pub/NetBSD/NetBSD-1.5.2-sgimips/INDY/snapshot-YYYYMMDD
 where:
        YYYYMMDD is a specific snapshot date

It is presumed that the reader has experience installing NetBSD
already.  Since this is only an initial exposure of the sysinst(8)
tool and RELEASE generation for installation images, no effort has
been made to fully document typical NetBSD installation procedures.

This is a preliminary release test for NetBSD/sgimips from source
dates indicated by the snapshot-YYYYMMDD directory name.

Before proceeding with any of the following installation attempts,
it should be noted that the NetBSD/sgimips port still only works over
serial line for installations--no graphics console is available
as of yet.  It is important to note that I have had difficulties
running an INDY serial console over 9600 baud -- a panic can result
when outputting large amounts of data.  I recommend you stick with 
9600 baud for this installation.

The following installtion methods are (or will) be addressed here:

1. Installing NetBSD/sgimips via bootp - netboot kernel with RAM filesystem
2. Installing NetBSD/sgimips via bootable CD
3. Installing NetBSD/sgimips via bootp - netboot kernel and NFS filesystem
4. (COMING SOON) Installing NetBSD/sgimips via a helper disk (aka dd(1) image)
        (helper disks are proving a bit interesting.  Still investigating.)
5. (ABANDONED) Installing NetBSD/sgimips via floppy
6. (COMING SOON) Installing NetBSD/sgimips via tape

Steps 1, 2 and 3 were all tested on both the INDY R4400 and R5000 platforms.

In general, these steps will describe the boot process leading up to the
main NetBSD installation screen.  For further instruction, I recommend
referring to one of the other NetBSD port's INSTALL documents.  Most
any one can be used.  I referred mostly to the "pmax" port's document
while doing my work.

The individual steps follow:

====================================================
1. Installing NetBSD/sgimips via bootp - kernel with RAM filesystem
====================================================

Use the kernel located at 
        ./binary/kernel/install.gz
or for ecoff
        ./binary/kernel/install.ecoff.gz

ungzip the kernel and place it in your tftp-accessible 
directory.

After setting up dhcp to provide only the selected kernel file
as the bootfile (no NFS root filesystem necessary, as it is
contained within the kernel image as a ramdisk),
(see: http://www.netbsd.org/Ports/sgimips/faq.html for hints)
boot the kernel.  "Standard NetBSD Installation" now applies.

A sample boot follows:

                         Running power-on diagnostics...

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.
>> boot -f bootp():/tftpboot/install
Setting $netaddr to 198.182.227.81 (from server 198.182.227.1)
Obtaining /tftpboot/install from server 198.182.227.1
zs channel 0 had address 0xbfbd9830
argv[0]: bootp():/tftpboot/install
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=scsi(0)disk(3)rdisk(0)partition(8)
argv[4]: OSLoader=boot.elf
argv[5]: OSLoadPartition=scsi(0)disk(3)rdisk(0)partition(0)
argv[6]: OSLoadFilename=netbsd
 [ no symbols available ]
IOC rev 1, machine Indy (Guiness), board rev 3
Timer calibration, got 750000 cycles (750000, 750000, 750000)
CPU clock speed = 75.00Mhz
Mem block 1: type 0, base 0x0, size 0x1
Mem block 2: type 1, base 0x1, size 0x1
Mem block 3: type 3, base 0x8002, size 0x67
Mem block 4: type 5, base 0x8069, size 0x46b
Mem block 5: type 3, base 0x84d4, size 0x26c
Mem block 6: type 6, base 0x8740, size 0xc0
Mem block 7: type 3, base 0x8800, size 0x5800
Loading cluster 2: 0x8002 / 0x8069
Cluster 3 contains kernel
Loading cluster 4: 0x84d4 / 0x8740
Loading cluster 6: 0x8800 / 0xe000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    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.5Z (RAMDISK) #8: Sun Dec 16 18:13:13 CST 2001
    root@mod80:/usr/src/sys/arch/sgimips/compile/RAMDISK
98304 KB memory, 85384 KB free, 768 KB for ARCS, 5016 KB in 1254 buffers
mainbus0 (root): SGI-IP22 [SGI, 69080b79], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x450) Rev. 5.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 16KB/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 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:08:0b:79
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 7
scsibus0 at wdsc0: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus0: waiting 5 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd0: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 3 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd1: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd1: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 4 lun 0: <IBM, CDRM00203\000\000\000\000\000!K, BZ26> SCSI2 5/cdrom removable
cd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers
md0: internal 3072 KB image area
boot device: sd1
root on md0a dumps on md0b
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ffs...
readclock: 2001/12/17/1/7/52
root file system type: ffs
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Terminal type? [vt100] 
erase ^?, werase ^W, kill ^U, intr ^C

 Welcome to sysinst, the NetBSD-1.5Z system installation tool.  This
 menu-driven tool is designed to help you install NetBSD to a hard disk, or
 upgrade an existing NetBSD system, with a minimum of work.  In the following
 menus, you may change the current selection by either typing the reference
 letter (a, b, c, ...).  Arrow keys may also work.  You activate the current
 selection from the menu by typing the enter key.

 If you booted from a floppy, you may now remove the disk.

 Thank you for using NetBSD!
 
                NetBSD-1.5Z Install System

               >a: Install NetBSD to hard disk
                b: Upgrade NetBSD on a hard disk
                c: Re-install sets or install additional sets 
                d: Reboot the computer
                e: Utility menu
                x: Exit Install System

Once installation is complete, skip to the "POST INSTALLATION"
section at the bottom of this document.

=================================================
2. Installing NetBSD/sgimips via bootable CD
=================================================

Obtain the bootable CD image at
        ./installation/cdrom/cdrom.gz
ungzip the image, and burn this CD image directly to CD.
Place the CD in your INDY's CDrom drive.  Typically, the CD 
drives are at SCSI ID 4.  This SCSI ID will be used in the example
below.

Set the following in the prom:
(If your CD drive is on other than SCSI ID 4, change the 'disk(4)'
 references to the appropriate SCSI ID)

        setenv systempartition scsi(0)disk(4)rdisk(0)partition(8)
        setenv osloadpartition scsi(0)disk(4)rdisk(0)partition(0)
        setenv osloadfilename netbsd

        setenv osloader boot
 or if your PROM needs an ELF boot
        setenv osloader boot.elf

A log of a CD install startup follows:

                         Running power-on diagnostics...

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


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.
>> printenv
SystemPartition=scsi(0)disk(2)rdisk(0)partition(8)
OSLoadPartition=scsi(0)disk(2)rdisk(0)partition(0)
OSLoader=boot.elf
OSLoadFilename=netbsd
AutoLoad=Yes
TimeZone=CST6CDT
console=s
diskless=0
dbaud=9600
volume=100
sgilogo=y
autopower=y
rebound=y
netaddr=198.182.227.80
eaddr=08:00:69:0b:5e:b1
cpufreq=150
NoAutoLoad=CONSOLE OPEN FAILED.
ConsoleOut=serial(0)
ConsoleIn=serial(0)
>> setenv systempartition scsi(0)disk(4)rdisk(0)partition(8)
>> setenv osloadpartition scsi(0)disk(4)rdisk(0)partition(0)
>> setenv osloadfilename netbsd
>> setenv osloader boot.elf
>> boot

NetBSD/sgimips 1.5Z Bootstrap, Revision 1.1
(root@mod80, Fri Dec 14 09:20:10 CST 2001)

Mem block: type 0 base 0x0 size 0x1000
Mem block: type 1 base 0x1000 size 0x1000
Mem block: type 5 base 0x8002000 size 0xc000
Mem block: type 3 base 0x800e000 size 0x732000
Mem block: type 6 base 0x8740000 size 0xc0000
Mem block: type 3 base 0x8800000 size 0x5800000
Local storage a87fe168
argv[0]: scsi(0)disk(4)rdisk(0)partition(8)/boot.elf
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=scsi(0)disk(4)rdisk(0)partition(8)
argv[4]: OSLoader=boot.elf
argv[5]: OSLoadPartition=scsi(0)disk(4)rdisk(0)partition(0)
argv[6]: OSLoadFilename=netbsd
Boot: scsi(0)disk(4)rdisk(0)partition(0)netbsd
devopen: scsi(0)disk(4)rdisk(0)partition(0) type scsi file netbsd
4495072+135820 [61408+50754]=0x4861a4
Starting at 0x88069000

nsym 0x1 ssym 0x884d396c esym 0x884ef1a4
Found bootinfo at 0x8800d5a0
zs channel 0 had address 0xbfbd9830
argv[0]: scsi(0)disk(4)rdisk(0)partition(8)/boot.elf
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=scsi(0)disk(4)rdisk(0)partition(8)
argv[4]: OSLoader=boot.elf
argv[5]: OSLoadPartition=scsi(0)disk(4)rdisk(0)partition(0)
argv[6]: OSLoadFilename=netbsd
[ using 112696 bytes of netbsd ELF symbol table ]
IOC rev 1, machine Indy (Guiness), board rev 3
Timer calibration, got 750000 cycles (750000, 750000, 750000)
CPU clock speed = 75.00Mhz
Mem block 1: type 0, base 0x0, size 0x1
Mem block 2: type 1, base 0x1, size 0x1
Mem block 3: type 5, base 0x8002, size 0xc
Mem block 4: type 3, base 0x800e, size 0x732
Mem block 5: type 6, base 0x8740, size 0xc0
Mem block 6: type 3, base 0x8800, size 0x5800
Loading cluster 2: 0x8002 / 0x800e
Cluster 3 contains kernel
Loading chunk before kernel: 0x800e / 0x8069
Loading chunk after kernel: 0x84f0 / 0x8740
Loading cluster 5: 0x8800 / 0xe000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    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.5Z (RAMDISK) #7: Sun Dec 16 16:29:30 CST 2001
    root@mod80:/usr/src/sys/arch/sgimips/compile/RAMDISK
98304 KB memory, 85276 KB free, 768 KB for ARCS, 5016 KB in 1254 buffers
mainbus0 (root): SGI-IP22 [SGI, 69080b79], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x450) Rev. 5.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 16KB/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 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:08:0b:79
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 7
scsibus0 at wdsc0: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus0: waiting 5 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd0: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 3 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd1: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd1: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 4 lun 0: <IBM, CDRM00203\000\000\000\000\000!K, BZ26> SCSI2 5/cdrom removable
cd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers
md0: internal 3072 KB image area
boot device: cd0
root on md0a dumps on md0b
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ffs...
readclock: 2001/12/17/1/14/11
root file system type: ffs
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Terminal type? [vt100] 
erase ^?, werase ^W, kill ^U, intr ^C

 Welcome to sysinst, the NetBSD-1.5Z system installation tool.  This
 menu-driven tool is designed to help you install NetBSD to a hard disk, or
 upgrade an existing NetBSD system, with a minimum of work.  In the following
 menus, you may change the current selection by either typing the reference
 letter (a, b, c, ...).  Arrow keys may also work.  You activate the current
 selection from the menu by typing the enter key.

 If you booted from a floppy, you may now remove the disk.

 Thank you for using NetBSD!
 

                NetBSD-1.5Z Install System

               >a: Install NetBSD to hard disk
                b: Upgrade NetBSD on a hard disk
                c: Re-install sets or install additional sets 
                d: Reboot the computer
                e: Utility menu
                x: Exit Install System


SOME FURTHER INSTRUCTION ON CD INSTALLATION: 
-=-=-=-=-=-=-=-=-=-=-=-=-

Because the NetBSD/sgimips bootable CD is not in ISO-9660 format,
you must "install from an unmounted filesystem."  The generated
bootable-CD is actually a real NetBSD disk image, with disklabels
and FFS filesystems.  The function to install from an unmounted
filesystem is selected when asked for the distribution media used
to obtain sets.

 Your disk is now ready for installing the kernel and the distribution sets.
 As noted in your INSTALL notes, you have several options.  For ftp or nfs,
 you must be connected to a network with access to the proper machines.  If
 you are not ready to complete the installation at this time, you may select
 "none" and you will be returned to the main menu.  When you are ready at a
 later time, you may select "upgrade" from the main menu to complete the
 installation.
 
                              l*****************k
                              * Select medium   *
                              *                 *
                              * a: ftp          *
                              * b: nfs          *
                              * c: cdrom        *
                              * d: floppy       *
                              *>e: unmounted fs *
                              * f: local dir    *
                              * g: none         *
                              m*****************j

 Enter the unmounted local device and directory on the CD where the
 distribution is located.  Remember, the directory should contain the .tgz
 files.

To use this option with the NetBSD/sgimips CD, the settings
should be as follows (Note the "device," "filesystem" and
"directory" settings immediately below):


device:         cd0a filesystem:        ffs directory:  /sgimips/binary/sets

                               l***************k
                               * Change        *
                               *               *
                               * a: Device     *
                               * b: Filesystem *
                               * c: Directory  *
                               *>d: Continue   *
                               m***************j


Once installation is complete, skip to the "POST INSTALLATION"
section at the bottom of this document.


====================================================
3. Installing NetBSD/sgimips via bootp - netboot kernel and NFS filesystem
====================================================

This shouldn't really be necessary, as it's more a carryover from
when ram filesystems weren't possible within the kernel image.

Set up dhcp and tftp to boot per the hints in
        http://www.netbsd.org/Ports/sgimips/faq.html.
The bootfile kernel to use is called
        ./binary/kernel/netbsd-NETBOOT.gz
There is also a 'netbsd' kernel included in the diskimage.tgz
image below, but the netbsd-NETBOOT.gz kernel should be used
instead.

ungzip the kernel and place it in your tftp-accessible directory.
The tarball containing the filesystem to be installed on the
NFS server is located at
        ./installation/netboot/diskimage.tgz
This tar image should be extracted into a directory on the NFS
server which will be providing a root filesystem to the INDY via
dhcp and set up properly per the FAQ referenced above.

When DHCP is properly set up, boot the kernel via BOOTP.  

A sample boot using this method follows:

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.
>> boot -f bootp():/tftpboot/netbsd-NETBOOT
Setting $netaddr to 198.182.227.81 (from server 198.182.227.1)
Obtaining /tftpboot/netbsd-NETBOOT from server 198.182.227.1
zs channel 0 had address 0xbfbd9830
argv[0]: bootp():/tftpboot/netbsd-NETBOOT
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=scsi(0)disk(1)rdisk(0)partition(8)
argv[4]: OSLoader=boot
argv[5]: OSLoadPartition=scsi(0)disk(1)rdisk(0)partition(0)
argv[6]: OSLoadFilename=netbsd
 [ no symbols available ]
IOC rev 1, machine Indy (Guiness), board rev 3
Timer calibration, got 750000 cycles (750000, 750000, 750000)
CPU clock speed = 75.00Mhz
Mem block 1: type 0, base 0x0, size 0x1
Mem block 2: type 1, base 0x1, size 0x1
Mem block 3: type 3, base 0x8002, size 0x67
Mem block 4: type 5, base 0x8069, size 0x169
Mem block 5: type 3, base 0x81d2, size 0x56e
Mem block 6: type 6, base 0x8740, size 0xc0
Mem block 7: type 3, base 0x8800, size 0x5800
Loading cluster 2: 0x8002 / 0x8069
Cluster 3 contains kernel
Loading cluster 4: 0x81d2 / 0x8740
Loading cluster 6: 0x8800 / 0xe000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    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.5Z (NETBOOT) #4: Sun Dec 16 18:09:11 CST 2001
    root@mod80:/usr/src/sys/arch/sgimips/compile/NETBOOT
98304 KB memory, 88412 KB free, 768 KB for ARCS, 5016 KB in 1254 buffers
mainbus0 (root): SGI-IP22 [SGI, 69080b79], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x450) Rev. 5.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 16KB/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 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:08:0b:79
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 7
scsibus0 at wdsc0: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus0: waiting 5 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd0: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 3 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd1: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd1: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 4 lun 0: <IBM, CDRM00203\000\000\000\000\000!K, BZ26> SCSI2 5/cdrom removable
cd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers
boot device: sd0
root on sq0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 198.182.227.1
nfs_boot: my_name=mry81
nfs_boot: my_domain=mrynet.com
nfs_boot: my_addr=198.182.227.81
nfs_boot: my_mask=255.255.255.0
root on 198.182.227.1:/tftpboot/INDYroot
root time: 0x3c1d52ff
readclock: 2001/12/17/1/41/12
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11

Setting terminal type. Options:
iris-ansi       standard IRIX console
  vt100   for dumb serial terminal
  xterm   for xterm.

Terminal type? vt100
erase ^?, werase ^W, kill ^U, intr ^C

 Welcome to sysinst, the NetBSD-1.5Z system installation tool.  This
 menu-driven tool is designed to help you install NetBSD to a hard disk, or
 upgrade an existing NetBSD system, with a minimum of work.  In the following
 menus, you may change the current selection by either typing the reference
 letter (a, b, c, ...).  Arrow keys may also work.  You activate the current
 selection from the menu by typing the enter key.

 If you booted from a floppy, you may now remove the disk.

 Thank you for using NetBSD!
 

                NetBSD-1.5Z Install System

               >a: Install NetBSD to hard disk
                b: Upgrade NetBSD on a hard disk
                c: Re-install sets or install additional sets 
                d: Reboot the computer
                e: Utility menu
                x: Exit Install System

At this point, standard NetBSD installation procedures kick in.

Once installation is complete, skip to the "POST INSTALLATION"
section at the bottom of this document.


====================================================
4. (COMING SOON) Installing NetBSD/sgimips via a helper disk (aka dd(1) image)
        (helper disks are proving a bit interesting.  Still investigating.)
====================================================

        I'm not sure about the usefulness of this method, since such an
        installation will ultimately overwrite itself.  IRIX and NetBSD
        partitions aren't compatible.  However, an attempt is being made
        to allow an IRIX' swap partition to be used for this purpose.
        Quite honestly, with the "ram filesystem" kernel being bootable
        from the IRIX root partition, I believe that would suffice,
        and I'll confirm it soon.

====================================================
5. (ABANDONED) Installing NetBSD/sgimips via floppy
====================================================

        I was considering a number of methods for accomplishing a
        floppy installation, however I can't find one that'll allow
        even a compressed kernel to fit on a floppy and be able to
        be made bootable.  Thus, this endeavour has been abandoned.

====================================================
6. (COMING SOON) Installing NetBSD/sgimips via tape
====================================================

        I'm still wondering if this effort is really necessary.
        If anyone has an actual need for this type of installation,
        I would greatly appreciate hearing from you.

----------------------------------------------------
====================================================
POST INSTALLATION STEPS -- BOOTING NETBSD
====================================================
----------------------------------------------------

After completing installation, halt, and set the following in the prom:

        setenv systempartition scsi(0)disk(X)rdisk(0)partition(8)
        setenv osloadpartition scsi(0)disk(X)rdisk(0)partition(0)
        setenv osloadfilename netbsd
        setenv OSLoader boot

where: X is the SCSI ID of the drive to which you installed.

You can now boot NetBSD/sgimips on your INDY at the ">>" prompt:

>> boot


Additionally, many people will no doubt wish to build their
own kernel.  I recommend using the GENERIC configuration.

*** NOTE ***: At the time of this writing, the L2 CACHE is still
        not working with the INDY R5K machine.   If you obtain 
        the current sources and wish to build a kernel on an
        INDY R5000, apply the following patchs:

............................................................
--- /usr/src/sys/arch/sgimips/sgimips/ip22.c    Sun Dec  2 19:44:58 2001
+++ /usr/src/sys/arch/sgimips/sgimips/ip22.c.old        Thu Nov 29 23:32:43 2001
@@ -452,11 +452,15 @@
         * If we don't have an R4000-style cache, then initialize the
         * IP22 SysAD L2 cache.
         */
+#if defined(L2_CACHE_ACTUALLY_WORKS)
        if (mips_sdcache_line_size == 0) {
+#endif
                /* XXX */
                printf("%s: disabling IP22 SysAD L2 cache\n", self->dv_xname);
                ip22_sdcache_disable();
+#if defined(L2_CACHE_ACTUALLY_WORKS)
        }
+#endif
 }
 
 #endif /* IP22 */
--- /usr/src/sys/arch/sgimips/sgimips/cpu.c.orig        Mon Dec 17 19:58:04 2001
+++ /usr/src/sys/arch/sgimips/sgimips/cpu.c     Mon Dec 17 20:06:08 2001
@@ -71,8 +71,10 @@
        case COMPONENT_TYPE_SecondaryDCache:
        case COMPONENT_TYPE_SecondaryCache:
                mips_sdcache_size = COMPONENT_KEY_Cache_CacheSize(comp->Key);
+#ifdef NOTYET
                mips_sdcache_line_size =
                    COMPONENT_KEY_Cache_LineSize(comp->Key);
+#endif
                /* XXX */
                mips_sdcache_ways = 1;
                break;

............................................................

The patch will disable the L2 CACHE.  Without it, your R5K
will panic after determining the root filesystem type:

        readclock: 2001/12/17/1/40/58
        root file system type: ffs
        trap: TLB miss (load or instr. fetch) in kernel mode
        status=0xff03, cause=0x8, epc=0x0, vaddr=0x0
        pid=1 cmd=swapper usp=0x0 ksp=0xc9d4bec8
        Stopped in pid 1 (swapper) at            0:     invalid address.
        db>

This is hopefully being addressed :)

-----------------------------------------------------

If you get the time, thanks for trying any of this out!
Please address any issues with this distribution to the port-sgimips
mailing list at netbsd.org (port-sgimips at netbsd.org).  In particular,
sysinst and kernel compatibilities, as well as successes on particular
hardware.

Regards,
-scott

            APPENDIX A -- Selecting Distributions To Install

Listed below is a "screen shot" of the distribution set selection
screen.  This screen is reached by selecting "Custom installation"
when you see the following menu:

                           Select your distribution 

                          >a: Full installation
                           b: Custom installation   

The "Use?" column shows the sets that should be selected
for installation.  type "x" followed by ENTER to exit the screen
when you've confirmed this list.

 The following is the list of distribution sets that will be used.
 
 Distribution set   Use?
 ------------------ ----
 Kernel       :     Yes
 Kernel       :     No     Selection toggles inclusion 
 Base         :     Yes
 System (/etc):     Yes   >a: Kernel (GENERIC)
 Compiler     :     Yes    b: Kernel (GENERIC_INDY)    
 Games        :     Yes    c: Base
 Manuals      :     Yes    d: System (/etc)
 Miscellaneous:     Yes    e: Compiler Tools
 Text tools   :     Yes    f: Games
 X11 clients  :     No     g: Online Manual Pages      
 X11 fonts    :     No     h: Miscellaneous
 X11 servers  :     No     i: Text Processing Tools    
 X11 contrib  :     No     j: X11 base and clients     
 X programming:     No     k: X11 fonts
 X11 Misc.    :     No     l: X11 servers
                           m: X contrib clients
                           n: X11 programming
                           <: page up, >: page down