View Single Post
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#9
Originally Posted by Mentalist Traceur View Post
Code:
	# Watchdogs
	insmod $MODULE_PATH/omap_wdt.ko
	insmod $MODULE_PATH/twl4030_wdt.ko
	sleep 2
	for p in /sys/bus/platform/devices/*_wdt/misc:*; do
		n=`basename $p | sed "s/.*://"`
		rm -f /dev/$n
		mknod /dev/$n c `cat $p/dev | sed "s/:/ /g"`
	done
	/usr/sbin/watchdogs
This code load kernel modules for communication with HW watchdogs and then create watchdogs devices in /dev/ (for communication from user-space programs). If you do not want to reboot device after 32s you need to kick all watchdogs every 32s. And this is done by binary /usr/sbin/watchdogs (source code is in bootmenu package)
 

The Following 4 Users Say Thank You to pali For This Useful Post: