Watchdog
From ArmadeusWiki
!! This page is under construction and Watchdog driver is still not integrated in current software version !!
On this page, you will find usefull informations to configure and use the Watchdog of your APF9328 board.
Contents
Configuration
First be sure to have the Watchdog Linux driver activated:
$ make linux-menuconfig
$ make
Installation
If you choose to include driver in Linux kernel then reflash your kernel image.
Else either copy the generated module through NFS to your board or reflash your rootfs.
Usage
Load the module:
# insmod /lib/modules/2.6.18.1/drivers/char/watchdog.ko
or (if you have reflashed your rootfs):
# modprobe watchdog
You can access the watchdog through /dev/misc/imx_wdt file
- to activate it, just open the file:
# cat /dev/misc/imx_wdt
- then you will have to write to this file regularly or your system will be reseted
# echo 1 > /dev/misc/imx_wdt