From 8144a84bc3b0e9c0e5582c6a8db335cfdae3d8eb Mon Sep 17 00:00:00 2001 From: Simon Wilks Date: Fri, 1 May 2015 13:43:27 +0200 Subject: [PATCH 1/2] Make sure we have a boolog.txt entry for critical failures. --- ROMFS/px4fmu_common/init.d/rcS | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 1237d9bb11ef..e100e6b4b7e9 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -233,11 +233,11 @@ then set IO_PRESENT yes else - echo "PX4IO update failed" >> $LOG_FILE + echo "ERROR: PX4IO update failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi else - echo "PX4IO update failed" >> $LOG_FILE + echo "ERROR: PX4IO update failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi fi @@ -246,6 +246,7 @@ then if [ $IO_PRESENT == no ] then echo "[i] ERROR: PX4IO not found" + echo "ERROR: PX4IO not found" >> $LOG_FILE tone_alarm $TUNE_ERR fi fi @@ -328,6 +329,7 @@ then then sh /etc/init.d/rc.io else + echo "ERROR: PX4IO start failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi fi @@ -339,6 +341,7 @@ then echo "[i] FMU mode_$FMU_MODE started" else echo "[i] ERROR: FMU mode_$FMU_MODE start failed" + echo "ERROR: FMU start failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi @@ -372,6 +375,7 @@ then echo "[i] MK started" else echo "[i] ERROR: MK start failed" + echo "ERROR: MK start failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi unset MKBLCTRL_ARG @@ -385,6 +389,7 @@ then echo "[i] HIL output started" else echo "[i] ERROR: HIL output start failed" + echo "ERROR: HIL output start failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi fi @@ -402,6 +407,7 @@ then sh /etc/init.d/rc.io else echo "[i] ERROR: PX4IO start failed" + echo "ERROR: PX4IO start failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi fi @@ -413,6 +419,7 @@ then echo "[i] FMU mode_$FMU_MODE started" else echo "[i] ERROR: FMU mode_$FMU_MODE start failed" + echo "ERROR: FMU mode_$FMU_MODE start failed" >> $LOG_FILE tone_alarm $TUNE_ERR fi From bf23ca70c593ea27d5d3ab125f9f9678157cbf81 Mon Sep 17 00:00:00 2001 From: Simon Wilks Date: Thu, 7 May 2015 10:17:56 +0200 Subject: [PATCH 2/2] Added log entries for the rc.interfaces file as well. --- ROMFS/px4fmu_common/init.d/rc.interface | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index 7a424970f68a..71b670888e43 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -48,6 +48,7 @@ then echo "[i] Mixer: $MIXER_FILE on $OUTPUT_DEV" else echo "[i] Error loading mixer: $MIXER_FILE" + echo "ERROR: Could not load mixer: $MIXER_FILE" >> $LOG_FILE tone_alarm $TUNE_ERR fi @@ -56,6 +57,7 @@ else if [ $MIXER != skip ] then echo "[i] Mixer not defined" + echo "ERROR: Mixer not defined" >> $LOG_FILE tone_alarm $TUNE_ERR fi fi @@ -125,8 +127,10 @@ then echo "[i] Mixer: $MIXER_AUX_FILE on $OUTPUT_AUX_DEV" else echo "[i] Error loading mixer: $MIXER_AUX_FILE" + echo "ERROR: Could not load mixer: $MIXER_AUX_FILE" >> $LOG_FILE fi else + echo "ERROR: Could not start: fmu mode_pwm" >> $LOG_FILE tone_alarm $TUNE_ERR fi