From owner-freebsd-arm@FreeBSD.ORG Tue Oct 22 06:05:26 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0F940769 for ; Tue, 22 Oct 2013 06:05:26 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B2D51207A for ; Tue, 22 Oct 2013 06:05:25 +0000 (UTC) Received: from [207.81.161.55] (helo=[192.168.1.66]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1VYUSj-0003eu-EA; Mon, 21 Oct 2013 22:25:03 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: raspberry pi BCM2708 hardware watchdog From: Oleksandr Tymoshenko In-Reply-To: <43584768717.406e8ebb@mail.schwarzes.net> Date: Mon, 21 Oct 2013 22:24:43 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <43584768717.406e8ebb@mail.schwarzes.net> To: Andreas Schwarz X-Mailer: Apple Mail (2.1510) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2013-10-20, at 4:42 PM, Andreas Schwarz wrote: > > Hi, > > the BCM2708 SoC contain a hardware watchdog, using it, would be a good solution > for the people which are running a remote rpi 24/7 to avoid these sudden system > freezes. > > The watchdog (bcmwd0) is found when booting, but I'm not able to use it with the > watchdogd (which is using /dev/fido to communicate with the watchdog). Seems > that something is still missing. Any ideas? > > root@pizelot:~ # dmesg | grep Watchdog > bcmwd0: mem 0x2010001c-0x20100027 on simplebus0 > > root@pizelot:~ # /etc/rc.d/watchdogd start > Starting watchdogd. > watchdogd: watchdog_patpat failed: Operation not supported > watchdogd: patting the dog: Operation not supported > /etc/rc.d/watchdogd: WARNING: failed to start watchdogd [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: strcmp.org] Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 06:05:26 -0000 On 2013-10-20, at 4:42 PM, Andreas Schwarz = wrote: >=20 > Hi, >=20 > the BCM2708 SoC contain a hardware watchdog, using it, would be a good = solution > for the people which are running a remote rpi 24/7 to avoid these = sudden system=20 > freezes. >=20 > The watchdog (bcmwd0) is found when booting, but I'm not able to use = it with the=20 > watchdogd (which is using /dev/fido to communicate with the watchdog). = Seems > that something is still missing. Any ideas? >=20 > root@pizelot:~ # dmesg | grep Watchdog > bcmwd0: mem 0x2010001c-0x20100027 on = simplebus0 >=20 > root@pizelot:~ # /etc/rc.d/watchdogd start > Starting watchdogd. > watchdogd: watchdog_patpat failed: Operation not supported > watchdogd: patting the dog: Operation not supported > /etc/rc.d/watchdogd: WARNING: failed to start watchdogd Watchdog was used for rebooting device only. I've just committed = support for=20 actual watchdog function: = http://svnweb.freebsd.org/changeset/base/256871