Difference between revisions of "Watchdog timers on OMAP3 boards"

From IGEP - ISEE Wiki

Jump to: navigation, search
(Created page with '== Overview of this article == This article is meant to be a starting point for people to learn setup the watchdog timer on OMAP3 based boards. == Feedback and Contributing == …')
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Overview of this article ==
+
== Watchdog timers on OMAP3 boards ==
 +
 
 +
(Work in progress)
 +
 
 +
=== Overview of this article ===
  
 
This article is meant to be a starting point for people to learn setup the watchdog timer on OMAP3 based boards.
 
This article is meant to be a starting point for people to learn setup the watchdog timer on OMAP3 based boards.
  
== Feedback and Contributing ==
+
=== Feedback and Contributing ===
  
 
Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article.
 
Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article.
Line 15: Line 19:
 
There is a set of [[Wiki contribution guidelines]].
 
There is a set of [[Wiki contribution guidelines]].
  
== Setup basics ==
+
=== OMAP3 watchdog overview ===
 +
 
 +
There are 3 watch dogs WD1=Secure, WD2=MPU, WD3=IVA. WD1 is either taken care of by ROM (HS/EMU) or not accessible (GP). We need to take care of WD2-MPU or take a PRCM reset.  WD3 should not be running and does not generate a PRCM reset.
 +
 
 +
=== Watchdog timers under x-loader ===
 +
 
 +
...
 +
 
 +
=== Watchdog timers under u-boot ===
 +
 
 +
...
 +
 
 +
=== Watchdog timers under Linux kernel ===
 +
 
 +
* [http://www.kernel.org/doc/Documentation/watchdog/watchdog-api.txt Linux Watchdog driver API.]
 +
* [http://www.kernel.org/doc/Documentation/watchdog/src Watchdog related example programs.]
 +
 
 +
$ modprobe omap_wdt
 +
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
 +
 
 +
If enable and tick the watchdog card
 +
 
 +
$ watchdog-test -e; watchdog-test
 +
Watchdog card enabled.
 +
 
 +
Watchdog Ticking Away!
 +
 
 +
after 60 sec NOT resets.
 +
 
 +
If enable and not tick the watchdog card.
 +
 
 +
$ watchdog-test -e
 +
Watchdog card enabled.
 +
 
 +
Watchdog Ticking Away!
 +
 
 +
after 60 sec resets.
 +
 
 +
If disable the watchdog card.
 +
 
 +
$ watchdog-test -d
 +
Watchdog card disabled.
 +
 
 +
after 60 sec NOT resets unless NOWAYOUT is defined (CONFIG_WATCHDOG_NOWAYOUT)
 +
 
 +
[[Category:Software]]

Latest revision as of 14:47, 25 July 2011

Watchdog timers on OMAP3 boards

(Work in progress)

Overview of this article

This article is meant to be a starting point for people to learn setup the watchdog timer on OMAP3 based boards.

Feedback and Contributing

Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article.

Please, use the discussion tab for user comments. This is useful to separate page content and the discussion thereof and also, if you don't want to give normal users the right to edit the page but still want user contributed notes.

Editing permissions are restricted to registered users. Register in the main IGEP site and you will have single sign-on.

Consult the User's Guide for information on using the wiki software.

There is a set of Wiki contribution guidelines.

OMAP3 watchdog overview

There are 3 watch dogs WD1=Secure, WD2=MPU, WD3=IVA. WD1 is either taken care of by ROM (HS/EMU) or not accessible (GP). We need to take care of WD2-MPU or take a PRCM reset. WD3 should not be running and does not generate a PRCM reset.

Watchdog timers under x-loader

...

Watchdog timers under u-boot

...

Watchdog timers under Linux kernel

$ modprobe omap_wdt
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec

If enable and tick the watchdog card

$ watchdog-test -e; watchdog-test
Watchdog card enabled.
Watchdog Ticking Away!

after 60 sec NOT resets.

If enable and not tick the watchdog card.

$ watchdog-test -e
Watchdog card enabled.
Watchdog Ticking Away!

after 60 sec resets.

If disable the watchdog card.

$ watchdog-test -d
Watchdog card disabled.

after 60 sec NOT resets unless NOWAYOUT is defined (CONFIG_WATCHDOG_NOWAYOUT)