diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2016-03-18 16:50:52 +0000 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2016-03-18 17:05:37 +0000 |
commit | d07b6bafa278205880251e067c908c2301c0b880 (patch) | |
tree | 6c441b49fba22db94ce1b44b3c100adb0695cf7d | |
parent | a0d02c33a5d03ca38415ce8c70be83963f1ed6ac (diff) |
Save uart logs for AEMv8 modelsarmlt-20160622-001armlt-20160518-002armlt-20160518-001armlt-20160512-002armlt-20160512-001armlt-20160322-001armlt-16.06armlt-16.05armlt-16.04armlt-16.0316.0616.0516.0416.03
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-x | run_model.sh | 21 |
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 \ |