Ignore CR in picocom

Hopefully this fixes the problem in the live log output of the GitLab CI
where the lines are not displayed.
This commit is contained in:
Rodrigo Arias 2024-09-06 08:42:02 +02:00
parent 81e866e68d
commit 42cd8a46de

View File

@ -31,4 +31,8 @@ timeout_silent=$((10 * 60)) # Stop if 10 min without output
# Set dead switch # Set dead switch
sleep $timeout && killall picocom & 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