1.sudo modprobe bcm2708_wdog
2.sudo nano /etc/modules
加入一行 "bcm2708_wdog"
3.sudo apt-get install watchdog
4.sudo apt-get install chkconfig
5.sudo chkconfig watchdog on
6.sudo nano /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
#allocatable-memory = 1#repair-binary = /usr/sbin/repair
#repair-timeout =
#test-binary =
#test-timeout =watchdog-device = /dev/watchdog
# Defaults compiled into the binary
temperature-device =/sys/class/thermal/thermal_zone0/temp
max-temperature = 7500# 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
7. sudo /etc/init.d/watchdog start
参考资料:http://www.eeboard.com/bbs/thread-6763-1-1.html