Subject: port-pmax/11994: -current kernel panics immediatly after boot on a R4K pmax
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 01/18/2001 12:42:21
>Number:         11994
>Category:       port-pmax
>Synopsis:       -current kernel panics immediatly after boot on a R4K pmax
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-pmax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 18 11:38:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thilo Manske
>Release:        NetBSD 1.5Q (current) from Jan 18 and before
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Environment:
	

NetBSD 1.5Q (GENERIC) #0: Thu Jan 18 19:35:14 MET 2001
    thilo@Marion:/usr/src/sys/arch/pmax/compile/GENERIC
Personal DECstation 5000/50 (MAXINE)
total memory = 40960 KB
avail memory = 35040 KB
using 537 buffers containing 2148 KB of memory
mainbus0 (root)
cpu0 at mainbus0: MIPS R4000 CPU (0x430) Rev. 3.0 with MIPS R4010 FPC Rev. 0.0
cpu0: L1 cache: 8KB/16B instruction, 8KB/16B data, direct mapped
cpu0: L2 cache: 1024KB/32B mixed, no snooping
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:39:7d:a7
le0: 32 receive buffers, 8 transmit buffers
scc0 at ioasic0 offset 0x100000: console
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
bba0 at ioasic0 offset 0x240000
audio0 at bba0: full duplex, mmap
dtop0 at ioasic0 offset 0x280000
fdc at ioasic0 offset 0x2c0000 not configured
asc0 at ioasic0 offset 0x300000: target 7
xcfb0 at tc0 slot 2 offset 0x0: 1024x768x8
sfb0 at tc0 slot 0 offset 0x0: 1280x1024x8
Beginning old-style SCSI device autoconfiguration
rz5 at asc0 drive 5 slave 0 DEC RX26     (C) DEC rev 0068 (SCSI-1)
boot device: le0

gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

>Description:

After the system has loaded the kernel (via tftp) and found the root
device it panics immediatly:

trap: TLB miss (load or instr. fetch) in kernel mode
status=0x2, cause=0x8, epc=0x400238, vaddr=0x480d4
pid=1 cmd=init usp=0x7fffed48 ksp=0xc4867ed8
Stopped in pid 1 (init) at        0x400238:     sw      v0,0(at)
db> trace /t
PC 0x400238: not in kernel space
0+400238 (7f00,c4867f68,3378,7f00) ra 0 sz 0
User-level: pid 1

(Since it's diskless I can't do a crashdump)

I tried kernels made from the GENERIC config file, the R4000 config file + option
"BOOT_DHCP", my own stripped down kernels. (The GENERIC kernel runs fine
on a 2100 and a 5000/20).

Here's the ouptut of my custom kernel with options DIAGNOSTIC and DEBUG:

root file system type: nfs
init: copying out path `/sbin/init' 11
trap: TLB miss (load or instr. fetch) in kernel mode
status=0x2, cause=0x8, epc=0x400180, vaddr=0x80d4
pid=1 cmd=init usp=0x7fffed88 ksp=0xc4869ed8
Stopped in pid 1 (init) at        0x400180:     lui     gp,0xfc1
db> trace /t
PC 0x400180: not in kernel space
0+400180 (7f00,c4869f68,1a50,7f00) ra 0 sz 0
User-level: pid 1

BTW: I had the same problems with 1.5.1_ALPHA too, but by randomly
adding/removing devices and trying if it boots, I managed to get a working
kernel some way...

>How-To-Repeat:
Try to netboot 1.5 current on a Personal DECstation 5000/50...
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: