Subject: re: 3.99.x/sparc => Watchdog Reset`
To: Greywolf <greywolf@starwolf.com>
From: matthew green <mrg@eterna.com.au>
List: port-sparc
Date: 04/22/2005 00:07:10
   
   mg: does "ctrace" do anything at this point?  it should give you a
   mg: stack trace (possibly even with symbols.)
   
   Here [script is a very handy command]:
   
   # tip sparc
   
   ok boot netbsd -s
   Resetting ...
   net isn't unique
   SPARCstation 5, No Keyboard
   ROM Rev. 2.29, 256 MB memory installed, Serial #9331973.
   Ethernet address 8:0:20:8e:65:5, Host ID: 808e6505.
   
   
   
   Initializing Memory
   Rebooting with command: netbsd -s
   Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0  File and args: netbsd -s
   >> NetBSD/sparc Secondary Boot, Revision 1.14
   >> (greywolf@rivendell.starwolf.com, Tue Oct 28 21:10:08 PST 2003)
   Booting netbsd
   5496492+99396+328976 [209280+166136]=0x6124b8
   OBP version 3, revision 2.29 (plugin rev 2)
   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_STABLE (GENERIC) #0: Fri Apr 15 19:06:29 PDT 2005
   	root@lothlorien.starwolf.com:/sys/arch/sparc/compile/GENERIC
   total memory = 255 MB
   avail memory = 243 MB
   bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@3,0
   mainbus0 (root): SUNW,SPARCstation-5: hostid 808e6505
   cpu0 at mainbus0: DVMA coherent : MB86907 @ 170 MHz, on-chip FPU
   cpu0: 16K instruction (32 b/l), 16K data (32 b/l), 512K external (32 b/l): cache enabled
   obio0 at mainbus0
   clock0 at obio0 slot 0 offset 0x200000: mk48t08
   timer0 at obio0 slot 0 offset 0xd00000: delay constant 82
   zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
   zstty0 at zs0 channel 0 (console i/o)
   zstty1 at zs0 channel 1
   zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
   kbd0 at zs1 channel 0: baud rate 1200
   ms0 at zs1 channel 1: baud rate 1200
   slavioconfig at obio0 slot 0 offset 0x800000 not configured
   auxreg0 at obio0 slot 0 offset 0x900000
   power0 at obio0 slot 0 offset 0x910000 level 2
   
   Watchdog Reset
   Type  help  for more information
   ok ctrace
   PC: f04ab208
   Last leaf: call f04ab448    from f04b8218
        0 w  %o0-%o5: ( f0651001  714001e        1  5001fe4      200        0 )
   
   call f04ab1dc    from f04ab4a8
        1 w  %o0-%o5: ( fe010000        0        0 f0559880 f055987c f0559c50 )
   
   call f04ab470    from f04b8508
        2 w  %o0-%o5: ( fe010000 f0651440        0        1        0 ffffffff )
   
   jmpl  40    from f04a5714
        3 w  %o0-%o5: ( fe010000     1000 71400000        1        0 fe010000 )
   
   jmpl  1    from f04a5cd4
        4 w  %o0-%o5: ( f0567108 fe010000        1        1        0 fe010000 )
   
   call f04a5c80    from f04a5980
        5 w  %o0-%o5: ( f0b58f00 fe010000        1        1        0 f000a220 )
   
   call f04a58a0    from f043aca0
        6 w  %o0-%o5: ( f0b58f00        0   400000        1        0        0 )
   
   More [<space>,<cr>,q] ?                         XXXXXXX    from 1
        7 w  %o0-%o5: ( ffee4000        2 f053da90 f0ae16d4        1        0 )

use gdb to convert these addresses (f0xxxxxx) into function/line
numbers with a netbsd.gdb version of the kernel.  then you can
create an entire stack trace.


.mrg.