[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-sparc
Subject:    ultra60 panic on self-built 4.9 kernel
From:       Roger Hammerstein <cheeky.m () live ! com>
Date:       2011-05-22 21:44:13
Message-ID: BAY165-w3E26EEDB95548E9838149F9730 () phx ! gbl
[Download RAW message or body]

I was trying to take an Ultra 60 from 4.8 to 4.9, but every
time I try to build a kernel, the resulting kernel panics on boot.

The 'bsd' kernel from the ftp server boots and runs fine.
And the old 4.8 kernel still boots okay.

After booting the 'bsd' kernel from the ftp server, I can 'make build'
successfully.  I tried building a kernel
after installing the new world with the ftp server kernel, and the newly
built
kernel still panics on boot.

I don't think I missed any update steps.

My kernel with 'root on sd0p' just before the panic, show below,  looks
suspicious.

timer0 at mainbus0 addr 0xfff9fc00 ivec 0x7ec, 0x7ed
creator0 at mainbus0 addr 0xfebc0000: Creator3D, model SUNW,501-4788, dac 10
wsdisplay0 at creator0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
siop0: target 1 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
bootpath: /pci@1f,4000/scsi@3,0/disk@0,0
root on sd0p
panic: trap type 0x10 (illegal instruction): pc=16666c8 npc=16666cc
pstate=44800016<PEF,PRIV,IE>
kdb breakpoint at 1462300
Stopped at      Debugger+0x4:   nop
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb>

ddb> trace
trap(1c09790, 10, 16666c8, 44800016, 4000c02a440, 1) at trap+0x360
slowtrap(fffffffffffffff2, 1, 2000, 18862f0, 0, 1c09b20) at slowtrap+0x1d8
spec_close(1c09a38, 0, 1c09a50, 1c09dc0, 1c09df3, 1) at spec_close+0x110
VOP_CLOSE(4000c02a440, 1, ffffffffffffffff, 18862f0, fffffffffffffff2, 6) at
VO
P_CLOSE+0x24
disk_readlabel(1c09d90, ffffffffffffffff, e0018000, 64, 0, 1889000) at
disk_rea
dlabel+0x168
dk_mountroot(ffffffff, 400020dc024, 0, 0, 1, 0) at dk_mountroot+0x40
main(0, 117a400, 18, f00670fc, f00670fc, 1801010) at main+0x66c
print_dtlb(100000, 14c0, 1000000, fff83b70, 18, 10b328) at print_dtlb+0x15c
ddb>


ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
     6      0      0      0  3    0x100200  bored         crypto
     5      0      0      0  3    0x100200  pftm          pfpurge
     4      0      0      0  2    0x100280                syswq
     3      0      0      0  3  0x40100200                idle0
     2      0      0      0  3    0x100200  kmalloc       kmthread
     1      0      0      0  3           0  initexec      swapper
*    0     -1      0      0  7     0x80200                swapper
ddb>

# fdisk sd0
Disk: sd0       geometry: 78753/5/729 [287277984 Sectors]
Offset: 0       Signature: 0x40BD
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-----------------------------------------------------------------------------
--
 0: 83      0   0   1 - 1178317   2 373 [           0:           0 ] Linux
files*
 1: 83      0   0   1 - 1178317   2 373 [           0:           0 ] Linux
files*
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
 3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
#


 That Linux stuff probably should have been updated/changed previously.




# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: MAT3147NC
duid: 0000000000000000
flags: vendor
bytes/sector: 512
sectors/track: 729
tracks/cylinder: 5
sectors/cylinder: 3645
cylinders: 13217
total sectors: 287277984
boundstart: 0
boundend: 287277984
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:        287277984                0  4.2BSD   2048 16384    1 # /
  c:        287277984                0  unused
disklabel: warning, partition a: size % cylinder-size != 0
#


# cat /etc/fstab
/dev/sd0a / ffs rw 1 1
#





dmesg from the ftp kernel:

Copyright (c) 1995-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.9 (GENERIC) #254: Wed Mar  2 07:06:30 MST 2011
    deraadt@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 2147483648 (2048MB)
avail mem = 2101624832 (2004MB)
mainbus0 at root: Sun Ultra 60 UPA/PCI (2 X UltraSPARC-II 360MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-II (rev 2.0) @ 359.990 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 4096K external (64
b/l)
"SUNW,UltraSPARC-II" at mainbus0 not configured
psycho0 at mainbus0 addr 0xfffb4000: SUNW,psycho, impl 0, version 4, ign 7c0
psycho0: bus range 0-0, PCI bus 0
psycho0: dvma map fe000000-ffffffff, STC0 enabled
pci0 at psycho0
ebus0 at pci0 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003
"SUNW,pll" at ebus0 addr 504000-504002 not configured
uperf0 at ebus0 addr 500000-500007: model SUNW,sc-qp (0/1) ports 9
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0: console
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 300398-300399, 700000-70000f ivec 0x22:
polled
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f,
722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci0 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address
xx:xx:xx:xx
qsphy0 at hme0 phy 1: QS6612 10/100 PHY, rev. 1
siop0 at pci0 dev 3 function 0 "Symbios Logic 53c875" rev 0x14: ivec 0x7e0,
using 4K of on-board RAM
scsibus0 at siop0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAT3147NC, 4201> SCSI3 0/direct fixed
sd0: 140272MB, 512 bytes/sec, 287277984 sec total
sd1 at scsibus0 targ 1 lun 0: <FUJITSU, MAP3735NC, 0108> SCSI3 0/direct fixed
sd1: 70103MB, 512 bytes/sec, 143571316 sec total
cd0 at scsibus0 targ 6 lun 0: <TOSHIBA, XM5701TASUN12XCD, 0997> SCSI2 5/cdrom
removable
siop1 at pci0 dev 3 function 1 "Symbios Logic 53c875" rev 0x14: ivec 0x7e6,
using 4K of on-board RAM
scsibus1 at siop1: 16 targets, initiator 7
psycho1 at mainbus0 addr 0xfffc6000: SUNW,psycho, impl 0, version 4, ign 7c0
psycho1: bus range 128-128, PCI bus 128
psycho1: dvma map fe000000-ffffffff, STC0 enabled, STC1 enabled
pci1 at psycho1
timer0 at mainbus0 addr 0xfff9fc00 ivec 0x7ec, 0x7ed
creator0 at mainbus0 addr 0xfebc0000: Creator3D, model SUNW,501-4788, dac 10
wsdisplay0 at creator0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
siop0: target 1 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
bootpath: /pci@1f,4000/scsi@3,0/disk@0,0
root on sd0a swap on sd0b dump on sd0b

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic