GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
The hardware watchdog device on SANTAROis capable to execute a hardware reset when not triggered in time.
The device node for the hardware watchdog is
/dev/watchdog
.
The watchdog service is able to monitor different system parameters, like the system load, and can take different
actions if any system parameter is out of a defined range. Those repair actions can be simple cleanup scripts or
the execution of a reboot or shutdown.
The service opens the hardware watchdog and triggers it regularly. When the service chrashes or the execution
of a repair script fails, the hardware watchdog isn’t triggered in time and a hardware reset will be executed.
The default state of the service is
disabled
.
The service can be started by executing:
root@santaro:~# /etc/init.d/watchdog.sh start
To start the service automatically on startup, create the startup links with:
root@santaro:~# update-rc.d
watchdog.sh defaults
The watchdog service is configured using the configuration file
/etc/watchdog.conf
:
#ping
= 172.31.14.1
#ping
= 172.26.1.255
#interface
= eth0
#file
= /var/log/messages
#change
= 1407
# Uncomment to enable test. Setting one of these values to '0' disables it.
# These values will hopefully never reboot your machine during normal use
# (if your machine is really hung, the loadavg will go much higher than 25)
#max-load-1
= 24
#max-load-5
= 18
#max-load-15
= 12
# Note that this is the number of pages!
# To get the real size, check how large the pagesize is on your machine.
#min-memory
= 1
#repair-binary
= /usr/sbin/repair
#repair-timeout
=
#test-binary
=
#test-timeout
=
watchdog-device = /dev/watchdog
# Defaults compiled into the binary
#temperature-device
=
#max-temperature
= 120
# Defaults compiled into the binary
#admin
= root
#interval
= 1
#logtick
= 1
#log-dir
= /var/log/watchdog
# This greatly decreases the chance that watchdog won't be scheduled before
# your machine is really loaded
realtime
= yes
priority
= 1
# Check if rsyslogd is still running by enabling the following line
#pidfile
= /var/run/rsyslogd.pid
19