NetBSD Problem Report #46170

From ryo_on@yk.rim.or.jp  Sun Mar 11 00:50:40 2012
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 6543863BFFC
	for <gnats-bugs@gnats.netbsd.org>; Sun, 11 Mar 2012 00:50:40 +0000 (UTC)
Message-Id: <20120311005040.6543863BFFC@www.NetBSD.org>
Date: Sun, 11 Mar 2012 00:50:40 +0000 (UTC)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: NetBSD/cobalt 6.0_BETA does not boot
X-Send-Pr-Version: 3.95

>Number:         46170
>Category:       port-cobalt
>Synopsis:       NetBSD/cobalt 6.0_BETA does not boot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-cobalt-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 11 00:55:01 +0000 2012
>Closed-Date:    Sat Apr 26 05:39:09 +0000 2014
>Last-Modified:  Wed May 21 20:40:01 +0000 2014
>Originator:     Ryo ONODERA
>Release:        NetBSD 6.0_BETA
>Organization:

>Environment:


System: NetBSD/cobalt 6.0_BETA
>Description:
NetBSD/cobalt 6.0_BETA of 2012-03-10 does not boot properly.
I have made NetBSD/cobalt Restore CD and try to boot from it.

dmesg is here.

Cobalt Microserver Diagnostics - 'We serve it, you surf it'
Built Tue May 25 15:58:41 PDT 1999

 1.LCD Test..............................**NOT FOUND**
 2.Controller Test.........................PASS
 5.Bank 0:.................................64M
 6.Bank 1:.................................0M
 7.Bank 2:.................................0M
 8.Bank 3:.................................0M
 9.Serial Test.............................PASS
10.PCI Expansion Slot....................**EMPTY**
12.IDE Test................................PASS
13.Ethernet Test...........................PASS
16.RTC Test................................PASS
BOOTLOADER ramcode: selected partition /dev/hda1
Decompressing done
Executing bootloader kernel...
Decompressing -- done.

>> NetBSD/cobalt 5.1 Bootloader, Revision 0.9 [@0x80f00000]
>> (builds@b8.netbsd.org, Sat Nov  6 14:35:01 UTC 2010)
>> Model:               Cobalt Qube 2
>> Memory:              65536 k
>> PROM boot string:    root=/dev/hda1 ro
Boot [wd0a:netbsd]: Cobalt Microserver Diagnostics - 'We serve it, you surf it'
Built Tue May 25 15:58:41 PDT 1999

 1.LCD Test................................PASS
 2.Controller Test.........................PASS
 5.Bank 0:.................................64M
 6.Bank 1:.................................0M
 7.Bank 2:.................................0M
 8.Bank 3:.................................0M
 9.Serial Test.............................PASS
10.PCI Expansion Slot....................**EMPTY**
12.IDE Test................................PASS
13.Ethernet Test...........................PASS
16.RTC Test................................PASS
Decompressing done
Executing bootloader kernel...
Decompressing -- done.

>> NetBSD/cobalt 6.0_BETA Bootloader, Revision 1.0 (Sun Mar 11 09:55:39 JST 2012) [@0x80f00000]
>> Model:               Cobalt Qube 2
>> Memory:              65536 k
>> PROM boot string:    root=/dev/nfs nfsroot=/nfsroot nfsaddrs=bootp
Boot [nfs:netbsd]:
Loading: nfs:netbsd
4495216+150208 [226480+224952]=0x4dcb28
Starting at 0x80001000

pmap_steal_memory: seg 0: 0x4dd 0x4dd 0x3ffe 0x3ffe
pmap_steal_memory: seg 0: 0x500 0x500 0x3ffe 0x3ffe
pmap_steal_memory: seg 0: 0x502 0x502 0x3ffe 0x3ffe
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    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 6.0_BETA (GENERIC) #0: Sun Mar 11 07:38:43 JST 2012
        root@arsenic.elements.tetera.org:/usr/nb/obj/sys/arch/cobalt/compile/GENERIC
