build icon indicating copy to clipboard operation
build copied to clipboard

agetty + systemd + debian = serial login fail.

Open npotts opened this issue 11 years ago • 4 comments

Systemd, agetty and an embedded system do not seem to play nice. Using the default settings will spawn a terminal on /dev/ttyS0 at 9600 baud, not the selected 115200. Not sure how to fix this as it is coming from upstream, so your options are

  1. Once your Olimex Lime/Lime2/Micro has booted, Switch the baud rate to 9600, hit enter and login as normal.
  2. Fix the root problem temporarily via something like this
    cat /lib/systemd/system/[email protected] | sed s/"--keep-baud 115200,38400,9600"/"-L 115200"/g > /etc/systemd/system/[email protected]
    ln -s /etc/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/
    systemctl daemon-reload
    systemctl start [email protected]

This should probably be marked as wontfix or simliar, but just in case someone else is using your distributions, it would be good to note this if you need a serial terminal.

npotts avatar Mar 25 '15 20:03 npotts

I noticed this but don't have a proper solution yet. It's noted under "known bugs" on my blog. Thanks for bringing this up, maybe somebody has a solution?

igorpecovnik avatar Mar 26 '15 18:03 igorpecovnik

Leme poke around in your codebase so see if I can insert a few hack lines to help with that

npotts avatar Apr 01 '15 16:04 npotts

This should be fixed in https://github.com/igorpecovnik/lib/pull/47

npotts avatar Apr 09 '15 21:04 npotts

It's working fine now, thanks!

igorpecovnik avatar May 02 '15 10:05 igorpecovnik