Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: pmeslin on February 01, 2015, 08:10:36 AM

Title: watchdog daemon?
Post by: pmeslin on February 01, 2015, 08:10:36 AM
Using the latest 6.0 release, I have no problem loading the bcm2708_wdog module but can't seem to find the watchdog daemon (or its configuration file) anywhere on the system or in tce-ab.

Seems that busybox can include a watchdog daemon applet but the build present in piCore 6.0 doesn't?

Is the daemon necessary for the watchdog to work or has something been hardcoded for it?
Title: Re: watchdog daemon?
Post by: bmarkus on February 01, 2015, 02:23:33 PM
watchdog starts working when /dev/watchdog opened and restarts system after 10 seconds if not opened again. It means that it must be opened in every less than 10 seconds. It can be done by a generic watchdog daemon, like watchdog.tcz in the repo or dedicated programs, applications with built-on watchdog handling.
Title: Re: watchdog daemon?
Post by: Lee on February 01, 2015, 03:17:28 PM
Hmmm... on Core 4.7.7 on x86, the timeout seems to be one minute.  Is there some simple way to change the timeout interval?

Not that it's going to be all that useful on my PC... I'm just playing around with it.
Title: Re: watchdog daemon?
Post by: pmeslin on February 01, 2015, 04:40:32 PM
bmarkus >> Thanks, that watchdog.tcz package wasn't actually there when I posted.

Lee >> You can most likely change the timeout interval as a parameter to pass when the module is loaded (or a kernel command line parameter if the watchdog module is built-in).

Title: Re: watchdog daemon?
Post by: bmarkus on February 01, 2015, 04:47:13 PM
bmarkus >> Thanks, that watchdog.tcz package wasn't actually there when I posted.


True, just added it.
Title: Re: watchdog daemon?
Post by: pmeslin on February 01, 2015, 05:44:32 PM
True, just added it.

I can confirm it works beautifully after proper configuration. Even handles the built-in temperature sensor just fine. Thanks for adding the module!
Title: Re: watchdog daemon?
Post by: bmarkus on February 01, 2015, 06:09:28 PM
Thanks for the feedback :)