Subject: Generic/Sysinst Kernel Crashes To Debugger On Startup, Trap In Swapper
To: None <port-hpcmips@netbsd.org>
From: Sabahattin Gucukoglu <mail@sabahattin-gucukoglu.com>
List: port-hpcmips
Date: 10/23/2004 13:07:01
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I can now start my kernel, but unfortunately it doesn't get very far 
before it catches a fault of some kind ("Trap") and drops out to db.  Just 
for kicks I let it continue until it panicked and then halted - I'm no old 
hand to debugging NetBSD by a long shot, and the constant values don't, 
from a quick grep of the sources and a look at man.netbsd.org, seem to 
have a home place of reference.  So, I'm sorry to have to ask for help 
again, but can anyone help me out with this, or tell me what the numbers 
mean, or else where I can find where they are all plainly "Documented" 
(source or docs)?  It seems to me that the only obvious resolve, that in 
my opinion of just disabling the in-kernel swapper, can only be done by 
building a new kernel, something I'm not yet able to do (options(4), 
config(8)).  Any ideas?

Here's all the serial output as I received it at the terminal (most 
pertinent info about the device seems to be in here) from very bootup:


- --------HPCBOOT--------

MemoryManager: LockPages
FileManager: FAT
hpcboot build number: 12
CASIO Cassiopeia E105 (cpu=0x04104300 machine=0x00c10202)
[progress] 2
[0] 0x80000000 size 0x04000000
_WIN32_WCE = 211
GetVersionEx
Windows CE 2.12
GetSystemInfo:
wProcessorArchitecture      0x1
wProcessorLevel             0x4
wProcessorRevision          0xc60
dwPageSize                  0x400
dwAllocationGranularity     0x00010000
dwProcessorType             0xfa0
Display: 320x200 2bpp
VR41
[progress] 3
[progress] 4
open file "\Flash Disk\freesoft.gz"(2636763 byte).
[progress] 5
Loader: ELF
[progress] 6
file size: +0x7432f0 = 0x743400 byte
address translation table 7616 pages.(60928 byte)
allocated 7616 page. mapped 7616 page.
[progress] 7
2nd bootloader vaddr=0x0080fc00 paddr=0x00bc5400
2nd bootloader copy done.
[progress] 8
[1] vaddr 0x80001000 file size 0x7432f0 mem size 0x7b4010
	->load 0x80001000+0x007b4010=0x807b5010 ofs=0x00001000+0x7432f0
[zero clear] ->0x807442f0+0x00070d20=0x807b5010
[progress] 9
load link 7555 zero clear link 1.
kernel entry address: 0x80001000
framebuffer: 320x200 type=2 linebytes=0 addr=0x00000000
console = 2
[progress] 10
jump to 0x80bc5400 (info=0x80bc5000, pvec=0x80455800)
mem_cluster_cnt = 2
mem_clusters[0] = {0x0,0x7b8000}
mem_clusters[1] = {0x7b8000,0x848000}
loading 0x7b8000,0x848000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    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 2.0_RC4 (RAMDISK) #0: Sun Oct 17 16:11:14 UTC 2004
	autobuild@tgm.netbsd.org:/autobuild/netbsd-2-
0/hpcmips/OBJ/autobuild/netbsd-2-0/src/sys/arch/hpcmips/compile/RAMDISK
CASIO Cassiopeia E105 (NEC VR4121 rev1.2 131.072MHz)
total memory = 16384 KB
total memory banks = 2
memory bank 0 = 0x00000000 7904KB(0x007b8000)
memory bank 1 = 0x007b8000 8480KB(0x00848000)
avail memory = 7976 KB
mainbus0 (root)
cpu0 at mainbus0: NEC VR4100 CPU (0xc60) Rev. 6.0 with software emulated 
floating point
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 32 TLB entries
cpu0: 8KB/16B direct-mapped write-back L1 Data cache
vr4102ip0 at mainbus0
vrbcu0 at vr4102ip0 addr 0x0b000000-001f
vrbcu0: CPU 131.072MHz, bus 32.768MHz, ram 32.768MHz
vrcmu0 at vr4102ip0 addr 0x0b000060-007f
vrgiu0 at vr4102ip0 addr 0x0b000100-011f
                                             3         2         1
                                            
10987654321098765432109876543210
WIN setting:                                
iiiiiiiiiiiiiiiiHiiiiihiiiiEiiih
I/O setting:                                
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
       
data:.......|............||||||||||||.........|.......||||.|....|....
trap: bus error (load or store) in kernel mode
status=0x2, cause=0x1c, epc=0x801f5908, vaddr=0xc0002b00
pid=0 cmd=swapper usp=0x0 ksp=0x807b7b70
Stopped in pid 0.1 (swapper) at 0x801f5908:     lw      v0,0(s0)
db> continue
panic: ktlbmod: invalid pte
Stopped in pid 0.1 (swapper) at 0x801cde38:     jr      ra
                bdslot: nop
db> continue
halted.

Cheers,
Sabahattin

- -- 
Thought for the day:
    Dictatorship (n): a form of government under which everything 
    which is not prohibited is compulsory.


Sabahattin Gucukoglu
Phone: +44 20 88008915
Mobile: +44 7986 053399
http://www.sabahattin-gucukoglu.com/
Email/MSN: <mail@Sabahattin-Gucukoglu.com>


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 -- QDPGP 2.70 

iQA/AwUBQXpJZSNEOmEWtR2TEQJS6wCfWrW5W6+pZ+jocb16QZR79kZlYUEAnRTq
e3R3456LlyU5v4jZ6O59VIS5
=yDVR
-----END PGP SIGNATURE-----