From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tvesnat.televes.com (unknown [212.163.42.137]) by ozlabs.org (Postfix) with ESMTP id BBDCE679F6 for ; Fri, 21 Apr 2006 18:23:50 +1000 (EST) Message-ID: <1145615613.4448b4fdd6052@webmail.televes.com:443> Date: Fri, 21 Apr 2006 12:33:33 +0200 From: Bastos Fernandez Alexandre To: linuxppc-embedded list Subject: RE: Watchdog on MPC82xx [SOLVED] References: <1145528816.444761f0a9962@webmail.televes.com:443> In-Reply-To: <1145528816.444761f0a9962@webmail.televes.com:443> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, As suggested by Rune, problem was concerning to the RTC on time_init(). As I don't have a RTC on the board, the solution for me was setting the ppc_md.get_rtc_time to NULL, which prevents time_init() from doing the loop which tries to set the next second boundary. So void __init m82xx_board_setup(void) { [...] ppc_md.get_rtc_time = NULL; ppc_md.set_rtc_time = NULL; } Thanks to all. Alex BASTOS > Rune, > > > On our 8265/8280 board, the max timeout of the watchdog timer was ~1.3 > > seconds, so it kept resetting before the heartbeat function got called > > on boot. > > > > I had to add a watchdog reset to time_init() because it woud pause there > > for about 2 secondfs trying to see if there was a realtime clock. > > > > I think that you are OK. Using the while(1) test suggested by Paul Bilke, > I could verify that time_init() is the cause for the reset. In fact, I have > no RTC on my board (so I suppose the delay looking for it will be maximum). > > Thanks > > Alex Bastos