Subject: O2 doesn't boot
To: None <port-sgimips@netbsd.org>
From: Hendrik Scholz <hscholz@raisdorf.net>
List: port-sgimips
Date: 12/31/2001 14:41:05
Hi!

I got my O2 a while ago and now would like to play around with NetBSD.
I downloaded the netbsd.ip32 kernel and build my own kernel on my indy but
the kernel do not boot.

Here is some output:

> hinv -v
                   System: IP32
                Processor: 300 Mhz R5000, with FPU
     Primary I-cache size: 32 Kbytes
     Primary D-cache size: 32 Kbytes
     Secondary cache size: 1024 Kbytes
              Memory size: 128 Mbytes
                 Graphics: CRM, Rev C
                SCSI Disk: scsi(0)disk(4)
> version


PROM Monitor (BE)
Tue May 25 14:39:15 PDT 1999 
VERSION 4.13
O2 R5000/R10000
IRIX 6.3 IP32prom IP32PROM-v4

> printenv
AutoLoad=Yes
diskless=0
volume=80
sgilogo=y
monitor=H
TimeZone=PST8PDT
nogfxkbd=1
screenx=1280
screeny=1024
screenrate=60
diagmode=v
SystemPartition=pci(0)scsi(0)disk(1)rdisk(0)partition(8)
OSLoadPartition=pci(0)scsi(0)disk(1)rdisk(0)partition(0)
OSLoadFilename=/unix
OSLoader=sash
crt_option=1
console=d
netaddr=10.1.1.20
dbaud=9600
ConsoleOut=serial(0)
ConsoleIn=serial(0)
cpufreq=300
eaddr=08:00:69:0c:17:51
videostatus=illegal_env_var
kernname=pci(0)scsi(0)disk(1)rdisk(0)partition(8)/sash
> 

Booting the old netbsd.ip32 with boot -f bootp():netbsd.ip32

memory 0x163000 0xd50000
memory 0x1400000 0x8000000
Copyright (c) 1996, 1997, 1998, 1999, 2000
    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.5A (INDY) #142: Tue Jun 27 17:40:37 CEST 2000
    soren@meow:/usr/home/soren/netbsd/src/sys/arch/sgimips/compile/INDY
128 MB memory, 78780 KB free, 6848 KB for ARCS, 39240 KB in 9810 buffers
mainbus0 (root): SGI-IP32 [SGI, 1]
cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 10.0
cpu0: L1 cache: 32KB/32B instruction, 32KB/32B data, two way set associative
cpu0: L2 cache: 512KB/32B mixed, snooping
crime0 at mainbus0 addr 0x14.

Note: the last dot appears about a second later than the other output.
After some seconds the box reboots.

My custom build kernel:

Using ARCS for console I/O.
argv[0]: bootp():netbsd.ip32
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=pci(0)scsi(0)disk(1)rdisk(0)partition(8)
argv[4]: OSLoader=sash
argv[5]: OSLoadPartition=pci(0)scsi(0)disk(1)rdisk(0)partition(0)
argv[6]: OSLoadFilename=/unix
 [ no symbols available ]
Mem block 1: type 0, base 0x0, size 0x1
Mem block 2: type 1, base 0x1, size 0x1
Mem block 3: type 3, base 0x2, size 0x67
Mem block 4: type 5, base 0x69, size 0x17e
Mem block 5: type 3, base 0x1e7, size 0xb69
Mem block 6: type 6, base 0xd50, size 0x2b0
Mem block 7: type 7, base 0x1000, size 0x100
Mem block 8: type 6, base 0x1100, size 0x300
Mem block 9: type 3, base 0x1400, size 0x6c00
Loading cluster 2: 0x2 / 0x69
Cluster 3 contains kernel
Loading cluster 4: 0x1e7 / 0xd50
Loading cluster 8: 0x1400 / 0x8000
panic: r4k sdcache 0 way line size 32


Exception: <vector=Normal>
Status register: 0x20000002<CU1,IPL=8,MODE=KERNEL>
Cause register: 0x8024<CE=0,IP8,EXC=BREAK>
Exception PC: 0x80174850, Exception RA: 0x800b6134
Breakpoint exception at address 0x21011301
  Saved user regs in hex (&gpda 0x810612c8, &_regs 0x810614c8):
  arg: 81070000 73b 0 5
  tmp: 81070000 80068f6c 100 0 1e7 8000 1400 69
  sve: 81070000 0 d1a4457 0 3f37Ø

And reboot ....

I compiled debugging into my kernel (and got a 9MB kernel) but that doesn't help:
The same output but this time no "Ø" as last char but a dot.

I have a scsi disk installed but no external nic.
I searched thru the mailing list archive for the "QED RM5200 CPU" but didn't
find any entries.

What could I do ?

Thanks, Hendrik

-- 
Hendrik Scholz <hscholz@raisdorf.net>
http://www.raisdorf.net
Where do you want to be tomorrow ?