Cobalt Qube 2
total memory = 65536 KB
avail memory = 59184 KB
mainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 10.0
cpu0: 48 TLB entries, 16MB max page size
cpu0: 32KB/32B 2-way set-associative L1 instruction cache
cpu0: 32KB/32B 2-way set-associative write-back L1 data cache
mcclock0 at mainbus0 addr 0x10000070: mc146818 compatible time-of-day clock
panel0 at mainbus0 addr 0x1f000000
gt0 at mainbus0 addr 0x14000000
pci0 at gt0
pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at level 1
tlp0: Ethernet address 00:10:e0:00:eb:7e
lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 9 function 0
pcib0: VIA Technologies VT82C586 PCI-ISA Bridge, rev 39
viaide0 at pci0 dev 9 function 1
viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x02) at pci0 dev 9 function 2 not configured
tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
tlp1: interrupting at level 2
tlp1: Ethernet address 00:10:e0:00:eb:78
lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
wd0 at atabus0 drive 0
wd0: <ST320423A>
wd0: 19536 MB, 39693 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 sectors
boot device: tlp0
root on tlp0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 10.0.0.254
nfs_boot: my_domain=netbsd.org
nfs_boot: my_addr=10.0.0.160
nfs_boot: my_mask=255.0.0.0
nfs_boot: gateway=10.0.0.254
root on 10.0.0.254:/nfsroot
root file system type: nfs
warning: no /dev/console
pid 1(init): ABI set to O32 (e_flags=0x1007)
panic: init died (signal 0, exit 11)
kernel: breakpoint trap
Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        jr      ra
                bdslot: nop
db> trace 
0xc323ddc8: cpu_Debugger+4 (63061,400,0,8043d4c0) ra 80297d4c sz 0
0xc323ddc8: vpanic+214 (63061,400,0,8043d4c0) ra 80297dd8 sz 56
0xc323de00: panic+24 (63061,0,b,7df3bc04) ra 80145b38 sz 32
0xc323de20: exit1+8cc (63061,0,b,7df3bc04) ra 80145b8c sz 128
0xc323dea0: sys_exit+44 (63061,c323df70,b,7df3bc04) ra 802b2104 sz 40
0xc323dec8: syscall+244 (63061,c323df70,b,7df3bc04) ra 801a1edc sz 128
0xc323df48: mips3_systemcall+dc (63061,c323df70,b,7df3bc04) ra 7df3bc04 sz 0
PC 0x7df3bc04: not in kernel space
0xc323df48: 0+7df3bc04 (63061,c323df70,b,7df3bc04) ra 0 sz 0
User-level: pid 1.1
db> 

>How-To-Repeat:
If someone want to get my restore cd iso image, I will upload it somewhere.

>Fix:

I have no idea.


>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Sun, 13 Oct 2013 20:25:26 +0000

 On Sun, Mar 11, 2012 at 12:55:01AM +0000, ryoon@NetBSD.org wrote:
  > NetBSD/cobalt 6.0_BETA of 2012-03-10 does not boot properly.
  >   :
  > root file system type: nfs
  > warning: no /dev/console
  > pid 1(init): ABI set to O32 (e_flags=0x1007)
  > panic: init died (signal 0, exit 11)

 exit 11 from init means that it ran MAKEDEV to create /dev/console,
 and MAKEDEV ran, or at least forked, but /dev/console didn't appear.

 Without a console it's difficult to figure out what happened, but
 since it's an nfs root you might be able to check the following:

    - did MAKEDEV get read? (that is, did its atime change?)
    - did /bin/sh get read?
    - did /dev get written to? (did its mtime change?)

 Also you might get further, or at least get more ability to see what's
 happening, by explicitly creating devices in the nfs root beforehand.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, dholland-bugs@NetBSD.org
