Garz & Fricke Yocto User Manual page 19

Embedded computer systems
Table of Contents

Advertisement

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
The watchdog service is configured using the configuration file /etc/watchdog.conf:
#ping
#ping
#interface
#file
#change
# 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
#max-load-5
#max-load-15
# Note that this is the number of pages!
# To get the real size, check how large the pagesize is on your machine.
#min-memory
#repair-binary
#repair-timeout
#test-binary
#test-timeout
watchdog-device = /dev/watchdog
# Defaults compiled into the binary
#temperature-device
#max-temperature
# Defaults compiled into the binary
#admin
#interval
#logtick
#log-dir
# This greatly decreases the chance that watchdog won't be scheduled before
# your machine is really loaded
realtime
priority
# Check if rsyslogd is still running by enabling the following line
#pidfile
GUF-Yocto-jethro-9.0-r7707-0
watchdog.sh defaults
= 172.31.14.1
= 172.26.1.255
= eth0
= /var/log/messages
= 1407
= 24
= 18
= 12
= 1
= /usr/sbin/repair
=
=
=
=
= 120
= root
= 1
= 1
= /var/log/watchdog
= yes
= 1
= /var/run/rsyslogd.pid
i.MX6
User Manual
¡
¡
19

Advertisement

Table of Contents
loading

Related Products for Garz & Fricke Yocto

Table of Contents