NetBSD Problem Report #50373

From www@NetBSD.org  Tue Oct 27 23:45:26 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5A131A57FE
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Oct 2015 23:45:26 +0000 (UTC)
Message-Id: <20151027234525.33967A65BB@mollari.NetBSD.org>
Date: Tue, 27 Oct 2015 23:45:25 +0000 (UTC)
From: David.S.Alessio@gmail.com
Reply-To: David.S.Alessio@gmail.com
To: gnats-bugs@NetBSD.org
Subject: netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
X-Send-Pr-Version: www-1.0

>Number:         50373
>Category:       port-arm32
>Synopsis:       netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-arm32-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 27 23:50:00 +0000 2015
>Closed-Date:    Sun Aug 18 09:53:21 +0000 2019
>Last-Modified:  Sun Aug 18 09:53:21 +0000 2019
>Originator:     David S. Alessio
>Release:        7.0, 7.99.21
>Organization:
>Environment:
NetBSD  7.99.21 NetBSD 7.99.21 (MYKERNEL) #0: Tue Oct 27 15:46:44 PDT 2015  root@netbsd-xen.hsd1.ca.comcast.net:/usr/obj/sys/arch/evbarm/compile/MYKERNEL evbarm

>Description:
the 7.0 release netbsd kernel boots on a BeagleBoneBlack but then resets (with no message) after about 50 seconds (measured from start of boot).
>How-To-Repeat:
Just boot kernel on BBB.  It's easiest to NFS boot a kernel using BBB's uboot:

    # setenv ipaddr 192.168.1.59
    # setenv serverip 192.168.1.4
    # tftpboot 82000000 netbsd.gz.ub
    # bootm

start timer (t = 0 sec).

When prompted for a root device, enter cpsw0 to boot with nfsroot, or enter ddb and poke around for a few seconds.  In either case BBB reboots without warning at t=50 seconds.
>Fix:
Unknown.

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
Date: Wed, 28 Oct 2015 08:53:19 +0100

 On Tue, Oct 27, 2015 at 11:50:00PM +0000, David.S.Alessio@gmail.com wrote:
 > start timer (t = 0 sec).
 > 
 > When prompted for a root device, enter cpsw0 to boot with nfsroot, or enter ddb and poke around for a few seconds.  In either case BBB reboots without warning at t=50 seconds.

 Which watchdog devices show up in dmesg?

 You can check with

   wdogctl

 at the shell prompt.

 Martin


