I have a solution; whether or not it's the "correct" solution I don't know but so far it's worked for me:
1 - Use raspi-config to enable
serial port login/logging
2 - Disable getty on tthat port with:
Code: Select all
systemctl mask serial-getty@ttyAMA0.service
I read elsewhere on the forum just now about adding "enable_uart=1" to config.txt. I've not tried that and I don't know how that setting would interact with what I've suggested above.
As some people will actually want the serial port pins to be free, my suggestion is that raspi-config has 3 options not the 2:
1 - Enable logging / login
2 - Disable those but keep the port in /dev
3 - Completely disable serial port allowing the Tx/Rx free use for I/O
Either that or have Raspbian behave as it used to.