Difference between revisions of "Watchdog/zh"
From FriendlyELEC WiKi
(updated by API) |
(→H3/H5) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Watchdog|English]] | [[Watchdog|English]] | ||
− | ==H3== | + | ==H2+/H3/H5== |
===Linux-4.14=== | ===Linux-4.14=== | ||
使用下列命令可以测试看门狗功能: | 使用下列命令可以测试看门狗功能: | ||
Line 12: | Line 12: | ||
System will reboot in 10 second | System will reboot in 10 second | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 系统将在10秒之后重启,你可以通过重复运行“ ./watchdog_demo /dev/watchdog0 10”达到喂狗的目的。 |
Latest revision as of 07:55, 11 October 2019
1 H2+/H3/H5
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秒之后重启,你可以通过重复运行“ ./watchdog_demo /dev/watchdog0 10”达到喂狗的目的。