Cc: port-cobalt-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
 netbsd-bugs@NetBSD.org
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Wed, 16 Oct 2013 00:27:24 +0900 (JST)

 From: David Holland <dholland-bugs@NetBSD.org>, Date: Sun, 13 Oct 2013 20:30:00 +0000 (UTC)

 > The following reply was made to PR port-cobalt/46170; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
 > Date: Sun, 13 Oct 2013 20:25:26 +0000
 > 
 >  On Sun, Mar 11, 2012 at 12:55:01AM +0000, ryoon@NetBSD.org wrote:
 >   > NetBSD/cobalt 6.0_BETA of 2012-03-10 does not boot properly.
 >   >   :
 >   > root file system type: nfs
 >   > warning: no /dev/console
 >   > pid 1(init): ABI set to O32 (e_flags=0x1007)
 >   > panic: init died (signal 0, exit 11)
 >  
 >  exit 11 from init means that it ran MAKEDEV to create /dev/console,
 >  and MAKEDEV ran, or at least forked, but /dev/console didn't appear.
 >  
 >  Without a console it's difficult to figure out what happened, but
 >  since it's an nfs root you might be able to check the following:
 >  
 >     - did MAKEDEV get read? (that is, did its atime change?)
 >     - did /bin/sh get read?
 >     - did /dev get written to? (did its mtime change?)
 >  
 >  Also you might get further, or at least get more ability to see what's
 >  happening, by explicitly creating devices in the nfs root beforehand.

 My custom Restore CD may be broken. And I cannot find old Restore CD image.
 I will setup tftp/NFS server and try again.

 Thank you.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Sat, 02 Nov 2013 21:31:14 +0900 (JST)

 From: Ryo ONODERA <ryo_on@yk.rim.or.jp>, Date: Wed, 16 Oct 2013 00:27:24 +0900 (JST)

 > From: David Holland <dholland-bugs@NetBSD.org>, Date: Sun, 13 Oct 2013 20:30:00 +0000 (UTC)
 > 
 >> The following reply was made to PR port-cobalt/46170; it has been noted by GNATS.
 >> 
 >> From: David Holland <dholland-bugs@netbsd.org>
 >> To: gnats-bugs@NetBSD.org
 >> Cc: 
 >> Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
 >> Date: Sun, 13 Oct 2013 20:25:26 +0000
 >> 
 >>  On Sun, Mar 11, 2012 at 12:55:01AM +0000, ryoon@NetBSD.org wrote:
 >>   > NetBSD/cobalt 6.0_BETA of 2012-03-10 does not boot properly.
 >>   >   :
 >>   > root file system type: nfs
 >>   > warning: no /dev/console
 >>   > pid 1(init): ABI set to O32 (e_flags=0x1007)
 >>   > panic: init died (signal 0, exit 11)
 >>  
 >>  exit 11 from init means that it ran MAKEDEV to create /dev/console,
 >>  and MAKEDEV ran, or at least forked, but /dev/console didn't appear.
 >>  
 >>  Without a console it's difficult to figure out what happened, but
 >>  since it's an nfs root you might be able to check the following:
 >>  
 >>     - did MAKEDEV get read? (that is, did its atime change?)
 >>     - did /bin/sh get read?
 >>     - did /dev get written to? (did its mtime change?)
 >>  
 >>  Also you might get further, or at least get more ability to see what's
 >>  happening, by explicitly creating devices in the nfs root beforehand.
 > 
 > My custom Restore CD may be broken. And I cannot find old Restore CD image.
 > I will setup tftp/NFS server and try again.

 I have made new restore cd image of 2013-09-01, and it has sane /dev/*.
 I have gotten the following endless error messages.

 As described in PR/48359, http://gnats.netbsd.org/48359,
 recent NetBSD/cobalt cannot boot.
 2013-09-01 is my latest working restore cd.


 Cobalt Microserver Diagnostics - 'We serve it, you surf it'
 Built Wed Mar  3 21:26:25 PST 1999

  1.LCD Test................................PASS
  2.Controller Test.........................PASS
  5.Bank 0:.................................64M
  6.Bank 1:.................................64M
  7.Bank 2:.................................64M
  8.Bank 3:.................................64M
  9.Serial Test.............................PASS
 10.PCI Expansion Slot....................**Unknown Card**
 12.IDE Test................................PASS
 13.Ethernet Test...........................PASS
 16.RTC Test................................PASS
 Decompressing  done
 Decompressing - done.

 >> NetBSD/cobalt 6.99.23 Bootloader, Revision 1.0 (Sun Nov  3 06:03:55 JST 2013) [@0x80f00000]
 >> Model:               Cobalt Qube 2
 >> Memory:              262144 k
 >> PROM boot string:    root=/dev/nfs nfsroot=/nfsroot nfsaddrs=bootp
 Boot [nfs:netbsd]:
 Loading: nfs:netbsd
 5065840+132944 [229472+230274]=0x565cf4
 Starting at 0x80001000

 pmap_steal_memory: seg 0: 0x566 0x566 0xfffe 0xfffe
 pmap_steal_memory: seg 0: 0x59c 0x59c 0xfffe 0xfffe
 pmap_steal_memory: seg 0: 0x59e 0x59e 0xfffe 0xfffe
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
     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 6.99.23 (GENERIC) #0: Sun Nov  3 06:13:44 JST 2013
         ryo_on@deuterium.ryoon.net:/usr/obj/cobalt/sys/arch/cobalt/compile/GENERIC
 Cobalt Qube 2
 total memory = 256 MB
 avail memory = 245 MB
 mainbus0 (root)
 com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
 com0: console
 cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 10.0
 cpu0: 48 TLB entries, 16MB max page size
 cpu0: 32KB/32B 2-way set-associative L1 instruction cache
 cpu0: 32KB/32B 2-way set-associative write-back L1 data cache
 mcclock0 at mainbus0 addr 0x10000070: mc146818 compatible time-of-day clock
 panel0 at mainbus0 addr 0x1f000000
 gt0 at mainbus0 addr 0x14000000
 pci0 at gt0
 pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
 tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp0: interrupting at level 1
 tlp0: Ethernet address 00:10:e0:00:5b:b3
 lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
 lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 pcib0 at pci0 dev 9 function 0
 pcib0: VIA Technologies VT82C586 PCI-ISA Bridge, rev 39
 viaide0 at pci0 dev 9 function 1
 viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
 viaide0: primary channel interrupting at irq 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel interrupting at irq 15
 atabus1 at viaide0 channel 1
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x02) at pci0 dev 9 function 2 not configured
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at pci0 dev 10 function 0 not configured
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at pci0 dev 10 function 1 not configured
 VIA Technologies VT8237 EHCI USB Controller (USB serial bus, interface 0x20, revision 0x62) at pci0 dev 10 function 2 not configured
 VIA Technologies VT6306 IEEE 1394 Host Controller (Firewire serial bus, interface 0x10, revision 0x46) at pci0 dev 10 function 3 not configured
 tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp1: interrupting at level 2
 tlp1: Ethernet address 00:10:e0:00:55:b6
 lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
 lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 wd0 at atabus0 drive 1
 wd0: <WDC WD1600AB-22DYA0>
 wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
 boot device: tlp0
 root on tlp0
 nfs_boot: trying DHCP/BOOTP
 nfs_boot: DHCP next-server: 10.0.0.254
 nfs_boot: my_domain=netbsd.org
 nfs_boot: my_addr=10.0.0.150
 nfs_boot: my_mask=255.0.0.0
 nfs_boot: gateway=10.0.0.254
 root on 10.0.0.254:/nfsroot
 root file system type: nfs
 pid 1(init): ABI set to O32 (e_flags=0x1007)
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 Process (pid 1) got sig 11
 (endless messages)

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Sat, 2 Nov 2013 18:09:23 +0000

 On Sat, Nov 02, 2013 at 01:50:00PM +0000, Ryo ONODERA wrote:
  >  root file system type: nfs
  >  pid 1(init): ABI set to O32 (e_flags=0x1007)
  >  Process (pid 1) got sig 11
  >  Process (pid 1) got sig 11
  >  [...]

 Blaaah...

 Is there any way to get it to print info about the signal 11, like in
 particular what the program counter was?

 Something like this patch might produce a bit more info; but if you
 have to burn a CD to try it, probably better to come up with a more
 complete patch that prints more info. (Such as, for example, a
 complete dump of the trapframe.)

 Index: sys/arch/mips/mips/trap.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/mips/mips/trap.c,v
 retrieving revision 1.235
 diff -u -p -r1.235 trap.c
 --- sys/arch/mips/mips/trap.c	19 Feb 2012 21:06:20 -0000	1.235
 +++ sys/arch/mips/mips/trap.c	2 Nov 2013 18:06:33 -0000
 @@ -469,6 +469,7 @@ trap(uint32_t status, uint32_t cause, va
  				ksi.ksi_code = SEGV_MAPERR;
  			}
  		}
 +		printf("signal %d: epc 0x%x\n", ksi.ksi_code, pc);
  		ksi.ksi_trap = type & ~T_USER;
  		ksi.ksi_addr = (void *)vaddr;
  		break; /* SIGNAL */

 -- 
 David A. Holland
 dholland@netbsd.org

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Sun, 03 Nov 2013 13:36:31 +0900 (JST)

 Hi,

 From: David Holland <dholland-bugs@NetBSD.org>, Date: Sat,  2 Nov 2013 18:10:01 +0000 (UTC)

 > The following reply was made to PR port-cobalt/46170; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
 > Date: Sat, 2 Nov 2013 18:09:23 +0000
 > 
 >  On Sat, Nov 02, 2013 at 01:50:00PM +0000, Ryo ONODERA wrote:
 >   >  root file system type: nfs
 >   >  pid 1(init): ABI set to O32 (e_flags=0x1007)
 >   >  Process (pid 1) got sig 11
 >   >  Process (pid 1) got sig 11
 >   >  [...]
 >  
 >  Blaaah...
 >  
 >  Is there any way to get it to print info about the signal 11, like in
 >  particular what the program counter was?
 >  
 >  Something like this patch might produce a bit more info; but if you
 >  have to burn a CD to try it, probably better to come up with a more
 >  complete patch that prints more info. (Such as, for example, a
 >  complete dump of the trapframe.)

 I use qemu to host cobalt restore cd, so I do not need to burn image into
 CD-R/RW.
 Any patches are welcome. I will try them.

 >  Index: sys/arch/mips/mips/trap.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/arch/mips/mips/trap.c,v
 >  retrieving revision 1.235
 >  diff -u -p -r1.235 trap.c
 >  --- sys/arch/mips/mips/trap.c	19 Feb 2012 21:06:20 -0000	1.235
 >  +++ sys/arch/mips/mips/trap.c	2 Nov 2013 18:06:33 -0000
 >  @@ -469,6 +469,7 @@ trap(uint32_t status, uint32_t cause, va
 >   				ksi.ksi_code = SEGV_MAPERR;
 >   			}
 >   		}
 >  +		printf("signal %d: epc 0x%x\n", ksi.ksi_code, pc);
 >   		ksi.ksi_trap = type & ~T_USER;
 >   		ksi.ksi_addr = (void *)vaddr;
 >   		break; /* SIGNAL */
 >  

 With this patch I have gotten following log.


 Cobalt Microserver Diagnostics - 'We serve it, you surf it'
 Built Wed Mar  3 21:26:25 PST 1999

  1.LCD Test................................PASS
  2.Controller Test.........................PASS
  5.Bank 0:.................................64M
  6.Bank 1:.................................64M
  7.Bank 2:.................................64M
  8.Bank 3:.................................64M
  9.Serial Test.............................PASS
 10.PCI Expansion Slot....................**Unknown Card**
 12.IDE Test................................PASS
 13.Ethernet Test...........................PASS
 16.RTC Test................................PASS
 Decompressing  done
 Decompressing - done.

 >> NetBSD/cobalt 6.99.23 Bootloader, Revision 1.0 (Sun Nov  3 06:03:55 JST 2013) [@0x80f00000]
 >> Model:               Cobalt Qube 2
 >> Memory:              262144 k
 >> PROM boot string:    root=/dev/nfs nfsroot=/nfsroot nfsaddrs=bootp
 Boot [nfs:netbsd]:
 Loading: nfs:netbsd
 5067376+132944 [229520+230376]=0x566388
 Starting at 0x80001000

 pmap_steal_memory: seg 0: 0x567 0x567 0xfffe 0xfffe
 pmap_steal_memory: seg 0: 0x59d 0x59d 0xfffe 0xfffe
 pmap_steal_memory: seg 0: 0x59f 0x59f 0xfffe 0xfffe
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
     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 6.99.25 (GENERIC) #2: Sun Nov  3 22:03:46 JST 2013
         ryo_on@deuterium.ryoon.net:/usr/obj/cobalt/sys/arch/cobalt/compile/GENERIC
 Cobalt Qube 2
 total memory = 256 MB
 avail memory = 245 MB
 mainbus0 (root)
 com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
 com0: console
 cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 10.0
 cpu0: 48 TLB entries, 16MB max page size
 cpu0: 32KB/32B 2-way set-associative L1 instruction cache
 cpu0: 32KB/32B 2-way set-associative write-back L1 data cache
 mcclock0 at mainbus0 addr 0x10000070: mc146818 compatible time-of-day clock
 panel0 at mainbus0 addr 0x1f000000
 gt0 at mainbus0 addr 0x14000000
 pci0 at gt0
 pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
 tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp0: interrupting at level 1
 tlp0: Ethernet address 00:10:e0:00:5b:b3
 lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
 lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 pcib0 at pci0 dev 9 function 0
 pcib0: VIA Technologies VT82C586 PCI-ISA Bridge, rev 39
 viaide0 at pci0 dev 9 function 1
 viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
 viaide0: primary channel interrupting at irq 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel interrupting at irq 15
 atabus1 at viaide0 channel 1
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x02) at pci0 dev 9 function 2 not configured
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at pci0 dev 10 function 0 not configured
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at pci0 dev 10 function 1 not configured
 VIA Technologies VT8237 EHCI USB Controller (USB serial bus, interface 0x20, revision 0x62) at pci0 dev 10 function 2 not configured
 VIA Technologies VT6306 IEEE 1394 Host Controller (Firewire serial bus, interface 0x10, revision 0x46) at pci0 dev 10 function 3 not configured
 tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp1: interrupting at level 2
 tlp1: Ethernet address 00:10:e0:00:55:b6
 lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
 lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 wd0 at atabus0 drive 1
 wd0: <WDC WD1600AB-22DYA0>
 wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
 boot device: tlp0
 root on tlp0
 nfs_boot: trying DHCP/BOOTP
 nfs_boot: DHCP next-server: 10.0.0.254
 nfs_boot: my_domain=netbsd.org
 nfs_boot: my_addr=10.0.0.150
 nfs_boot: my_mask=255.0.0.0
 nfs_boot: gateway=10.0.0.254
 root on 10.0.0.254:/nfsroot
 root file system type: nfs
 pid 1(init): ABI set to O32 (e_flags=0x1007)
 signal 1: epc 0x401304
 Process (pid 1) got sig 11
 signal 1: epc 0x401304
 Process (pid 1) got sig 11
 signal 1: epc 0x401304
 Process (pid 1) got sig 11
 (endless messages)

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Tue, 5 Nov 2013 06:12:17 +0000

 On Sun, Nov 03, 2013 at 04:40:00AM +0000, Ryo ONODERA wrote:
  >  I use qemu to host cobalt restore cd, so I do not need to burn image into
  >  CD-R/RW.
  >  Any patches are welcome. I will try them.

 ok excellent :-)

  >  With this patch I have gotten following log.
  >    :
  >  root file system type: nfs
  >  pid 1(init): ABI set to O32 (e_flags=0x1007)
  >  signal 1: epc 0x401304
  >  Process (pid 1) got sig 11
  >  signal 1: epc 0x401304
  >  Process (pid 1) got sig 11

 Can you disassemble init and find out what's at 0x401304? Or actually,
 if you like, just mail me the init binary (outside of gnats) and I'll
 look into it.

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Mon, 9 Dec 2013 04:12:15 +0000

 On Tue, Nov 05, 2013 at 06:15:00AM +0000, David Holland wrote:
  >   >  With this patch I have gotten following log.
  >   >    :
  >   >  root file system type: nfs
  >   >  pid 1(init): ABI set to O32 (e_flags=0x1007)
  >   >  signal 1: epc 0x401304
  >   >  Process (pid 1) got sig 11
  >   >  signal 1: epc 0x401304
  >   >  Process (pid 1) got sig 11
  >  
  >  Can you disassemble init and find out what's at 0x401304? Or actually,
  >  if you like, just mail me the init binary (outside of gnats) and I'll
  >  look into it.

 Please try again with today's current, including particularly version
 1.3 of lib/csu/arch/mips/crt0.S.

 It has been, um, wrong.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 10 Dec 2013 03:37:47 +0000
