Discussion:
boot failure on DS 5000/133
(too old to reply)
Erik Bertelsen
2011-04-06 05:49:34 UTC
Permalink
With NetBSD-current on a pmax with sources of a couple days ago,
booting stops with:

KN02-BA V5.7j    (PC: 0x80100a1c, SP: 0xc3e59e00)

NetBSD/pmax 1.6ZC FFS Primary Bootstrap

NetBSD/pmax 5.99.40 Secondary Bootstrap, Revision 1.5
(***@sockdev.h.erikb.net, Sat Oct 10 23:31:25 CEST 2009)

Boot: 3/rz4/netbsd
1993232+62008 [130032+125248]=0x234804
Starting at 0x80030000

mips_fixup_stubs: 4548 fixups done in 0 cycles
mcclock: iters 11680 computed MHz 33, instrs per usec=19
panic: evcnt_attach_static: evcnt non initialized: group=<pmax> name=<serial0>
0x8002ff20: 0x800c8c78+80 (80226000,0,6,80210850) ra 0 sz 0
User-level: pid 0.1
halted.


KN02-BA V5.7j    (PC: 0xbfc00c0c, SP: 0x8002fef0)
Any explanation or hints to what I can do?

kind regards
Erik


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Izumi Tsutsui
2011-04-06 11:46:15 UTC
Permalink
Post by Erik Bertelsen
Any explanation or hints to what I can do?
Your kernel seems to have options DEBUG. Does the default GENERIC work?
On my 5000/125 GENERIC around 20110317 -current worked.
---
Izumi Tsutsui

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Erik Bertelsen
2011-04-06 14:50:18 UTC
Permalink
Post by Izumi Tsutsui
Post by Erik Bertelsen
Any explanation or hints to what I can do?
Your kernel seems to have options DEBUG. Does the default GENERIC work?
On my 5000/125 GENERIC around 20110317 -current worked.
---
Izumi Tsutsui
Yes DEBUG and DIAGNOSTICS were added to my custom kernel because it
went into a loop early in the boot process.

Running GENERIC is much better:

Boot: 3/rz4/netbsd
3579472+119032 [214944+211401]=0x3ef5c8
Starting at 0x80030000

