Enable the hardware watchdog function of Raspberry Pi

Source: Internet
Author: User

Some time ago, cgminer was set to start when it was started. Due to various problems, the system was not very stable and it was stopped from time to time.

I checked it online, and Raspberry Pi immediately tried the hardware guard function, which basically solved my problem.


The principle is simple:

Watchdog requires heartbeat)

If no data is fed within the specified time period (15 seconds by default), the system restarts automatically.


However, it takes a second to eat a piece of bone without stopping. It's really not enough for a dog ~~~


The following is a script for enabling this function.

// Enable the module

Sudo modprobe bcm2708_wdog

Sudo nano/etc/modules

// Add a row



// Enable the Service

Sudo bash apt-Get install watchdog chkconfig

Chkconfig watchdog on/etc/init. d/watchdog start


// Modify the configuration

Sudo nano/etc/watchdog. conf

// Remove the comments before the following line

Watchdog-device =/dev/Watchdog


Raspberry Pi's Hardware Watchdog seems to be able to monitor the occurrence of various events, such as system temperature, memory usage, or ping command results.

For specific configuration, refer to here. For the original article, refer to here.


Andy Yang


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.