summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2016-03-18 16:50:52 +0000
committerRyan Harkin <ryan.harkin@linaro.org>2016-03-18 17:05:37 +0000
commitd07b6bafa278205880251e067c908c2301c0b880 (patch)
tree6c441b49fba22db94ce1b44b3c100adb0695cf7d
parenta0d02c33a5d03ca38415ce8c70be83963f1ed6ac (diff)
Save the uart logs for the AEMv8 models. The Foundation models don't have a option for storing the uart logs. Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rwxr-xr-xrun_model.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/run_model.sh b/run_model.sh
index 0355aca..949b61a 100755
--- a/run_model.sh
+++ b/run_model.sh
@@ -221,6 +221,25 @@ else
dtb_param="--data cluster0.cpu0=${DTB}@${dtb_addr}"
fi
+ # Create log files with date stamps in the filename
+ # also create a softlink to these files with a static filename, eg, uart0.log
+ datestamp=`date +%s%N`
+
+ UART0_LOG=uart0-${datestamp}.log
+ touch $UART0_LOG
+ uart0log=uart0.log
+ rm -f $uart0log
+ ln -s $UART0_LOG $uart0log
+
+ UART1_LOG=uart1-${datestamp}.log
+ touch $UART1_LOG
+ uart1log=uart1.log
+ rm -f $uart1log
+ ln -s $UART1_LOG $uart1log
+
+ echo "UART0_LOG=$UART0_LOG"
+ echo "UART1_LOG=$UART1_LOG"
+
cmd="$MODEL \
-C pctl.startup=0.0.0.0 \
-C bp.secure_memory=$SECURE_MEMORY \
@@ -228,6 +247,8 @@ else
-C cluster1.NUM_CORES=$CLUSTER1_NUM_CORES \
-C cache_state_modelled=$CACHE_STATE_MODELLED \
-C bp.pl011_uart0.untimed_fifos=1 \
+ -C bp.pl011_uart0.out_file=$UART0_LOG \
+ -C bp.pl011_uart1.out_file=$UART1_LOG \
-C bp.secureflashloader.fname=$BL1 \
-C bp.flashloader0.fname=$FIP \
$image_param \