Subject: Indy harddisk problems
To: None <port-sgimips@netbsd.org>
From: Hendrik Scholz <hscholz@perikles.toppoint.de>
List: port-sgimips
Date: 10/25/2001 20:55:29
Hi!

I'm running NetBSD (the latest snapshot and my own compiled world) via root nfs
on an Indy.
I used the disklabel patch to enable scsi write access and the sgivol.tgz to
write the boot file to the disk.
When I try booting from the harddisk I get the following messages:


                           Starting up the system...


NetBSD/sgimips 1.5Y  Bootstrap, Revision 1.0
(hscholz@phobos, Thu Oct 25 13:37:43 UTC 2001)

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 0xaff4000
Local storage 887fe558
argv[0]: scsi(0)disk(4)rdisk(0)partition(8)/boot
argv[1]: OSLoadOptions=auto
argv[2]: ConsoleIn=serial(0)
argv[3]: ConsoleOut=serial(0)
argv[4]: SystemPartition=scsi(0)disk(4)rdisk(0)partition(8)
argv[5]: OSLoader=boot
argv[6]: OSLoadPartition=scsi(0)disk(4)rdisk(0)partition(0)
argv[7]: OSLoadFilename=netbsd
Boot: scsi(0)disk(4)rdisk(0)partition(0)netbsd

Exception: <vector=Normal>
Status register: 0x30044803<CU1,CU0,CH,IM7,IM4,IPL=???,MODE=KERNEL,EXL,IE>
Cause register: 0x8028<CE=0,IP8,EXC=II>
Exception PC: 0x887fe5b0, Exception RA: 0x0
Reserved Instruction exception, contents of PC = 0x3d
Local I/O interrupt register 1: 0x80 <VR/GIO2>
  Saved user regs in hex (&gpda 0xa8740e48, &_regs 0xa8741048):
  arg: a8740000 365 0 2
  tmp: a8740000 0 887fe94c 887fe140 887fe540 887fe624 4076b0 0
  sve: a8740000 3 400000 8000000 16 3f80 0 c000000
  t8 a8740000 t9 0 at 0 v0 0 v1 0 k1 887fe540
  gp a8740000 fp 0 sp 0 ra 0

PANIC: Unexpected exception

[Press reset or ENTER to restart.]

Here are the boot messages when booting via bootp/nfs:

>> bootp():
Setting $netaddr to 10.1.1.192 (from server 10.1.1.66)
Obtaining  from server 10.1.1.66
zs channel 0 had address 0xbfbd9830
IOC rev 1, machine Indy (Guiness), board rev 3
Timer calibration, got 1000000 cycles (1000000, 1000000, 1000000)
CPU clock speed = 100.00Mhz
Mem block 1: type 0, base 0, size 1
Mem block 2: type 1, base 1, size 1
Mem block 3: type 5, base 32770, size 340
Mem block 4: type 3, base 33110, size 1514
Mem block 5: type 6, base 34624, size 192
Mem block 6: type 3, base 34816, size 47104
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 (PHOBOS-NFS) #0: Thu Oct 25 00:40:33 UTC 2001
    hscholz@:/usr/src/sys/arch/sgimips/compile/PHOBOS-NFS
192 MB memory, 175 MB free, 768 KB for ARCS, 9932 KB in 2483 buffers
mainbus0 (root): SGI-IP22 [SGI, 69085a65], 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: 1024KB/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:08:5a:65
wdsc0 at hpc0: WD33C93 SCSI, 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 4 lun 0: <SGI, SEAGATE ST32430N, 0272> SCSI2 0/direct fixed
sd0: 2049 MB, 3992 cyl, 9 head, 116 sec, 512 bytes/sect x 4197405 sectors
boot device: sd0
root on sq0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 10.1.1.66
nfs_boot: my_domain=lan.raisdorf.net
nfs_boot: my_addr=10.1.1.192
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=10.1.1.1
root on 10.1.1.66:/mnt/raid/indy
root time: 0x3bd85f94
readclock: 2001/10/25/14/22/24
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Enter pathname of shell or RETURN for sh: 
Terminal type is vt100.                                                 
We recommend creating a non-root account and using su(1) for root access.
# 
# ./sgivol sd0
disklabel shows 4228848 sectors
checksum: 00000000
root part: 0
swap part: 1
bootfile: 

Volume header files:
boot     offset    2 blocks, length   256131 bytes (501 blocks)

SGI partitions:
 0:a blocks  4225713 first     3135 type  7 (EFS)
 8:i blocks     3135 first        0 type  0 (Volume Header)
10:k blocks  4228848 first        0 type  6 (Volume)
# 

# mount /dev/sd0a /mnt/newroot
# df
Filesystem               1K-blocks     Used     Avail Capacity  Mounted on
10.1.1.66:/mnt/raid/indy 174716794 65296716  95442735    40%    /
/dev/sd0a                  1585340   154362   1351711    10%    /mnt/newroot

Any hints ?
Btw: Why is the second level cache disabled ?

Thanks, Hendrik

--
Hendrik Scholz <hendrik@scholz.net>
http://www.toppoint.de/~hscholz/
Where do you want to be tomorrow ?