Subject: trap 3e at boot from ofw
To: None <port-sparc64@netbsd.org>
From: john heasley <heas@shrubbery.net>
List: port-sparc64
Date: 07/29/2002 13:30:24
i have an ultra-60

NetBSD 1.6D (larch) #0: Thu Jul 18 16:39:02 UTC 2002
    root@larch:/home/src/sys/arch/sparc64/compile/larch
total memory = 512 MB
avail memory = 468 MB
using 3289 buffers containing 26312 KB of memory
bootpath: /pci@1f,4000/scsi@3,0/disk@0,0
mainbus0 (root): SUNW,Ultra-60

i had an 9g ibm boot drive which worked fine.

type: SCSI
disk: ST318404LSUN18G
label: SUN9.0G cyl 4924
flags:
bytes/sector: 512
sectors/track: 133
tracks/cylinder: 27
sectors/cylinder: 3591
cylinders: 4924
total sectors: 17682084
rpm: 5400
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:  16629921         0     4.2BSD   1024  8192    16   # (Cyl.    0 - 4630)
 b:   1052163  16629921       swap                      # (Cyl. 4631 - 4923)
 c:  17682084         0    unknown                      # (Cyl.    0 - 4923)

i replaced this with a 36g ibm drive:

type: SCSI
disk: DRHS36D
label: 
flags:
bytes/sector: 512
sectors/track: 313
tracks/cylinder: 20
sectors/cylinder: 6260
cylinders: 11494
total sectors: 72170879
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:  10266400         0     4.2BSD   1024  8192    12   # (Cyl.    0 - 1639)
 b:   1878000  10266400       swap                      # (Cyl. 1640 - 1939)
 c:  72170879         0     unused      0     0         # (Cyl.    0 - 11528*)
 h:  60026479  12144400     4.2BSD   2048 16384     0   # (Cyl. 1940 - 11528*)

when i enter 'boot' at the openprom prompt i fails with 'trap 3e'.  if i
enter 'boot' again, it succeeds without a problem.

the boot block on the 36g was built and installed from 1.6D from around july
18.  any ideas on what the problem may be?

{0} ok boot
Trap 3e 
{0} ok .registers
        Normal          Alternate       MMU               Vector
0:                 0                0                0                0
1:                 0         fffd26c0                d              7ed
2:          f0000000         f0000000 800000001ff2a0b6         f0000000
3:          fffe0000                0         ffef8000      20000000000
4:                 0                0         ffef8000             4000
5:          f000a600                f         fffd0000               f8
6:          fffefdb0         15001600 800000001ff580b6                e
7:          fffeef80              13e                2         f0056360
%PC  f000a764 %nPC f000a768 
%TBA f0000000 %CCR 44 XCC:nZvc   ICC:nZvc
{0} ok .window
Window number too large.  The maximum number is 0 
        INs             LOCALs          OUTs
0:                 0             a758                0
1:          20000000                0                0
2:          f0000000         fff6d6d0            80000
3:          fffe0000                0              1e9
4:                 0                4      1fff1400000
5:                 0                4               3c
6:                 0                0         fff83741
7:                 0 fffffffff00023a4         f000a534
Stack Underflow
{0} ok .trap-registers
%TL:1 %TT:13e %TPC:f000a764 %TnPC:f000a768 
%TSTATE:4415001600  %CWP:0 
   %PSTATE:16 AG:0 IE:1 PRIV:1 AM:0 PEF:1 RED:0 MM:0 TLE:0 CLE:0 MG:0 IG:0 
   %ASI:15  %CCR:44  XCC:nZvc   ICC:nZvc

%TL:2 %TT:68 %TPC:f000302c %TnPC:f0003030 
%TSTATE:4415001500  %CWP:0 
   %PSTATE:15 AG:1 IE:0 PRIV:1 AM:0 PEF:1 RED:0 MM:0 TLE:0 CLE:0 MG:0 IG:0 
   %ASI:15  %CCR:44  XCC:nZvc   ICC:nZvc

%TL:3 %TT:1ff %TPC:fffffffffffffffc %TnPC:fffffffffffffffc 
%TSTATE:8058041400  %CWP:0 
   %PSTATE:414 AG:0 IE:0 PRIV:1 AM:0 PEF:1 RED:0 MM:0 TLE:0 CLE:0 MG:1 IG:0 
   %ASI:58  %CCR:80  XCC:Nzvc   ICC:nzvc

%TL:4 %TT:1ff %TPC:fffffffffffffffc %TnPC:fffffffffffffffc 
%TSTATE:eece050c04  %CWP:4 
   %PSTATE:50c AG:0 IE:0 PRIV:1 AM:1 PEF:0 RED:0 MM:0 TLE:1 CLE:0 MG:1 IG:0 
   %ASI:ce  %CCR:ee  XCC:NZVc   ICC:NZVc

%TL:5 %TT:1ff %TPC:fffffffffffffffc %TnPC:fffffffffffffffc 
%TSTATE:eeee050c04  %CWP:4 
   %PSTATE:50c AG:0 IE:0 PRIV:1 AM:1 PEF:0 RED:0 MM:0 TLE:1 CLE:0 MG:1 IG:0 
   %ASI:ee  %CCR:ee  XCC:NZVc   ICC:NZVc