From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 4 02:45:22 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 194FA37B401 for ; Fri, 4 Jul 2003 02:45:22 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D75AF43FF2 for ; Fri, 4 Jul 2003 02:45:20 -0700 (PDT) (envelope-from mb@imp.ch) Received: from cvs.imp.ch (cvs.imp.ch [157.161.4.9]) by mail.imp.ch (8.12.6p2/8.12.3) with ESMTP id h649jHIr031979; Fri, 4 Jul 2003 11:45:18 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Date: Fri, 4 Jul 2003 11:45:17 +0200 (CEST) From: Martin Blapp To: Andreas Heil Message-ID: <20030704112923.I99317@cvs.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Driver vor Watchdog X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 09:45:22 -0000 Hi, >I'm currently developing a driver for this watchdog-card: > 'Antrax WatchCard PCI' -> http://www.antrax.de/ (German) >(btw. Antrax != Anthrax) > >And now I have some questions: > >- Should I develop the driver for 4.x or 5.x or both? Cool ! That depends where do you plan to use it. I suppose that you only develop a 5.x version if you don't need to run it yourself on 4.x >- What would be the preferred method for configuring and handling the card? > a: using a kernel module for triggering and sysctl for config? > (this method is preferred by me) > b: a daemon that handles all of that? > c: a tool which could be run by cron or the like? a of course. b and c don't make any sense, only for debugging purposes of the saved memory, see below. >- Are there any quirks I should take care of? > > The card uses a PITA-2 (PSB4610) from Infineon as PCI-Controller and has an > optional sensor for system temperature. >From the documentation: ># the last state of the main program (kernel) before the watchdog card > triggered is saved on the card and can be read after booting. (With this > help you can find out the source of the deadlock or crash of your system) > ># the last reset-reason ('normal' power-ON, manual reset due a user- or > failure reset, a reset triggered trough the watchdog card) can be read out. A tool to debug these would be neat here ... Or a sysctl to read the latter ... Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 61 826 93 00 Fax: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------