From: "David S. Alessio" <david.s.alessio@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: port-arm32-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
Date: Wed, 28 Oct 2015 08:29:25 -0700

 --Apple-Mail=_AE4C829B-CE15-4C82-8F23-545CEB568D2B
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=us-ascii


 > On Oct 28, 2015, at 12:55 AM, Martin Husemann <martin@duskware.de> =
 wrote:
 >=20
 > The following reply was made to PR port-arm32/50373; it has been noted =
 by GNATS.
 >=20
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:=20
 > Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) reboot on =
 BeagleBone Black 50 sec after boot.
 > Date: Wed, 28 Oct 2015 08:53:19 +0100
 >=20
 > On Tue, Oct 27, 2015 at 11:50:00PM +0000, David.S.Alessio@gmail.com =
 wrote:
 >> start timer (t =3D 0 sec).
 >>=20
 >> When prompted for a root device, enter cpsw0 to boot with nfsroot, or =
 enter ddb and poke around for a few seconds.  In either case BBB reboots =
 without warning at t=3D50 seconds.
 >=20
 > Which watchdog devices show up in dmesg?
 >=20
 > You can check with
 >=20
 >   wdogctl
 >=20
 > at the shell prompt.
 >=20
 > Martin

 Martin, thanks for the quick reply.

 # wdogctl
 Available watchdog timers:
         omapwdt32k0, 4 second period


 --Apple-Mail=_AE4C829B-CE15-4C82-8F23-545CEB568D2B
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/html;
 	charset=us-ascii

 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
 charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
 -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
 class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
 class=3D"">On Oct 28, 2015, at 12:55 AM, Martin Husemann &lt;<a =
 href=3D"mailto:martin@duskware.de" class=3D"">martin@duskware.de</a>&gt; =
 wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
 class=3D"">The following reply was made to PR port-arm32/50373; it has =
 been noted by GNATS.<br class=3D""><br class=3D"">From: Martin Husemann =
 &lt;<a href=3D"mailto:martin@duskware.de" =
 class=3D"">martin@duskware.de</a>&gt;<br class=3D"">To: <a =
 href=3D"mailto:gnats-bugs@netbsd.org" =
 class=3D"">gnats-bugs@NetBSD.org</a><br class=3D"">Cc: <br =
 class=3D"">Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) =
 reboot on BeagleBone Black 50 sec after boot.<br class=3D"">Date: Wed, =
 28 Oct 2015 08:53:19 +0100<br class=3D""><br class=3D""> On Tue, Oct 27, =
 2015 at 11:50:00PM +0000, <a href=3D"mailto:David.S.Alessio@gmail.com" =
 class=3D"">David.S.Alessio@gmail.com</a> wrote:<br class=3D""><blockquote =
 type=3D"cite" class=3D"">start timer (t =3D 0 sec).<br class=3D""><br =
 class=3D"">When prompted for a root device, enter cpsw0 to boot with =
 nfsroot, or enter ddb and poke around for a few seconds. &nbsp;In either =
 case BBB reboots without warning at t=3D50 seconds.<br =
 class=3D""></blockquote><br class=3D""> Which watchdog devices show up =
 in dmesg?<br class=3D""><br class=3D""> You can check with<br =
 class=3D""><br class=3D""> &nbsp;&nbsp;wdogctl<br class=3D""><br =
 class=3D""> at the shell prompt.<br class=3D""><br class=3D""> Martin<br =
 class=3D""></div></div></blockquote><br class=3D""></div><div>Martin, =
 thanks for the quick reply.</div><div><br class=3D""></div><div><div =
 style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
 Menlo; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" =
 class=3D""># wdogctl</div><div style=3D"margin: 0px; font-size: 11px; =
 line-height: normal; font-family: Menlo; color: rgb(191, 191, 191); =
 background-color: rgb(0, 0, 0);" class=3D"">Available watchdog =
 timers:</div><div style=3D"margin: 0px; font-size: 11px; line-height: =
 normal; font-family: Menlo; color: rgb(191, 191, 191); background-color: =
 rgb(0, 0, 0);" class=3D""><span style=3D"font-variant-ligatures: =
 no-common-ligatures; color: #000000" class=3D"">&nbsp; &nbsp; &nbsp; =
 &nbsp; </span>omapwdt32k0, 4 second period</div><div class=3D""><br =
 class=3D""></div></div></body></html>=

 --Apple-Mail=_AE4C829B-CE15-4C82-8F23-545CEB568D2B--

From: Martin Husemann <martin@duskware.de>
To: "David S. Alessio" <david.s.alessio@gmail.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
Date: Wed, 28 Oct 2015 16:42:04 +0100

 Can you please try:

 	wdogctl -u omapwdt32k0

 at the shell prompt and then wait 50 seconds?

 Martin

From: "David S. Alessio" <david.s.alessio@gmail.com>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
Date: Wed, 28 Oct 2015 08:56:59 -0700

 > On Oct 28, 2015, at 8:42 AM, Martin Husemann <martin@duskware.de> =
 wrote:
 >=20
 > Can you please try:
 >=20
 > 	wdogctl -u omapwdt32k0
 >=20
 > at the shell prompt and then wait 50 seconds?
 >=20

 Super!  That=E2=80=99s the fix.

 What=E2=80=99s the =E2=80=9Cright=E2=80=9D thing to do?  Add this to =
 rc.local?

 Thanks again.
 -david=

From: Martin Husemann <martin@duskware.de>
To: "David S. Alessio" <david.s.alessio@gmail.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-arm32/50373: netbsd 7.0 (and CVS head) reboot on BeagleBone Black 50 sec after boot.
Date: Wed, 28 Oct 2015 17:00:40 +0100

 On Wed, Oct 28, 2015 at 08:56:59AM -0700, David S. Alessio wrote:
 > Super!  That?s the fix.

 No, just a test to verify that it is actually the firing watchdog
 that kills it.

 Fix should be in the kernel driver to disarm the chip at attach time,
 or switch it to kernel tick mode.

 As a simple workaround, you can add it to rc.conf, like:

 	wdogctl=YES wdogctl_flags="-u omapwdt32k0"


 Martin

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 18 Aug 2019 09:53:21 +0000
State-Changed-Why:
Another BBB owner (sevan) states it works fine with 8.0, although -current has other issues.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.