Enable Watchdog

From Ambedded
Jump to: navigation, search

Enable watchdog in u-boot

Bit 8 is CPU subsystem assert when timer expiration enable bit.

mw f1020704 0x0101;

Set Watchdog timer reload register.

mw f1020330 0xffffffff;

Set Watchdog timer register.

mw f1020334 0xffffffff;

Bit 8 is watchdog timer enable ,bit 16~18 is source divde, 2^n timer tic occurs every source clock,n's max value is 7.

mw f1020300 0x70103;

Enable watchdog in filesystem

make sure you have enable kernel configure by using menuconfig,and then your .config will have string as below
CONFIG_ARMADA_WATCHDOG=y

Install watchdog software

apt-get install watchdog

edit /etc/watchdog.conf,and un-hash as below

#test-timeout           =

watchdog-device = /dev/watchdog

# Defaults compiled into the binary
#temperature-device     =
#max-temperature        = 120
Personal tools
Namespaces

Variants
Actions
Navigation
Tools