summaryrefslogtreecommitdiffstats
path: root/micromonitor
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-10 13:19:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-10 13:19:57 +0000
commit262dbf632e16046a9f6a84632a4928389b5a831e (patch)
treebbc0d947e65e687648e930b1981d06ac06d27326 /micromonitor
parent2009-08-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-examples-262dbf632e16046a9f6a84632a4928389b5a831e.tar.bz2
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* diagnostics/README: Add uMon script. * diagnostics/appboot: New file.
Diffstat (limited to 'micromonitor')
-rw-r--r--micromonitor/ChangeLog5
-rw-r--r--micromonitor/diagnostics/README3
-rw-r--r--micromonitor/diagnostics/appboot12
3 files changed, 18 insertions, 2 deletions
diff --git a/micromonitor/ChangeLog b/micromonitor/ChangeLog
index c22a112..4987bb9 100644
--- a/micromonitor/ChangeLog
+++ b/micromonitor/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * diagnostics/README: Add uMon script.
+ * diagnostics/appboot: New file.
+
2009-08-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, README, diagnostics/README, diagnostics/cfg.h,
diff --git a/micromonitor/diagnostics/README b/micromonitor/diagnostics/README
index 14f7f3f..344f0d2 100644
--- a/micromonitor/diagnostics/README
+++ b/micromonitor/diagnostics/README
@@ -12,5 +12,4 @@ MicroMonitor environment variable DIAGNOSTICS_RESULT is set to
that value. This environment variable may be queried by MicroMonitor
scripts and the RTEMS application.
-
-XXX insert script here
+The file appboot in this directory is the MicroMonitor script that does this.
diff --git a/micromonitor/diagnostics/appboot b/micromonitor/diagnostics/appboot
new file mode 100644
index 0000000..6b369b2
--- /dev/null
+++ b/micromonitor/diagnostics/appboot
@@ -0,0 +1,12 @@
+# TOP:
+set DIAGNOSTICS_RESULT # clear this variable
+diagnostics
+if $DIAGNOSTICS_RESULT sne PASS goto FIX_ME_NOW
+echo "Diagnostics passed, running RTEMS Application
+ether off
+rtemsapp # RTEMS app does not exit
+goto TOP
+
+# FIX_ME_NOW:
+echo "Diagnostics failed, please call FIX-A-BOARD"
+goto TOP # repeat