Hi Terry,

>     sudo systemctl disable serial-getty@ttyAMA0.service
>
> but it doesn't seem to work, I still get the login prompt.

It's hard to say because the systemd units configured will be specific
to Debian, or even Raspbian, and I think the names of the serial ports,
e.g. ttyAMA0, have changed between models because they nicked the SoC's
real UART for talking to Bluetooth, or something, and substituted
bit-banging in its place that has flaky timing depending on CPU-speed
changes.  There the rumours I've heard, anyway, I'm out of touch with Pi
stuff.

`disable' stops it starting on booting rather than stopping it now.
`mask' blocks it from starting either manually, or as a dependency of
something else that's starting.

`systemctl | grep getty' will show the systemd units, etc., involved in
your system.  And http://0pointer.de/blog/projects/serial-console.html
suggests your simplest bet would be to alter the kernel's parameters so
systemd doesn't want to start a getty.

-- 
Cheers, Ralph.

--
  Next meeting: BEC, Bournemouth, Tuesday, 2019-04-02 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to