agetty + systemd + debian = serial login fail.
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
- Once your Olimex Lime/Lime2/Micro has booted, Switch the baud rate to 9600, hit enter and login as normal.
- 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.
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?
Leme poke around in your codebase so see if I can insert a few hack lines to help with that
This should be fixed in https://github.com/igorpecovnik/lib/pull/47
It's working fine now, thanks!