[linux-yocto] [PATCH] [linux-yocto-3.14] beaglebone: enable the nowayout option for the watchdog

Kevin Hao kexin.hao at windriver.com
Thu May 22 23:41:35 PDT 2014


The default watchdog behaviour is to stop the timer if the process
managing it closes the file /dev/watchdog. The system would not reboot
if watchdog daemon crashes due to a bug in it or get killed by other
malicious code. So we prefer to enable nowayout option for the
watchdong. With this enabled, there is no way of disabling the watchdog
once it has been started. This option is also enabled in the predecessor
of this BSP (beagleboard).

Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
---
Hi Bruce,

This is the fix for the bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=3937

 meta/cfg/kernel-cache/bsp/beaglebone/beaglebone.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/cfg/kernel-cache/bsp/beaglebone/beaglebone.cfg b/meta/cfg/kernel-cache/bsp/beaglebone/beaglebone.cfg
index 6b256362845b..81f97d607d62 100644
--- a/meta/cfg/kernel-cache/bsp/beaglebone/beaglebone.cfg
+++ b/meta/cfg/kernel-cache/bsp/beaglebone/beaglebone.cfg
@@ -195,6 +195,7 @@ CONFIG_POWER_SUPPLY=y
 #
 # Watchdog Device Drivers
 #
+CONFIG_WATCHDOG_NOWAYOUT=y
 CONFIG_OMAP_WATCHDOG=y
 CONFIG_TWL4030_WATCHDOG=y
 
-- 
1.8.5.3



More information about the linux-yocto mailing list