Subject: Re: Experimental olume header utility and boot loader
To: None <mhitch@lightning.msu.montana.edu>
From: Havard Eidnes <he@netbsd.org>
List: port-sgimips
Date: 11/14/2001 22:04:29
> I also took the pmax boot loader and mashed it into working with the
> ARCS PROM to the point where it will load and start a NetBSD kernel.
>
> I've made these available if anyone wants to play with them.  The file
> ftp://ftp.netbsd.org/pub/NetBSD/arch/sgimips/sgimips.tgz contains the
> stand directory tree to be untarred into sys/arch/sgimips.

First off, a big Thank You!

I think there's a typo in the URL; the correct URL appears to be

  ftp://ftp.netbsd.org/pub/NetBSD/arch/sgmips/sgiboot.tgz

I'm having problems getting the machine to boot from my disk, though.
Apparently I get a wedge, the [BREAK] is from the console program I
use in a failed attempt at eliciting a response.

Attached below is output from sgivol for the disk I tried using,
console output from the failed boot attempt, and console output from
the following successful boot using sash and netboot.

The source tree is recent but at least a few days old, so the recent
cache handling code merged in today is not a part of this problem.

Any ideas?  It seems the memory blocks are different (!?).  (Please
ignore the 1993 dates; they're obviously bogus, and stem from a bogus
date fetched from the newly initialized file system, and I ignored or
overlooked (take your pick) the warning in LARGE LETTERS to adjust the
clock...)

Regards,

- Havard

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

viola# ./sgivol sd1
disklabel shows 35843670 sectors
checksum: 00000000
root part: 0
swap part: 1
bootfile: 

Volume header files:
boot     offset    2 blocks, length    51456 bytes (101 blocks)

SGI partitions:
 0:a blocks   122880 first     3135 type  4 (BSD4.2)
 1:b blocks   819200 first   126015 type  3 (Raw)
 2:c blocks 35843670 first        0 type  4 (BSD4.2)
 3:d blocks  1433600 first   945215 type  4 (BSD4.2)
 6:g blocks 33464855 first  2378815 type  4 (BSD4.2)
 8:i blocks     3151 first        0 type  0 (Volume Header)
10:k blocks 35843670 first        0 type  6 (Volume)
viola#

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

>> printenv
AutoLoad=Yes
TimeZone=PST8PDT
console=g
diskless=0
dbaud=9600
volume=80
sgilogo=y
autopower=y
netaddr=158.38.152.36
eaddr=08:00:69:0a:6a:f3
cpufreq=250
SystemPartition=scsi(0)disk(1)rdisk(0)partition(8)
OSLoadPartition=scsi(0)disk(1)rdisk(0)partition(0)
OSLoadFilename=/unix
OSLoader=sash
NoAutoLoad=CONSOLE OPEN FAILED.
ConsoleOut=serial(0)
ConsoleIn=serial(0)
>> hinv
                   System: IP22
                Processor: 250 Mhz R4400, with FPU
     Primary I-cache size: 16 Kbytes
     Primary D-cache size: 16 Kbytes
     Secondary cache size: 2048 Kbytes
              Memory size: 256 Mbytes
                 Graphics: MG10 Impact
                SCSI Disk: scsi(0)disk(1)
                SCSI Disk: scsi(0)disk(2)
                    Audio: Iris Audio Processor: version A2 revision 1.1.0
>> setenv SystemPartition scsi(0)disk(2)rdisk(0)partition(8)
>> setenv OSLoadPartition scsi(0)disk(2)rdisk(0)partition(0)
>> setenv OSLoadFilename /netbsd
>> setenv OSLoader boot
>> printenv
AutoLoad=Yes
TimeZone=PST8PDT
console=g
diskless=0
dbaud=9600
volume=80
sgilogo=y
autopower=y
netaddr=158.38.152.36
eaddr=08:00:69:0a:6a:f3
cpufreq=250
NoAutoLoad=CONSOLE OPEN FAILED.
ConsoleOut=serial(0)
ConsoleIn=serial(0)
SystemPartition=scsi(0)disk(2)rdisk(0)partition(8)
OSLoadPartition=scsi(0)disk(2)rdisk(0)partition(0)
OSLoadFilename=/netbsd
OSLoader=boot
>> boot

NetBSD/sgimips 1.5Y  Bootstrap, Revision 1.0
(he@viola.urc.uninett.no, Mon Jul 12 12:31:09 CEST 1993)

