
Hi,
I enabled the watchdog both in u-boot and in Linux and it worked fine. Linux rebooted itself after printing a warning message on the console. Thanks.
One thing I don't understand form the watchdog driver documentation.
In open-only mode, the watchdog will not expire if the device file is not
opened by any process, while in
always mode the behavior is independent of the device file being opened.
How can you set open only mode without opening /dev/watchdog?
Could anybody direct me to an example of a simple watchdog application using the regular API?
regards
Shlomo Kut
Software Engineer MKS Instruments Tenta Products Tel: 972-8-9181015 Fax: 972-8-9181020 www.mksinst.com
Wolfgang Denk wd@denx.de Sent by: wd@denx.de 03/03/2004 01:54 AM
To: Shlomo_Kut@mksinst.com cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Enabling watchdog for MPC850
Hello,
in message OF711943DA.EE1C86A3-ON42256E4C.0033BE6B-08256E4C.0033E9D8@mksinternal.com you wrote:
Please define "crash". Does the board simply reset (like after a watchdog timeout), or is there any error message, or what?
The board simply resets.
Then this is just the normal watchdog reset.
You always have to configure both sides to match, i. e. if you enable the watchdog in U-Boot you must do so in Linux, and if you don;t enable it in U-Boot you must not enable it in Linux (althought in that case you will not crash the system).
How do I enable it in Linux?
Select "CONFIG_WATCHDOG=y" and "CONFIG_WDT_MPC8XX=y".
Best regards,
Wolfgang Denk