Difference between revisions of "Watchdog/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(Created page with "English")
 
(updated by API)
Line 1: Line 1:
 
[[Watchdog|English]]
 
[[Watchdog|English]]
 +
 +
==H3==
 +
===Linux-4.14===
 +
使用下列命令可以测试看门狗功能:
 +
<syntaxhighlight lang="bash">
 +
$ cd /root/C/watchdog/
 +
$ gcc watchdog_demo.c -o watchdog_demo
 +
$ ./watchdog_demo /dev/watchdog0 10
 +
Set timeout: 10 seconds
 +
Get timeout: 10 seconds
 +
System will reboot in 10 second
 +
</syntaxhighlight>
 +
系统将在10秒之后重启。

Revision as of 09:21, 11 January 2019

English

1 H3

1.1 Linux-4.14

使用下列命令可以测试看门狗功能:

$ cd /root/C/watchdog/
$ gcc watchdog_demo.c -o watchdog_demo
$ ./watchdog_demo /dev/watchdog0 10
Set timeout: 10 seconds
Get timeout: 10 seconds
System will reboot in 10 second

系统将在10秒之后重启。