Mem block: type 0 base 0x0 size 0x1000
Mem block: type 1 base 0x1000 size 0x1000
Mem block: type 3 base 0x8002000 size 0x73e000
Mem block: type 6 base 0x8740000 size 0xc0000
Mem block: type 3 base 0x8800000 size 0x800000
Mem block: type 5 base 0x9000000 size 0xc000
Mem block: type 3 base 0x900c000 size 0xeff4000
Local storage 887fe168
argv[0]: scsi(0)disk(2)rdisk(0)partition(8)/boot
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=scsi(0)disk(2)rdisk(0)partition(8)
argv[4]: OSLoader=boot
argv[5]: OSLoadPartition=scsi(0)disk(2)rdisk(0)partition(0)
argv[6]: OSLoadFilename=/netbsd
Boot: scsi(0)disk(2)rdisk(0)partition(0)/netbsd
devopen: scsi(0)disk(2)rdisk(0)partition(0) type scsi file /netbsd
diskopen: 0,2,0 scsi(0)disk(2)rdisk(0)partition(0)
1339584+136424 [60080+48734]=0x1830cc
Starting at 0x88002000

nsym 0x1 ssym 0x8816a5a8 esym 0x881850cc
zs channel 0 had address 0xbfbd9830
IOC rev 0, machine Indigo2 (Fullhouse), board rev 8
Timer calibration, got 1250000 cycles (1250000, 1250000, 1250000)
CPU clock speed = 125.00Mhz
Mem block 1: type 0, base 0, size 1
Mem block 2: type 1, base 1, size 1
Mem block 3: type 3, base 32770, size 1854
Mem block 4: type 6, base 34624, size 192
Mem block 5: type 3, base 34816, size 2048
Mem block 6: type 5, base 36864, size 12
Mem block 7: type 3, base 36876, size 61428
[BREAK]

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

Command Monitor.  Type "exit" to return to the menu.
>> setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8)
>> setenv OSLoadPartition scsi(0)disk(1)rdisk(0)partition(0)
>> setenv OSLoadFilename /unix
>> setenv OSLoader sash
>> boot bootp():netbsd.ip22
130768+22320+3184+341792+48560d+4604+6816 entry: 0x97fa60d0
Obtaining netbsd.ip22 from server albatross.urc.uninett.no
zs channel 0 had address 0xbfbd9830
IOC rev 0, machine Indigo2 (Fullhouse), board rev 8
Timer calibration, got 1250000 cycles (1250000, 1250000, 1250000)
CPU clock speed = 125.00Mhz
Mem block 1: type 0, base 0, size 1
Mem block 2: type 1, base 1, size 1
Mem block 3: type 3, base 32770, size 1854
Mem block 4: type 6, base 34624, size 192
Mem block 5: type 3, base 34816, size 63366
Mem block 6: type 5, base 98182, size 122
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.5Y (VIOLA) #8: Sat Nov 10 18:30:29 CET 2001
    he@viola.urc.uninett.no:/usr/src/sys/arch/sgimips/compile/VIOLA
256 MB memory, 233 MB free, 768 KB for ARCS, 13208 KB in 3302 buffers
mainbus0 (root): SGI-IP22 [SGI, 690a6af3], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS R4010 FPC Rev. 0.0
cpu0: L1 cache: 16KB/16B instruction, 16KB/16B data, direct mapped
cpu0: L2 cache: 2048KB/128B mixed, no snooping
cpu0: disabling IP22 SysAD L2 cache
imc0 at mainbus0 addr 0x1fa00000
imc0: Revision 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000
zsc0 at hpc0
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:0a:6a:f3
wdsc0 at hpc0: 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, ST15150N, 8607> SCSI2 0/direct fixed
sd0: 4095 MB, 3712 cyl, 21 head, 107 sec, 512 bytes/sect x 8388315 sectors
sd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers
sd1 at scsibus0 target 2 lun 0: <SEAGATE, ST318404LC, 0006> SCSI3 0/direct fixed
sd1: 17501 MB, 14384 cyl, 6 head, 415 sec, 512 bytes/sect x 35843670 sectors
sd1: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ffs...
no file system for sd0 (dev 0xa00)
cannot mount root, error = 79
root device (default sd0a): sd1a
dump device (default sd1b): 
file system (default generic): 
root on sd1a dumps on sd1b
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ffs...
WARNING: preposterous time in file systemreadclock: 1993/7/12/10/2/27
 -- CHECK AND RESET THE DATE!
root file system type: ffs
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Enter pathname of shell or RETURN for sh: 
We recommend creating a non-root account and using su(1) for root access.
#