Difference between revisions of "Watchdog"
From FriendlyELEC WiKi
(Created page with "查看中文") |
(→H3) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[[Watchdog/zh|查看中文]] | [[Watchdog/zh|查看中文]] | ||
+ | |||
+ | ==H2+/H3/H5== | ||
+ | ===Linux-4.14=== | ||
+ | You can test watchdog by running the following commands: | ||
+ | <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> | ||
+ | System will reboot in 10 seconds. |
Latest revision as of 07:55, 11 October 2019
1 H2+/H3/H5
1.1 Linux-4.14
You can test watchdog by running the following commands:
$ 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
System will reboot in 10 seconds.