State-Changed-Why:
so we don't forget


From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46170: NetBSD/cobalt 6.0_BETA does not boot
Date: Sat, 25 Jan 2014 00:44:13 +0900 (JST)

 Hi,

 Recent NetBSD/cobalt (32bit) 6.99.* boots on my Cobalt Qube 2.
 But it is unstable. I have confirmed 2014-01-14 and 2014-01-23.

 Sometimes random command generates illegal instruction, segfault
 and bus error, tar(1) silently dies, postfix utility does not work properly,
 dhcpcd cannot get IP address etc.

 I will keep watch NetBSD/cobalt 6.99.*.



 Cobalt Microserver Diagnostics - 'We serve it, you surf it'
 Built Wed Mar  3 21:26:25 PST 1999

  1.LCD Test..............................**NOT FOUND**
  2.Controller Test.........................PASS
  5.Bank 0:.................................64M
  6.Bank 1:.................................64M
  7.Bank 2:.................................64M
  8.Bank 3:.................................64M
  9.Serial Test.............................PASS
 10.PCI Expansion Slot....................**Unknown Card**
 12.IDE Test................................PASS
 13.Ethernet Test...........................PASS
 16.RTC Test................................PASS
 BOOTLOADER: trying to boot from partition /dev/hda1
 Decompressing  done
 Decompressing  done.

 >> NetBSD/cobalt 6.99.30 Bootloader, Revision 1.0 (Thu Jan 23 22:48:07 UTC 2014) [@0x80f00000]
 >> Model:               Cobalt Qube 2
 >> Memory:              262144 k
 >> PROM boot string:    root=/dev/hda1 ro
 Boot [wd0a:netbsd]:
 Loading: wd0a:netbsd
 5078544+133040 [230944+231957]=0x569b48
 Starting at 0x80001000

 pmap_steal_memory: seg 0: 0x56a 0x56a 0xfffe 0xfffe
 pmap_steal_memory: seg 0: 0x5a0 0x5a0 0xfffe 0xfffe
 pmap_steal_memory: seg 0: 0x5a2 0x5a2 0xfffe 0xfffe
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
     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 6.99.30 (GENERIC) #0: Thu Jan 23 22:56:22 UTC 2014
         ryo_on@bismuth.elements.tetera.org:/usr/obj/cobelt-current/sys/arch/cobalt/compile/GENERIC
 Cobalt Qube 2
 total memory = 256 MB
 avail memory = 245 MB
 mainbus0 (root)
 com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
 com0: console
 cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 10.0
 cpu0: 48 TLB entries, 16MB max page size
 cpu0: 32KB/32B 2-way set-associative L1 instruction cache
 cpu0: 32KB/32B 2-way set-associative write-back L1 data cache
 mcclock0 at mainbus0 addr 0x10000070: mc146818 compatible time-of-day clock
 panel0 at mainbus0 addr 0x1f000000
 gt0 at mainbus0 addr 0x14000000
 pci0 at gt0
 pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
 tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp0: interrupting at level 1
 tlp0: Ethernet address 00:10:e0:00:5b:b3
 lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
 lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 pcib0 at pci0 dev 9 function 0
 pcib0: VIA Technologies VT82C586 PCI-ISA Bridge, rev 39
 viaide0 at pci0 dev 9 function 1
 viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
 viaide0: primary channel interrupting at irq 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel interrupting at irq 15
 atabus1 at viaide0 channel 1
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x02) at pci0 dev 9 function 2 not configured
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at pci0 dev 10 function 0 not configured
 VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at pci0 dev 10 function 1 not configured
 VIA Technologies VT8237 EHCI USB Controller (USB serial bus, interface 0x20, revision 0x62) at pci0 dev 10 function 2 not configured
 VIA Technologies VT6306 IEEE 1394 Host Controller (Firewire serial bus, interface 0x10, revision 0x46) at pci0 dev 10 function 3 not configured
 tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp1: interrupting at level 2
 tlp1: Ethernet address 00:10:e0:00:55:b6
 lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
 lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 wd0 at atabus0 drive 0
 wd0: <IC35L090AVV207-0>
 wd0: 76293 MB, 155009 cyl, 16 head, 63 sec, 512 bytes/sect x 156250000 sectors
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 pid 1(init): ABI set to O32 (e_flags=0x1007)
 Fri Jan 24 15:35:36 UTC 2014
 Starting root file system check:
 /dev/rwd0a: file system is clean; not checking
 swapctl: adding /dev/wd0b as swap device at priority 0
 Starting file system checks:
 random_seed: /var/db/entropy-file: Not present
 Setting tty flags.
 Setting sysctl variables:
 ddb.onpanic: 1 -> 0
 Starting network.
 Hostname: mercury.elements.tetera.org
 IPv6 mode: host
 Configuring network interfaces:.
 Adding interface aliases:.
 Waiting for DAD completion for statically configured addresses...
 Building databases: dev, utmp, utmpx.
 Starting syslogd.
 Mounting all filesystems...
 Clearing temporary files.
 Checking quotas: done.
 Setting securelevel: kern.securelevel: 0 -> 1
 Starting virecover.
 Checking for core dump...
 savecore: no core dump
 Starting local daemons:.
 Updating motd.
 postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
 /usr/bin/newaliases: Shared object has no run-time symbol table
 /etc/rc.d/postfix exited with code 1
 Starting inetd.
 Starting cron.
 The following components reported failures:
     /etc/rc.d/postfix
 See /var/run/rc.log for more information.
 Fri Jan 24 15:35:58 UTC 2014

 NetBSD/cobalt (mercury.elements.tetera.org) (tty00)

 login: Jan 24 15:36:00 mercury getty[349]: /dev/ttyZ0: Device not configured

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46170 CVS commit: src/sys/arch/mips/mips
Date: Wed, 23 Apr 2014 20:57:16 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Wed Apr 23 20:57:15 UTC 2014

 Modified Files:
 	src/sys/arch/mips/mips: pmap.c vm_machdep.c

 Log Message:
 Fix a logic inversion introduced with the matt-nb5-mips64 for
 pmap_{zero,copy}_page cache alias handing. The check previously used
 PG_MD_UNCACHED_P, where it now uses PG_MD_CACHED_P, when considering if
 a cache invalidation is required.

 Additionally flush the cache for the uarea va to avoid potential (future)
 cache aliases in cpu_uarea_free when handing pages back to uvm for later
 use.

 ok matt@

 Hopefully this addresses the instability reported in the following PRs:

 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46170 - NetBSD/cobalt 6.0_BETA does not boot
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead


 To generate a diff of this commit:
 cvs rdiff -u -r1.209 -r1.210 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.142 -r1.143 src/sys/arch/mips/mips/vm_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 26 Apr 2014 05:39:09 +0000
