Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agetty + systemd + debian = serial login fail. #33

Closed
npotts opened this issue Mar 25, 2015 · 4 comments
Closed

agetty + systemd + debian = serial login fail. #33

npotts opened this issue Mar 25, 2015 · 4 comments

Comments

@npotts
Copy link

npotts commented Mar 25, 2015

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/serial-getty@.service | sed s/"--keep-baud 115200,38400,9600"/"-L 115200"/g > /etc/systemd/system/serial-getty@ttyS0.service
    ln -s /etc/systemd/system/serial-getty@ttyS0.service /etc/systemd/system/getty.target.wants/
    systemctl daemon-reload
    systemctl start serial-getty@ttyS0.service

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.

@igorpecovnik
Copy link
Member

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?

@npotts
Copy link
Author

npotts commented Apr 1, 2015

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

@npotts
Copy link
Author

npotts commented Apr 9, 2015

This should be fixed in #47

@igorpecovnik
Copy link
Member

It's working fine now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants