Difference between revisions of "Watchdog"

From ArmadeusWiki
Jump to: navigation, search
m
Line 3: Line 3:
 
'''!! This page is under construction and Watchdog driver is still not integrated in current software version !!'''
 
'''!! 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.
+
On this page, you will find usefull informations to configure and use the Watchdog of your APF boards.
  
 
== Configuration ==
 
== Configuration ==
 
First be sure to have the Watchdog Linux driver activated:
 
First be sure to have the Watchdog Linux driver activated:
  $ make linux-menuconfig
+
<pre class="host">
 +
  $ make linux26-menuconfig
 +
</pre>
  
[[Image:Watchdog_config.png]]
+
<pre class="config">
 +
[*] Watchdog Timer Support  --->
 +
    <M>  IMX Watchdog
 +
</pre>
  
 +
<pre class="host">
 
  $ make
 
  $ make
 +
</pre>
  
 
== Installation ==
 
== Installation ==
Line 19: Line 26:
 
== Usage ==
 
== Usage ==
 
Load the module:
 
Load the module:
# insmod /lib/modules/2.6.18.1/drivers/char/watchdog.ko
+
<pre class="apf">
or (if you have reflashed your rootfs):
+
 
  # modprobe watchdog
 
  # modprobe watchdog
 +
</pre>
  
You can access the watchdog through /dev/misc/imx_wdt file
+
You can now access the watchdog through ''/dev/watchdog'' device file:
 
* to activate it, just open the file:
 
* to activate it, just open the file:
  # cat /dev/misc/imx_wdt
+
<pre class="apf">
 +
  # cat /dev/watchdog
 +
</pre>
 
* then you will have to write to this file regularly or your system will be reseted
 
* then you will have to write to this file regularly or your system will be reseted
  # echo 1 > /dev/misc/imx_wdt
+
<pre class="apf">
 
+
  # echo 1 > /dev/watchdog
 +
</pre>
  
 
== Links ==
 
== Links ==
*
 
 
*
 
*

Revision as of 19:36, 8 March 2009

Page under construction... Construction.png Informations on this page are not guaranteed !!

!! 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 APF boards.

Configuration

First be sure to have the Watchdog Linux driver activated:

 $ make linux26-menuconfig
[*] Watchdog Timer Support  --->
    <M>   IMX Watchdog
 $ 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:

 # modprobe watchdog

You can now access the watchdog through /dev/watchdog device file:

  • to activate it, just open the file:
 # cat /dev/watchdog
  • then you will have to write to this file regularly or your system will be reseted
 # echo 1 > /dev/watchdog

Links