From 42cd8a46de2371e56c2384a2595588a3bb68c72c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 6 Sep 2024 08:42:02 +0200 Subject: [PATCH] Ignore CR in picocom Hopefully this fixes the problem in the live log output of the GitLab CI where the lines are not displayed. --- fpga/run-node.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fpga/run-node.sh b/fpga/run-node.sh index 178eedb..30f1d2e 100755 --- a/fpga/run-node.sh +++ b/fpga/run-node.sh @@ -31,4 +31,8 @@ timeout_silent=$((10 * 60)) # Stop if 10 min without output # Set dead switch sleep $timeout && killall picocom & -picocom -q -x $(($timeout_silent*1000)) -b 115200 $FPGACTL_UART +# Note: --imap igncr is broken so we replace it with LF. +# See https://github.com/npat-efault/picocom/pull/114 +# It looks like picocom is abandoned, we may want to switch to minicom or +# stty+cat +picocom --imap crlf -q -x $(($timeout_silent*1000)) -b 115200 $FPGACTL_UART