Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:odroid_linux_watchdog [2015/10/27 11:52] moon.linux [Test Watchdog module] |
en:odroid_linux_watchdog [2022/01/02 22:39] (current) |
||
---|---|---|---|
Line 23: | Line 23: | ||
===== Test Watchdog module ===== | ===== Test Watchdog module ===== | ||
<WRAP center round important 100%> | <WRAP center round important 100%> | ||
- | Watchdog driver s3c2410_wdt is configurable for Odroid U3/XU3/XU4. | + | Watchdog driver s3c2410_wdt is configurable for Odroid XU3/XU4. |
</WRAP> | </WRAP> | ||
<code> | <code> | ||
Line 59: | Line 59: | ||
sudo mkdir -p /var/log/watchdog | sudo mkdir -p /var/log/watchdog | ||
</code> | </code> | ||
- | ===== Watchdog demon configuration files ===== | ||
- | **Note: that Watchdog drivers should not be loaded automatically, but only if a watchdog daemon is installed. Unless watchdog will activate during boot and system will restart.** | ||
- | |||
- | In order to activate the watchdog driver, remove or comment out the line of the driver name. For ODROID-XU3 or ODROID-XU4, the driver name is **s3c2410_wdt**. | ||
+ | Remove the watchdog module from black list. | ||
+ | **/etc/modprobe.d/blacklist-watchdog.conf** | ||
<code> | <code> | ||
- | $ cat /etc/modprobe.d/blacklist-watchdog.conf | + | #blacklist s3c2410_wdt |
- | blacklist pc87413_wdt | + | |
- | blacklist pcwd | + | |
- | blacklist pcwd_pci | + | |
- | blacklist pcwd_usb | + | |
- | # blacklist s3c2410_wdt | + | |
- | blacklist sa1100_wdt | + | |
- | blacklist sbc60xxwdt | + | |
- | blacklist sbc7240_wdt | + | |
- | blacklist sb8360 | + | |
- | blacklist sc1200wdt | + | |
</code> | </code> | ||
+ | Append the default watchdog configuration. | ||
+ | **/etc/default/watchdog** | ||
<code> | <code> | ||
# Start watchdog at boot time? 0 or 1 | # Start watchdog at boot time? 0 or 1 | ||
Line 84: | Line 74: | ||
run_wd_keepalive=1 | run_wd_keepalive=1 | ||
# Load module before starting watchdog | # Load module before starting watchdog | ||
- | watchdog_module="s3c2410_wdt" | + | watchdog_module=s3c2410_wdt |
# Specify additional watchdog options here (see manpage). | # Specify additional watchdog options here (see manpage). | ||
watchdog_options="-s -v -c /etc/watchdog.conf" | watchdog_options="-s -v -c /etc/watchdog.conf" | ||
- | # Set run_wd_keepalive to 1 to start wd_keepalive after stopping watchdog or 0 | + | |
- | # to disable it. Running it is the default. | + | |
- | run_wd_keepalive=1 | + | |
</code> | </code> | ||
+ | |||
+ | ===== Watchdog demon configuration files ===== | ||
+ | **Note: Watchdog drivers start automatically as it's buildin, but only if a watchdog daemon to configure the times.** | ||
You need to edit the **/etc/watchdog.conf** file to un-comment and so actually use the **/dev/watchdog** device access to the module. Otherwise the watchdog will not use the hardware and rely only on its internal code to soft-reboot a broken machine | You need to edit the **/etc/watchdog.conf** file to un-comment and so actually use the **/dev/watchdog** device access to the module. Otherwise the watchdog will not use the hardware and rely only on its internal code to soft-reboot a broken machine | ||
Line 133: | Line 124: | ||
# This greatly decreases the chance that watchdog won't be scheduled before | # This greatly decreases the chance that watchdog won't be scheduled before | ||
# your machine is really loaded | # your machine is really loaded | ||
- | realtime = yes | + | #realtime = yes |
- | priority = 1 | + | #priority = 1 |
# Check if rsyslogd is still running by enabling the following line | # Check if rsyslogd is still running by enabling the following line |