segment 0 start 00000000 size 02000000
phys segment: 0x2000000 @ 0
adding 0x3de000 @ 0x422000 to freelist 1
adding 0x1800000 @ 0x800000 to freelist 0
pmap_steal_memory: seg 0: 0x422 0x422 0x800 0x800
pmap_steal_memory: seg 0: 0x448 0x448 0x800 0x800
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011
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 5.99.48 (GENERIC) #0: Wed Apr 6 16:39:11 CEST 2011
***@x8-nb.h.recerik.dk:/home/NetBSD/crossbuild/obj.pmax/sys/arch/pmax/compile/GENERIC
DECstation 5000/133 (3MIN)
total memory = 32768 KB
avail memory = 27740 KB
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 4.0
cpu0: 64KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 128KB/4B direct-mapped write-through Data cache
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:32:56:6f
le0: 32 receive buffers, 8 transmit buffers
zsc0 at ioasic0 offset 0x100000
vsms0 at zsc0 channel 0
wsmouse0 at vsms0 mux 0
zstty0 at zsc0 channel 1
zsc1 at ioasic0 offset 0x180000
lkkbd0 at zsc1 channel 0
wskbd0 at lkkbd0 mux 1
zstty1 at zsc1 channel 1 (console i/o)
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x300000: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 4 lun 0: <QUANTUM, QM39100TD-S, N1B0> disk fixed
sd0: 8683 MB, 8057 cyl, 10 head, 220 sec, 512 bytes/sect x 17783249 sectors
sd0: sync (200.00ns offset 15), 8-bit (5.000MB/s) transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
pid 1(init): ABI set to O32 (e_flags=0x1007)
Tue Apr 5 16:47:59 CEST 2011
[1] Floating point exception (stty status "^T...
[1] Floating point exception (local line; loc...
Enter pathname of shell or RETURN for /bin/sh:
Terminal type is rcons.



Now I'll investigate what has changed in GENERIC since last I had a
working system and try to improve my kernel config file.

kind regards
- Erik

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Izumi Tsutsui
2011-04-06 15:04:46 UTC
Permalink
Post by Erik Bertelsen
Yes DEBUG and DIAGNOSTICS were added to my custom kernel because it
went into a loop early in the boot process.
Ok, it can be reproducible on GXemul.
Could you try the attached patch?
Post by Erik Bertelsen
[1] Floating point exception (stty status "^T...
[1] Floating point exception (local line; loc...
This is userland issue on MIPS1 and has been fixed.
http://mail-index.NetBSD.org/source-changes/2011/03/09/msg019758.html
Please update libc.so binary.

Now I got the following error on GXemul running DEBUG kernel:
---
Starting network.
/etc/rc: WARNING: $hostname not set.
panic: tlb_hi (0x803c26c0) asid (0x1b) != current asid (0)
cpu0: Begin traceback
pid -968426520 not found
cpu0: End traceback...
0xc646fbd0: 0+801a8628 (c646e0000,0,b2,803da814) ra 0 sz 0
User-level: pid 61.1

dump to dev 19,1 not possible
rebooting...

---
Izumi Tsutsui


Index: pmax/autoconf.c
===================================================================
RCS file: /cvsroot/src/sys/arch/pmax/pmax/autoconf.c,v
retrieving revision 1.76
diff -u -p -r1.76 autoconf.c
--- pmax/autoconf.c 20 Feb 2011 07:50:25 -0000 1.76
+++ pmax/autoconf.c 6 Apr 2011 14:58:40 -0000
@@ -77,6 +77,9 @@ cpu_configure(void)
/* Kick off autoconfiguration. */
(void)splhigh();

+ /* Interrupt initialization. */
+ intr_init();
+
if (config_rootfound("mainbus", NULL) == NULL)
panic("no mainbus found");

Index: pmax/machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/pmax/pmax/machdep.c,v
retrieving revision 1.242
diff -u -p -r1.242 machdep.c
--- pmax/machdep.c 20 Feb 2011 07:50:25 -0000 1.242
+++ pmax/machdep.c 6 Apr 2011 14:58:40 -0000
@@ -315,9 +315,6 @@ mach_init(int argc, int32_t *argv32, int
/* Machine specific initialization. */
(*sysinit[systype].init)();

- /* Interrupt initialization. */
- intr_init();
-
/* Find out how much memory is available. */
physmem = (*platform.memsize)(kernend);

---
Izumi Tsutsui

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Erik Bertelsen
2011-04-06 15:21:43 UTC
Permalink
Post by Izumi Tsutsui
 Yes DEBUG and DIAGNOSTICS were added to my custom kernel because it
went into a loop early in the boot process.
Ok, it can be reproducible on GXemul.
Could you try the attached patch?
Yes, applying your patch to move intr_init() and building my custom
kernel allows the kernel itself to boot:

Boot: 3/rz4/netbsd
1992432+61912 [129984+125227]=0x234440
Starting at 0x80030000

mips_fixup_stubs: 4567 fixups done in 0 cycles
mcclock: iters 11680 computed MHz 33, instrs per usec=19
segment 0 start 00000000 size 02000000
phys segment: 0x2000000 @ 0
adding 0x5d8000 @ 0x228000 to freelist 1
adding 0x1800000 @ 0x800000 to freelist 0
pmap_steal_memory: seg 0: 0x228 0x228 0x800 0x800
pmap_steal_memory: seg 0: 0x24d 0x24d 0x800 0x800
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011
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 5.99.48 (SOCKDEV) #2: Wed Apr 6 17:12:57 CEST 2011
***@x8-nb.h.recerik.dk:/home/NetBSD/crossbuild/obj.pmax/sys/arch/pmax/compile/SOCKDEV
DECstation 5000/133 (3MIN)
total memory = 32768 KB
avail memory = 29732 KB
sysctl_createv: sysctl_create(no_sa_support) returned 22
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 4.0
cpu0: 64KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 128KB/4B direct-mapped write-through Data cache
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:32:56:6f
le0: 32 receive buffers, 8 transmit buffers
3MIN: imask 1030, enabling slot 0x2, dev 0xc362db58 handler 0x80030710
zsc0 at ioasic0 offset 0x100000
vsms0 at zsc0 channel 0
wsmouse0 at vsms0 (mux ignored)
zstty0 at zsc0 channel 1
3MIN: imask 1130, enabling slot 0x0, dev 0xc362db58 handler 0x801cdf0c
zsc1 at ioasic0 offset 0x180000
lkkbd0 at zsc1 channel 0
wskbd0 at lkkbd0 (mux ignored)
zstty1 at zsc1 channel 1 (console i/o)
3MIN: imask 1170, enabling slot 0x1, dev 0xc362db58 handler 0x801cdf0c
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x3000003MIN: imask 11f0, enabling slot 0x3,
dev 0xc362db58 handler 0x800d0aa8
: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 4 lun 0: <QUANTUM, QM39100TD-S, N1B0> disk fixed
sd0: 8683 MB, 8057 cyl, 10 head, 220 sec, 512 bytes/sect x 17783249 sectors
sd0: sync (200.00ns offset 15), 8-bit (5.000MB/s) transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
mountroot: trying nfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
pid 1(init): ABI set to O32 (e_flags=0x1007)
pid 1(init): trap: cpu0, TLB miss (load or instr. fetch) in kernel mode
status=0x20080014, cause=0x30002008, epc=0x800a089c, vaddr=0xff00
tf=0xc3e73a90 ksp=0xc3e73b30 ra=0x800fc574 ppl=0x81f59e44
panic: trap
0xc3e73898: 0x800c8878+80 (c3e72000,0,b2,8020273c) ra 0 sz 0
User-level: pid 1.1

dumping to dev 19,1 offset 1332112
dump 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
10 9 8 7 6 5 4 3 2 1 succeeded


rebooting...


KN02-BA V5.7j (PC: 0x8011766c, SP: 0xc3e73868)
^C
Post by Izumi Tsutsui
^C
Now I'm back to where I've been before in January.

I'll update libc and report later.

Thanks alot
- Erik

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Izumi Tsutsui
2011-04-06 15:34:22 UTC
Permalink
Post by Erik Bertelsen
Post by Izumi Tsutsui
Post by Erik Bertelsen
Yes DEBUG and DIAGNOSTICS were added to my custom kernel because it
went into a loop early in the boot process.
Ok, it can be reproducible on GXemul.
Could you try the attached patch?
Yes, applying your patch to move intr_init() and building my custom
Thanks, committed.
Post by Erik Bertelsen
init: copying out path `/sbin/init' 11
pid 1(init): ABI set to O32 (e_flags=0x1007)
pid 1(init): trap: cpu0, TLB miss (load or instr. fetch) in kernel mode
status=0x20080014, cause=0x30002008, epc=0x800a089c, vaddr=0xff00
tf=0xc3e73a90 ksp=0xc3e73b30 ra=0x800fc574 ppl=0x81f59e44
panic: trap
0xc3e73898: 0x800c8878+80 (c3e72000,0,b2,8020273c) ra 0 sz 0
I'll also check mips1 code again.

---
Izumi Tsutsui

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Continue reading on narkive:
Loading...