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/15/2001 14:32:00
----Next_Part(Thu_Nov_15_14:32:00_2001_772)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

> > I'm having problems getting the machine to boot from my disk, thoug=
h.
> > Apparently I get a wedge, the [BREAK] is from the console program I=

> > use in a failed attempt at eliciting a response.
>
>   This is due to bad code when the kernel starts.  That bad code was
> never exercised because the ELF header never appeared at the end of
> the kernel until the disk booter.  The bad code was adding two kernel=

> addresses together, which overflows into a user address space.
>
>   I've commited a work-around to not do that.  You won't have DDB
> symbols, but at least it should boot.

Yep, I can confirm that by applying revision 1.30 to machdep.c, the
machine now boots from its own disk; boot log attached.

Again, thanks,

- H=E5vard

----Next_Part(Thu_Nov_15_14:32:00_2001_772)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Command Monitor.  Type "exit" to return to the menu.
>> printenv
SystemPartition=scsi(0)disk(1)rdisk(0)partition(8)
OSLoadPartition=scsi(0)disk(1)rdisk(0)partition(0)
OSLoader=sash
OSLoadFilename=/unix
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)
>> 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 OSLoader boot
>> setenv OSLoadFilename /netbsd
>> 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)
1343888+136456 [60464+49029]=0x184464
Starting at 0x88002000

nsym 0x1 ssym 0x8816b698 esym 0x88186464
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
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) #11: Thu Nov 15 10:59:06 CET 2001
    he@viola.urc.uninett.no:/usr/src/sys/arch/sgimips/compile/VIOLA
256 MB memory, 234 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: sd1
root on sd1a dumps on sd1b
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ffs...
readclock: 2001/11/15/13/24/31
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.
# exit
swapctl: adding /dev/sd1b as swap device at priority 0
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: viola.urc.uninett.no
add net 127.0.0.0: gateway 127.0.0.1
Configuring network interfaces: sq0.
add net default: gateway 158.38.152.1
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
savecore: no core dump
Setting date via ntp.
setclock: 2001/11/15/13/25/51
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting ntpd.
Updating motd.
starting local daemons:.
Starting sshd.
Starting inetd.
Starting cron.
Thu Nov 15 14:25:58 CET 2001

NetBSD/sgimips (viola.urc.uninett.no) (console)

login: 

----Next_Part(Thu_Nov_15_14:32:00_2001_772)----