State-Changed-Why:
feedback received; this particular problem was fixed


From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46170 CVS commit: [netbsd-6] src/sys/arch/mips/mips
Date: Wed, 21 May 2014 20:39:17 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Wed May 21 20:39:17 UTC 2014

 Modified Files:
 	src/sys/arch/mips/mips [netbsd-6]: pmap.c vm_machdep.c

 Log Message:
 Pull up following revision(s) (requested by skrll in ticket #1056):
 	sys/arch/mips/mips/pmap.c: revision 1.211
 	sys/arch/mips/mips/pmap.c: revision 1.212
 	sys/arch/mips/mips/pmap.c: revision 1.213
 	sys/arch/mips/mips/vm_machdep.c: revision 1.143
 	sys/arch/mips/mips/pmap.c: revision 1.210
 Fix a logic inversion introduced with the matt-nb5-mips64 for
 pmap_{zero,copy}_page cache alias handing. The check previously used
 PG_MD_UNCACHED_P, where it now uses PG_MD_CACHED_P, when considering if
 a cache invalidation is required.
 Additionally flush the cache for the uarea va to avoid potential (future)
 cache aliases in cpu_uarea_free when handing pages back to uvm for later
 use.
 ok matt@
 Hopefully this addresses the instability reported in the following PRs:
 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46170 - NetBSD/cobalt 6.0_BETA does not boot
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead
 Grab pv_list lock in pmap_unmap_ephemeral_page only when needed.
 Make PARANOIADIAG compile.
 Use pmap_tlb_asid_check to reduce code c&p.


 To generate a diff of this commit:
 cvs rdiff -u -r1.207.2.1 -r1.207.2.2 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.141 -r1.141.8.1 src/sys/arch/mips/mips/vm_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.