LINUX system watchdog __linux

Source: Internet
Author: User

"ARM Linux development-warewin 2G/3G Wireless Transmission (DTU) and routers-notes"

Watchdog timer (wdt,watch Dog timer) It is actually a counter that generally gives a watchdog a large number of programs that start running after the watchdog starts to count backwards. If the program is working properly, over time the CPU should issue instructions for the watchdog to reset and start counting again. If the watchdog is reduced to 0 it is considered that the program is not working properly, forcing the entire system to reset.

The system uses the main chip built-in hardware watchdog and the external hardware watchdog at the same time, the dual maintenance system stability.

The built-in hardware watchdog starts feeding the dog from the Uboot, and the external hardware watchdog starts feeding the dog from the system into the kernel. So that the whole operation of the system can always be detected whether the operation is normal, to avoid the system can not recover for a long time.

Stop the watchdog dog feeding when checking for abnormal or reboot the system, avoid the failure of the system after using reboot and so on to reboot the system.

Linux hardware watchdog

Demand

The watchdog's role is to prevent the program from dying, or to say that the program is running. Commonly used WDT chips such as MAX813, 5045, IMP 813, and so on, the hardware watchdog's clear watchdog time is very short usually within a few seconds.

Linux can use the watchdog inside the software watchdog chip, but it always feels unreliable. But the use of external hardware watchdog, clear watchdog time is too short, generally a few seconds, the Linux kernel boot time is too long, can not feed the dog within a few seconds, will cause the system repeatedly restarted. It is difficult to insert a dog-feeding statement evenly and intermittently in the kernel boot. This program provides a reliable way to increase the external watchdog.

Characteristics

In addition to power, program restart, chip reset, watchdog can always be effective.

System in Bootstrap,uboot,linux any place to crash, watchdog can reset the chip

The scheme is suitable to delay the watchdog action cycle.

After repeated testing, the actual use of the external watchdog scheme to fully achieve the design objectives.

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.