From 262dbf632e16046a9f6a84632a4928389b5a831e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 10 Aug 2009 13:19:57 +0000 Subject: 2009-08-10 Joel Sherrill * diagnostics/README: Add uMon script. * diagnostics/appboot: New file. --- micromonitor/ChangeLog | 5 +++++ micromonitor/diagnostics/README | 3 +-- micromonitor/diagnostics/appboot | 12 ++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 micromonitor/diagnostics/appboot (limited to 'micromonitor') 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 + + * diagnostics/README: Add uMon script. + * diagnostics/appboot: New file. + 2009-08-06 Joel Sherrill * 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 -- cgit v1.2.3